comparison src/audacious/ui_preferences.c @ 4572:a01120279caf

Removed 'Reload Plugins'-button, as it's broken and usually just causes problems.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 21 May 2008 13:53:20 +0300
parents d09dd0960a6a
children a2cbde1af409
comparison
equal deleted inserted replaced
4571:60e11be9a648 4572:a01120279caf
1349 show_wm_decorations_cb() 1349 show_wm_decorations_cb()
1350 { 1350 {
1351 gtk_window_set_decorated(GTK_WINDOW(mainwin), cfg.show_wm_decorations); 1351 gtk_window_set_decorated(GTK_WINDOW(mainwin), cfg.show_wm_decorations);
1352 gtk_window_set_decorated(GTK_WINDOW(playlistwin), cfg.show_wm_decorations); 1352 gtk_window_set_decorated(GTK_WINDOW(playlistwin), cfg.show_wm_decorations);
1353 gtk_window_set_decorated(GTK_WINDOW(equalizerwin), cfg.show_wm_decorations); 1353 gtk_window_set_decorated(GTK_WINDOW(equalizerwin), cfg.show_wm_decorations);
1354 }
1355
1356 static void
1357 on_reload_plugins_clicked(GtkButton * button, gpointer data)
1358 {
1359 /* TBD: should every playlist entry have to be reprobed?
1360 * Pointers could come back stale if new plugins are added or
1361 * symbol sizes change. - nenolod
1362 */
1363
1364 aud_config_save();
1365 plugin_system_cleanup();
1366 aud_config_free();
1367 aud_config_load();
1368 plugin_system_init();
1369 } 1354 }
1370 1355
1371 void 1356 void
1372 create_colorize_settings(void) 1357 create_colorize_settings(void)
1373 { 1358 {
3054 GtkWidget *scrolledwindow6; 3039 GtkWidget *scrolledwindow6;
3055 GtkWidget *hseparator1; 3040 GtkWidget *hseparator1;
3056 GtkWidget *hbox4; 3041 GtkWidget *hbox4;
3057 GtkWidget *audversionlabel; 3042 GtkWidget *audversionlabel;
3058 GtkWidget *prefswin_button_box; 3043 GtkWidget *prefswin_button_box;
3059 GtkWidget *reload_plugins;
3060 GtkWidget *alignment93;
3061 GtkWidget *hbox11; 3044 GtkWidget *hbox11;
3062 GtkWidget *image10; 3045 GtkWidget *image10;
3063 GtkWidget *label102;
3064 GtkWidget *close; 3046 GtkWidget *close;
3065 GtkAccelGroup *accel_group; 3047 GtkAccelGroup *accel_group;
3066 3048
3067 tooltips = gtk_tooltips_new (); 3049 tooltips = gtk_tooltips_new ();
3068 3050
3125 prefswin_button_box = gtk_hbutton_box_new (); 3107 prefswin_button_box = gtk_hbutton_box_new ();
3126 gtk_box_pack_start (GTK_BOX (hbox4), prefswin_button_box, TRUE, TRUE, 0); 3108 gtk_box_pack_start (GTK_BOX (hbox4), prefswin_button_box, TRUE, TRUE, 0);
3127 gtk_button_box_set_layout (GTK_BUTTON_BOX (prefswin_button_box), GTK_BUTTONBOX_END); 3109 gtk_button_box_set_layout (GTK_BUTTON_BOX (prefswin_button_box), GTK_BUTTONBOX_END);
3128 gtk_box_set_spacing (GTK_BOX (prefswin_button_box), 6); 3110 gtk_box_set_spacing (GTK_BOX (prefswin_button_box), 6);
3129 3111
3130 reload_plugins = gtk_button_new ();
3131 gtk_container_add (GTK_CONTAINER (prefswin_button_box), reload_plugins);
3132 GTK_WIDGET_SET_FLAGS (reload_plugins, GTK_CAN_DEFAULT);
3133
3134 alignment93 = gtk_alignment_new (0.5, 0.5, 0, 0);
3135 gtk_container_add (GTK_CONTAINER (reload_plugins), alignment93);
3136
3137 hbox11 = gtk_hbox_new (FALSE, 2); 3112 hbox11 = gtk_hbox_new (FALSE, 2);
3138 gtk_container_add (GTK_CONTAINER (alignment93), hbox11);
3139 3113
3140 image10 = gtk_image_new_from_stock ("gtk-refresh", GTK_ICON_SIZE_BUTTON); 3114 image10 = gtk_image_new_from_stock ("gtk-refresh", GTK_ICON_SIZE_BUTTON);
3141 gtk_box_pack_start (GTK_BOX (hbox11), image10, FALSE, FALSE, 0); 3115 gtk_box_pack_start (GTK_BOX (hbox11), image10, FALSE, FALSE, 0);
3142
3143 label102 = gtk_label_new_with_mnemonic (_("Reload Plugins"));
3144 gtk_box_pack_start (GTK_BOX (hbox11), label102, FALSE, FALSE, 0);
3145 3116
3146 close = gtk_button_new_from_stock ("gtk-close"); 3117 close = gtk_button_new_from_stock ("gtk-close");
3147 gtk_container_add (GTK_CONTAINER (prefswin_button_box), close); 3118 gtk_container_add (GTK_CONTAINER (prefswin_button_box), close);
3148 GTK_WIDGET_SET_FLAGS (close, GTK_CAN_DEFAULT); 3119 GTK_WIDGET_SET_FLAGS (close, GTK_CAN_DEFAULT);
3149 gtk_widget_add_accelerator (close, "clicked", accel_group, 3120 gtk_widget_add_accelerator (close, "clicked", accel_group,
3161 G_CALLBACK(on_skin_refresh_button_clicked), 3132 G_CALLBACK(on_skin_refresh_button_clicked),
3162 prefswin); 3133 prefswin);
3163 g_signal_connect_after(G_OBJECT(skin_view), "realize", 3134 g_signal_connect_after(G_OBJECT(skin_view), "realize",
3164 G_CALLBACK(on_skin_view_realize), 3135 G_CALLBACK(on_skin_view_realize),
3165 NULL); 3136 NULL);
3166 g_signal_connect(G_OBJECT(reload_plugins), "clicked",
3167 G_CALLBACK(on_reload_plugins_clicked),
3168 NULL);
3169 g_signal_connect_swapped(G_OBJECT(close), "clicked", 3137 g_signal_connect_swapped(G_OBJECT(close), "clicked",
3170 G_CALLBACK(gtk_widget_hide), 3138 G_CALLBACK(gtk_widget_hide),
3171 GTK_OBJECT (prefswin)); 3139 GTK_OBJECT (prefswin));
3172 3140
3173 /* create category view */ 3141 /* create category view */