static void no_parent_dialog_cb (GSimpleAction *action, GVariant *parameter, gpointer callback_data) { make_dialog (NULL, 1); }
static void no_parent_dialog_cb (gpointer callback_data, guint callback_action, GtkWidget *widget) { make_dialog (NULL, 1); }
static void dialog_cb (GSimpleAction *action, GVariant *parameter, gpointer callback_data) { make_dialog (GTK_WIDGET (callback_data), 1); }
static void dialog_cb (gpointer callback_data, guint callback_action, GtkWidget *widget) { make_dialog (GTK_WIDGET (callback_data), 1); }
void shutdown() { GtkWidget *dialog; int lang = get_lang(); dialog = make_dialog(item_labels[3], dialog_icon_file); gtk_widget_show_all(dialog); }
void reboot() { GtkWidget *dialog; int lang = get_lang(); dialog = make_dialog(item_labels[2], dialog_icon_file); gtk_widget_show_all(dialog); }
static void response_cb (GtkDialog *dialog, int response_id, void *data) { switch (response_id) { case GTK_RESPONSE_ACCEPT: make_dialog (GTK_WIDGET (dialog), GPOINTER_TO_INT (g_object_get_data (G_OBJECT (dialog), "depth")) + 1); break; default: gtk_widget_destroy (GTK_WIDGET (dialog)); break; } }
LJEntry* draft_store_ui_select(DraftStore *ds, GtkWindow *parent) { DraftStoreUI dsui_actual = {0}, *dsui = &dsui_actual; LJEntry *entry = NULL; dsui->ds = ds; dsui->store = gtk_list_store_new(COL_COUNT, /*GDK_TYPE_PIXBUF, */G_TYPE_STRING, G_TYPE_STRING, G_TYPE_INT); make_dialog(dsui, parent); /*dsui->pb_friends = gtk_widget_render_icon(dsui->win, "logjam-protected", GTK_ICON_SIZE_MENU, NULL); dsui->pb_private = gtk_widget_render_icon(dsui->win, "logjam-private", GTK_ICON_SIZE_MENU, NULL);*/ if (!load_items(dsui)) return NULL; if (gtk_dialog_run(GTK_DIALOG(dsui->win)) == GTK_RESPONSE_OK) entry = load_selected(dsui); gtk_widget_destroy(dsui->win); return entry; }