summaryrefslogtreecommitdiff
path: root/src/gtkext/easygtk.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2015-02-09 22:07:42 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2015-02-09 22:07:42 (GMT)
commit1d79469f69bba33a2280d4bd531652b71148029f (patch)
treee81c094d6e829fb1a79d4c413c1cd162e14868a3 /src/gtkext/easygtk.c
parent8d326041a0379b87e54be44506d544367567e89b (diff)
Created a dialog box to create new bookmarks.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@468 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/gtkext/easygtk.c')
-rw-r--r--src/gtkext/easygtk.c40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/gtkext/easygtk.c b/src/gtkext/easygtk.c
index 11e17a4..fa99f38 100644
--- a/src/gtkext/easygtk.c
+++ b/src/gtkext/easygtk.c
@@ -876,3 +876,43 @@ GtkWidget *qck_create_tool_separator(GObject *object, const char *name)
return result;
}
+
+
+
+
+
+
+/******************************************************************************
+* *
+* Paramètres : parent = fenêtre parente pour la modalité d'affichage. *
+* title = titre de la boîte de dialogue. *
+* question = teneur de la question posée. *
+* *
+* Description : Affiche une boîte de dialogue offrant un choix "Oui/Non". *
+* *
+* Retour : Identifiant de la réponse choisie. *
+* *
+* Remarques : - *
+* *
+******************************************************************************/
+
+gint qck_show_question(GtkWindow *parent, const char *title, const char *question)
+{
+ gint result; /* Choix arrêté à renvoyer */
+ GtkWidget *dialog; /* Boîte de dialogue affichée */
+
+ dialog = gtk_message_dialog_new(parent,
+ GTK_DIALOG_DESTROY_WITH_PARENT,
+ GTK_MESSAGE_QUESTION,
+ GTK_BUTTONS_YES_NO,
+ question);
+
+ gtk_window_set_title(GTK_WINDOW(dialog), title);
+
+ result = gtk_dialog_run(GTK_DIALOG(dialog));
+
+ gtk_widget_destroy(dialog);
+
+ return result;
+
+}