static int _new_on_message(void * data, uint32_t value1, uint32_t value2, uint32_t value3) { Panel * panel = data; PanelMessage message = value1; PanelMessageShow what; gboolean show; switch(message) { case PANEL_MESSAGE_SHOW: what = value2; show = value3; if(what & PANEL_MESSAGE_SHOW_PANEL_BOTTOM && panel->bottom != NULL) panel_window_show(panel->bottom, show); if(what & PANEL_MESSAGE_SHOW_PANEL_TOP && panel->top != NULL) panel_window_show(panel->top, show); if(what & PANEL_MESSAGE_SHOW_SETTINGS) panel_show_preferences(panel, show); break; case PANEL_MESSAGE_EMBED: /* ignore it (not meant to be handled here) */ break; } return 0; }
static gboolean _on_idle(gpointer data) { Panel * panel = data; panel_show_preferences(panel, FALSE); if(panel->top != NULL) _idle_load(panel, PANEL_POSITION_TOP); if(panel->bottom != NULL) _idle_load(panel, PANEL_POSITION_BOTTOM); gtk_notebook_set_current_page(GTK_NOTEBOOK(panel->pr_notebook), 0); return FALSE; }
/* panel_helper_preferences_dialog */ static void _panel_helper_preferences_dialog(Panel * panel) { panel_show_preferences(panel, TRUE); }