static void wckbuttons_configure_response (GtkWidget *dialog, gint response, WBPlugin *wb) { gboolean result; if (response == GTK_RESPONSE_HELP) { /* show help */ result = g_spawn_command_line_async ("exo-open --launch WebBrowser " PLUGIN_WEBSITE, NULL); if (G_UNLIKELY (result == FALSE)) g_warning (_("Unable to open the following url: %s"), PLUGIN_WEBSITE); } else { /* remove the dialog data from the plugin */ g_object_set_data (G_OBJECT (wb->plugin), "dialog", NULL); /* unlock the panel menu */ xfce_panel_plugin_unblock_menu (wb->plugin); /* save the plugin */ wckbuttons_save (wb->plugin, wb); /* destroy the properties dialog */ gtk_widget_destroy (dialog); } }
static void fortune_fish_plugin_settings_close(fortune_fish_plugin *fish_plugin, gint response, GtkWidget *dialog) { fortune_fish_settings_close(fish_plugin->fish); gtk_widget_destroy(dialog); xfce_panel_plugin_unblock_menu(fish_plugin->plugin); }
void quicklauncher_configure(XfcePanelPlugin *plugin, t_quicklauncher *quicklauncher) { t_qck_launcher_opt_dlg* dlg; xfce_panel_plugin_block_menu(plugin); dlg = create_qck_launcher_dlg(); qck_launcher_opt_dlg_set_quicklauncher(quicklauncher); gtk_dialog_run(GTK_DIALOG(dlg->dialog)); xfce_panel_plugin_unblock_menu(plugin); }
static void screenshot_dialog_response (GtkWidget *dlg, int reponse, ScreenshotData *screenshot) { g_object_set_data (G_OBJECT (screenshot->plugin), "dialog", NULL); gtk_widget_destroy (dlg); xfce_panel_plugin_unblock_menu (screenshot->plugin); screenshot_write_rc_file (screenshot->plugin, screenshot); }
static void net_speed_configure_response(GtkWidget *dialog, int response, NetSpeedConfigure *net_speed_configure) { NetSpeedPlugin *net_speed_plugin = net_speed_configure->net_speed_plugin; xfce_panel_plugin_unblock_menu(net_speed_plugin->plugin); gtk_widget_destroy(dialog); net_speed_options_save(net_speed_plugin->options, net_speed_plugin->plugin); g_free(net_speed_configure); }
static void time_out_end_configure (GtkDialog *dialog, gint response_id, TimeOutPlugin *time_out) { GtkWidget *spin; gint value; gboolean restart = FALSE; /* Remove the dialog data from the plugin */ g_object_set_data (G_OBJECT (time_out->plugin), "dialog", NULL); /* Unlock the panel menu */ xfce_panel_plugin_unblock_menu (time_out->plugin); /* Get spin button value for the break countdown settings */ spin = g_object_get_data (G_OBJECT (time_out->plugin), "break-countdown-minutes-spin"); value = gtk_spin_button_get_value_as_int (GTK_SPIN_BUTTON (spin)) * 60; g_object_set_data (G_OBJECT (time_out->plugin), "break-countdown-minutes-spin", NULL); spin = g_object_get_data (G_OBJECT (time_out->plugin), "break-countdown-seconds-spin"); value += gtk_spin_button_get_value_as_int (GTK_SPIN_BUTTON (spin)); g_object_set_data (G_OBJECT (time_out->plugin), "break-countdown-seconds-spin", NULL); /* Check if the break countdown seconds have changed */ restart = value != time_out->break_countdown_seconds; /* Apply new break countdown seconds */ time_out->break_countdown_seconds = value; /* prevent 0 seconds values */ if (!time_out->lock_countdown_seconds) time_out->lock_countdown_seconds = 1; if (!time_out->postpone_countdown_seconds) time_out->postpone_countdown_seconds = 1; /* Save plugin configuration */ time_out_save_settings (time_out); /* Restart or resume break countdown */ if (G_UNLIKELY (restart && time_out->enabled)) { time_out_stop_break_countdown (time_out); time_out_start_break_countdown (time_out, time_out->break_countdown_seconds); } else time_out_countdown_resume (time_out->break_countdown); /* Destroy the properties dialog */ gtk_widget_destroy (GTK_WIDGET (dialog)); }
static void lightdash_configure_response (GtkWidget *dialog, gint response, LightdashPlugin *lightdash) { /* remove the dialog data from the plugin */ g_object_set_data (G_OBJECT (lightdash->plugin), "dialog", NULL); /* unlock the panel menu */ xfce_panel_plugin_unblock_menu (lightdash->plugin); /* destroy the properties dialog */ gtk_widget_destroy (dialog); }
static void power_manager_plugin_configure_response (GtkWidget *dialog, gint response, PowerManagerPlugin *power_manager_plugin) { gboolean result; if (response == GTK_RESPONSE_HELP) { result = g_spawn_command_line_async ("exo-open --launch WebBrowser " "http://docs.xfce.org/xfce/xfce4-power-manager/1.6/start", NULL); if (G_UNLIKELY (result == FALSE)) g_warning (_("Unable to open the following url: %s"), "http://docs.xfce.org/xfce/xfce4-power-manager/1.6/start"); } else { g_object_set_data (G_OBJECT (power_manager_plugin->plugin), "dialog", NULL); xfce_panel_plugin_unblock_menu (power_manager_plugin->plugin); gtk_widget_destroy (dialog); } }
static void response_cb( GtkWidget *dlg, gint response, CPUGraph *base ) { gtk_widget_destroy( dlg ); xfce_panel_plugin_unblock_menu( base->plugin ); write_settings( base->plugin, base ); }
static void pcfg_dialog_close_cb(GtkDialog *dialog, gint response, PlacesCfg *cfg) { gtk_widget_destroy(GTK_WIDGET(dialog)); xfce_panel_plugin_unblock_menu(cfg->plugin); }
static void xtp_config_dialog_hide(GtkWidget *dlg, XfceTextPluginData *xtpd) { xpf("xtp_config_dialog_hide( %p , %p )", dlg, xtpd); xfce_panel_plugin_unblock_menu(xtpd->plugin); xpf(" done\n"); }
void multiload_ps_preferences_closed_cb(MultiloadPlugin *ma) { xfce_panel_plugin_unblock_menu ((XfcePanelPlugin*)(ma->panel_data)); }
static void xfapplet_failed_response (GtkDialog *dialog, gint dummy, XfcePanelPlugin *plugin) { gtk_widget_destroy (GTK_WIDGET (dialog)); xfce_panel_plugin_unblock_menu (plugin); }