docs: Document various entry ::activate signals

This commit is contained in:
Matthias Clasen 2020-09-28 22:52:35 -04:00
parent aac9414117
commit 4a2c817690
4 changed files with 25 additions and 1 deletions

View File

@ -941,6 +941,14 @@ gtk_entry_class_init (GtkEntryClass *class)
g_object_class_override_property (gobject_class, PROP_EDITING_CANCELED, "editing-canceled");
gtk_editable_install_properties (gobject_class, PROP_EDITING_CANCELED + 1);
/**
* GtkEntry:activate:
* @self: The widget on which the signal is emitted
*
* The ::activate signal is forwarded from the
* #GtkText::activated signal, which is a keybinding
* signal for all forms of the Enter key.
*/
signals[ACTIVATE] =
g_signal_new (I_("activate"),
G_OBJECT_CLASS_TYPE (gobject_class),

View File

@ -452,6 +452,14 @@ gtk_password_entry_class_init (GtkPasswordEntryClass *klass)
g_object_class_install_properties (object_class, NUM_PROPERTIES, props);
gtk_editable_install_properties (object_class, NUM_PROPERTIES);
/**
* GtkPasswordEntry:activate:
* @self: The widget on which the signal is emitted
*
* The ::activate signal is forwarded from the
* #GtkText::activated signal, which is a keybinding
* signal for all forms of the Enter key.
*/
signals[ACTIVATE] =
g_signal_new (I_("activate"),
G_OBJECT_CLASS_TYPE (object_class),

View File

@ -295,6 +295,14 @@ gtk_search_entry_class_init (GtkSearchEntryClass *klass)
g_object_class_install_properties (object_class, NUM_PROPERTIES, props);
gtk_editable_install_properties (object_class, NUM_PROPERTIES);
/**
* GtkSearchEntry:activate:
* @self: The widget on which the signal is emitted
*
* The ::activate signal is forwarded from the
* #GtkText::activated signal, which is a keybinding
* signal for all forms of the Enter key.
*/
signals[ACTIVATE] =
g_signal_new (I_("activate"),
G_OBJECT_CLASS_TYPE (object_class),

View File

@ -949,7 +949,7 @@ gtk_text_class_init (GtkTextClass *class)
/**
* GtkText::activate:
* @self: The self on which the signal is emitted
* @self: The widget on which the signal is emitted
*
* The ::activate signal is emitted when the user hits
* the Enter key.