aboutsummaryrefslogtreecommitdiffstats
path: root/simple_dialog.h
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2005-04-16 19:18:05 +0000
committerUlf Lamping <ulf.lamping@web.de>2005-04-16 19:18:05 +0000
commit7debbfdfac24d5d26a7992ba0af7f025bbf6c9cd (patch)
tree5de92062ad9af6c6a192d342caa68a56c3c5bfdb /simple_dialog.h
parent36d16112ac51a9aa02ecfc3293ed8352609ebbe8 (diff)
prepare for "Don't show this message again" checkboxes in the simple_dialog
svn path=/trunk/; revision=14100
Diffstat (limited to 'simple_dialog.h')
-rw-r--r--simple_dialog.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/simple_dialog.h b/simple_dialog.h
index d5debc33c3..071de16a4b 100644
--- a/simple_dialog.h
+++ b/simple_dialog.h
@@ -126,6 +126,20 @@ typedef void (* simple_dialog_cb_t) (gpointer dialog, gint btn, gpointer data);
*/
extern void simple_dialog_set_cb(gpointer dialog, simple_dialog_cb_t callback_fct, gpointer data);
+/** Add a check button to the dialog (e.g. "Don't show this message again")
+ *
+ * @param dialog the dialog from simple_dialog()
+ * @param text the text to display
+ */
+extern void simple_dialog_check_set(gpointer dialog, gchar *text);
+
+/** Get the check buttons state.
+ *
+ * @param dialog the dialog from simple_dialog()
+ * @return current button state (TRUE is checked)
+ */
+extern gboolean simple_dialog_check_get(gpointer dialog);
+
/** Surround the primary dialog message text by
* simple_dialog_primary_start() and simple_dialog_primary_end().
* To highlight the first sentence (will take effect on GTK2 only).