diff options
author | Matthias Clasen <mclasen@redhat.com> | 2007-11-25 05:40:49 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2007-11-25 05:40:49 +0000 |
commit | 0184d7caadd36aaacbb99dee0d179955012d1fdd (patch) | |
tree | d94c3821029b6694905cac423b9fec8ec9d9798a /gtk/gtkdialog.c | |
parent | 15e5f5b96a6b2b8329b04ee053c7a3128c09c4a2 (diff) | |
download | gtk+-0184d7caadd36aaacbb99dee0d179955012d1fdd.tar.gz |
Move signal and property documentation inline, fix a problem with the
2007-11-25 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkdialog.c: Move signal and property documentation inline,
fix a problem with the ::response signal docs. (#499133, Josselin
Mouette)
svn path=/trunk/; revision=19038
Diffstat (limited to 'gtk/gtkdialog.c')
-rw-r--r-- | gtk/gtkdialog.c | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/gtk/gtkdialog.c b/gtk/gtkdialog.c index 83c771a044..8760c19caf 100644 --- a/gtk/gtkdialog.c +++ b/gtk/gtkdialog.c @@ -133,6 +133,11 @@ gtk_dialog_class_init (GtkDialogClass *class) g_type_class_add_private (gobject_class, sizeof (GtkDialogPrivate)); + /** + * GtkDialog:has-separator: + * + * When %TRUE, the dialog has a separator bar above its buttons. + */ g_object_class_install_property (gobject_class, PROP_HAS_SEPARATOR, g_param_spec_boolean ("has-separator", @@ -140,7 +145,17 @@ gtk_dialog_class_init (GtkDialogClass *class) P_("The dialog has a separator bar above its buttons"), TRUE, GTK_PARAM_READWRITE)); - + + /** + * GtkDialog::response: + * @dialog: the object on which the signal is emitted + * @response_id: the response ID + * + * Emitted when an action widget is clicked, the dialog receives a + * delete event, or the application programmer calls gtk_dialog_response(). + * On a delete event, the response ID is #GTK_RESPONSE_DELETE_EVENT. + * Otherwise, it depends on which action widget was clicked. + */ dialog_signals[RESPONSE] = g_signal_new (I_("response"), G_OBJECT_CLASS_TYPE (class), @@ -151,6 +166,16 @@ gtk_dialog_class_init (GtkDialogClass *class) G_TYPE_NONE, 1, G_TYPE_INT); + /** + * GtkDialog::close: + * + * The ::close signal is a + * <link linkend="keybinding-signals">keybinding signal</link> + * which getrs emitted when the user uses a keybinding to close + * the dialog. + * + * The default binding for this signal is the Escape key. + */ dialog_signals[CLOSE] = g_signal_new (I_("close"), G_OBJECT_CLASS_TYPE (class), @@ -188,8 +213,7 @@ gtk_dialog_class_init (GtkDialogClass *class) binding_set = gtk_binding_set_by_class (class); - gtk_binding_entry_add_signal (binding_set, GDK_Escape, 0, - "close", 0); + gtk_binding_entry_add_signal (binding_set, GDK_Escape, 0, "close", 0); } static void |