- GtkWidget *const button = gtk_button_new_from_stock(buttons[n].stock);
- gtk_widget_modify_bg(button, GTK_STATE_NORMAL, &tool_bg);
- gtk_widget_modify_bg(button, GTK_STATE_ACTIVE, &tool_active);
- gtk_widget_modify_bg(button, GTK_STATE_PRELIGHT, &tool_active);
- gtk_widget_modify_bg(button, GTK_STATE_SELECTED, &tool_active);
- gtk_widget_modify_bg(button, GTK_STATE_INSENSITIVE, &tool_active);
- gtk_widget_modify_fg(button, GTK_STATE_NORMAL, &tool_fg);
- gtk_widget_modify_fg(button, GTK_STATE_ACTIVE, &tool_fg);
- gtk_widget_modify_fg(button, GTK_STATE_PRELIGHT, &tool_fg);
- gtk_widget_modify_fg(button, GTK_STATE_SELECTED, &tool_fg);
- gtk_widget_modify_fg(button, GTK_STATE_INSENSITIVE, &tool_fg);
- g_signal_connect(G_OBJECT(button), "clicked",
+ buttons[n].widget = gtk_button_new_from_stock(buttons[n].stock);
+ gtk_widget_set_style(buttons[n].widget, tool_style);
+ g_signal_connect(G_OBJECT(buttons[n].widget), "clicked",