summaryrefslogtreecommitdiff
path: root/gtk/gtkmessagedialog.h
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2009-12-18 05:00:56 +0100
committerJavier Jardón <jjardon@gnome.org>2010-04-21 05:57:29 +0200
commit95fd5011c2e7251f424e583237023a937e47303c (patch)
tree77fcb4c8795b623534287ef0c79a30dab840c219 /gtk/gtkmessagedialog.h
parent51a1af7aa4209bc602dafc058f87e3ed7a901764 (diff)
downloadgtk+-95fd5011c2e7251f424e583237023a937e47303c.tar.gz
Move documentation to inline comments: GtkMessageDialog
Also, add a note about GTK_BUTTONS_OK, GTK_BUTTONS_YES_NO and GTK_BUTTONS_OK_CANCEL are discouraged by the GNOME HIG. https://bugzilla.gnome.org/show_bug.cgi?id=597865
Diffstat (limited to 'gtk/gtkmessagedialog.h')
-rw-r--r--gtk/gtkmessagedialog.h37
1 files changed, 28 insertions, 9 deletions
diff --git a/gtk/gtkmessagedialog.h b/gtk/gtkmessagedialog.h
index 1bb1ec5fc2..c46c7b3db7 100644
--- a/gtk/gtkmessagedialog.h
+++ b/gtk/gtkmessagedialog.h
@@ -36,15 +36,6 @@
G_BEGIN_DECLS
-typedef enum
-{
- GTK_BUTTONS_NONE,
- GTK_BUTTONS_OK,
- GTK_BUTTONS_CLOSE,
- GTK_BUTTONS_CANCEL,
- GTK_BUTTONS_YES_NO,
- GTK_BUTTONS_OK_CANCEL
-} GtkButtonsType;
#define GTK_TYPE_MESSAGE_DIALOG (gtk_message_dialog_get_type ())
#define GTK_MESSAGE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_MESSAGE_DIALOG, GtkMessageDialog))
@@ -77,6 +68,34 @@ struct _GtkMessageDialogClass
void (*_gtk_reserved4) (void);
};
+/**
+ * GtkButtonsType:
+ * @GTK_BUTTONS_NONE: no buttons at all
+ * @GTK_BUTTONS_OK: an OK button
+ * @GTK_BUTTONS_CLOSE: a Close button
+ * @GTK_BUTTONS_CANCEL: a Cancel button
+ * @GTK_BUTTONS_YES_NO: Yes and No buttons
+ * @GTK_BUTTONS_OK_CANCEL: OK and Cancel buttons
+ *
+ * Prebuilt sets of buttons for the dialog. If
+ * none of these choices are appropriate, simply use %GTK_BUTTONS_NONE
+ * then call gtk_dialog_add_buttons().
+ * <note>
+ * Please note that %GTK_BUTTONS_OK, %GTK_BUTTONS_YES_NO
+ * and %GTK_BUTTONS_OK_CANCEL are discouraged by the
+ * <ulink url="http://library.gnome.org/devel/hig-book/stable/">GNOME HIG</ulink>.
+ * </note>
+ */
+typedef enum
+{
+ GTK_BUTTONS_NONE,
+ GTK_BUTTONS_OK,
+ GTK_BUTTONS_CLOSE,
+ GTK_BUTTONS_CANCEL,
+ GTK_BUTTONS_YES_NO,
+ GTK_BUTTONS_OK_CANCEL
+} GtkButtonsType;
+
GType gtk_message_dialog_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_message_dialog_new (GtkWindow *parent,