mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 21:21:21 +00:00
gtk: Add missing return annotations
This commit is contained in:
parent
ba5993195a
commit
30eaa2c3cc
@ -505,6 +505,8 @@ out:
|
|||||||
*
|
*
|
||||||
* If the parse operation fails, @accelerator_key and @accelerator_mods will
|
* If the parse operation fails, @accelerator_key and @accelerator_mods will
|
||||||
* be set to 0 (zero).
|
* be set to 0 (zero).
|
||||||
|
*
|
||||||
|
* Returns: whether parsing succeeded
|
||||||
*/
|
*/
|
||||||
gboolean
|
gboolean
|
||||||
gtk_accelerator_parse (const char *accelerator,
|
gtk_accelerator_parse (const char *accelerator,
|
||||||
|
@ -1231,6 +1231,8 @@ gtk_editable_delegate_get_property (GObject *object,
|
|||||||
* delegate the %GTK_ACCESSIBLE_ROLE_TEXT_BOX role, or you can
|
* delegate the %GTK_ACCESSIBLE_ROLE_TEXT_BOX role, or you can
|
||||||
* change your tree to allow this function to work.
|
* change your tree to allow this function to work.
|
||||||
*
|
*
|
||||||
|
* Returns: the accessible platform state of the delegate
|
||||||
|
*
|
||||||
* Since: 4.10
|
* Since: 4.10
|
||||||
*/
|
*/
|
||||||
gboolean
|
gboolean
|
||||||
|
@ -237,6 +237,8 @@ gtk_event_controller_key_class_init (GtkEventControllerKeyClass *klass)
|
|||||||
* pointer buttons.
|
* pointer buttons.
|
||||||
*
|
*
|
||||||
* Emitted whenever the state of modifier keys and pointer buttons change.
|
* Emitted whenever the state of modifier keys and pointer buttons change.
|
||||||
|
*
|
||||||
|
* Returns: whether to ignore modifiers
|
||||||
*/
|
*/
|
||||||
signals[MODIFIERS] =
|
signals[MODIFIERS] =
|
||||||
g_signal_new (I_("modifiers"),
|
g_signal_new (I_("modifiers"),
|
||||||
|
@ -558,6 +558,8 @@ gtk_paned_class_init (GtkPanedClass *class)
|
|||||||
* This is a [keybinding signal](class.SignalAction.html).
|
* This is a [keybinding signal](class.SignalAction.html).
|
||||||
*
|
*
|
||||||
* The default binding is <kbd>F6</kbd>.
|
* The default binding is <kbd>F6</kbd>.
|
||||||
|
*
|
||||||
|
* Returns: whether the behavior was cycled
|
||||||
*/
|
*/
|
||||||
signals [CYCLE_CHILD_FOCUS] =
|
signals [CYCLE_CHILD_FOCUS] =
|
||||||
g_signal_new (I_("cycle-child-focus"),
|
g_signal_new (I_("cycle-child-focus"),
|
||||||
@ -582,6 +584,8 @@ gtk_paned_class_init (GtkPanedClass *class)
|
|||||||
* This is a [keybinding signal](class.SignalAction.html).
|
* This is a [keybinding signal](class.SignalAction.html).
|
||||||
*
|
*
|
||||||
* The default binding is <kbd>Tab</kbd>.
|
* The default binding is <kbd>Tab</kbd>.
|
||||||
|
*
|
||||||
|
* Return: whether handle focus was toggled
|
||||||
*/
|
*/
|
||||||
signals [TOGGLE_HANDLE_FOCUS] =
|
signals [TOGGLE_HANDLE_FOCUS] =
|
||||||
g_signal_new (I_("toggle-handle-focus"),
|
g_signal_new (I_("toggle-handle-focus"),
|
||||||
@ -603,6 +607,8 @@ gtk_paned_class_init (GtkPanedClass *class)
|
|||||||
* Emitted to move the handle with key bindings.
|
* Emitted to move the handle with key bindings.
|
||||||
*
|
*
|
||||||
* This is a [keybinding signal](class.SignalAction.html).
|
* This is a [keybinding signal](class.SignalAction.html).
|
||||||
|
*
|
||||||
|
* Returns: whether the handle was moved
|
||||||
*/
|
*/
|
||||||
signals[MOVE_HANDLE] =
|
signals[MOVE_HANDLE] =
|
||||||
g_signal_new (I_("move-handle"),
|
g_signal_new (I_("move-handle"),
|
||||||
@ -628,6 +634,8 @@ gtk_paned_class_init (GtkPanedClass *class)
|
|||||||
* This is a [keybinding signal](class.SignalAction.html).
|
* This is a [keybinding signal](class.SignalAction.html).
|
||||||
*
|
*
|
||||||
* The default binding for this signal is <kbd>F8</kbd>.
|
* The default binding for this signal is <kbd>F8</kbd>.
|
||||||
|
*
|
||||||
|
* Returns: whether the behavior was cycled
|
||||||
*/
|
*/
|
||||||
signals [CYCLE_HANDLE_FOCUS] =
|
signals [CYCLE_HANDLE_FOCUS] =
|
||||||
g_signal_new (I_("cycle-handle-focus"),
|
g_signal_new (I_("cycle-handle-focus"),
|
||||||
@ -653,6 +661,8 @@ gtk_paned_class_init (GtkPanedClass *class)
|
|||||||
*
|
*
|
||||||
* The default binding for this signal is <kbd>Return</kbd> or
|
* The default binding for this signal is <kbd>Return</kbd> or
|
||||||
* <kbd>Space</kbd>.
|
* <kbd>Space</kbd>.
|
||||||
|
*
|
||||||
|
* Returns: whether the position was accepted
|
||||||
*/
|
*/
|
||||||
signals [ACCEPT_POSITION] =
|
signals [ACCEPT_POSITION] =
|
||||||
g_signal_new (I_("accept-position"),
|
g_signal_new (I_("accept-position"),
|
||||||
@ -679,6 +689,8 @@ gtk_paned_class_init (GtkPanedClass *class)
|
|||||||
* This is a [keybinding signal](class.SignalAction.html).
|
* This is a [keybinding signal](class.SignalAction.html).
|
||||||
*
|
*
|
||||||
* The default binding for this signal is <kbd>Escape</kbd>.
|
* The default binding for this signal is <kbd>Escape</kbd>.
|
||||||
|
*
|
||||||
|
* Returns: whether the position was canceled
|
||||||
*/
|
*/
|
||||||
signals [CANCEL_POSITION] =
|
signals [CANCEL_POSITION] =
|
||||||
g_signal_new (I_("cancel-position"),
|
g_signal_new (I_("cancel-position"),
|
||||||
|
@ -776,6 +776,8 @@ gtk_scrolled_window_class_init (GtkScrolledWindowClass *class)
|
|||||||
*
|
*
|
||||||
* The horizontal or vertical adjustment is updated which triggers a
|
* The horizontal or vertical adjustment is updated which triggers a
|
||||||
* signal that the scrolled window’s child may listen to and scroll itself.
|
* signal that the scrolled window’s child may listen to and scroll itself.
|
||||||
|
*
|
||||||
|
* Returns: whether the scroll happened
|
||||||
*/
|
*/
|
||||||
signals[SCROLL_CHILD] =
|
signals[SCROLL_CHILD] =
|
||||||
g_signal_new (I_("scroll-child"),
|
g_signal_new (I_("scroll-child"),
|
||||||
|
@ -6876,6 +6876,8 @@ gtk_text_set_input_purpose (GtkText *self,
|
|||||||
* @self: a `GtkText`
|
* @self: a `GtkText`
|
||||||
*
|
*
|
||||||
* Gets the input purpose of the `GtkText`.
|
* Gets the input purpose of the `GtkText`.
|
||||||
|
*
|
||||||
|
* Returns: the input purpose
|
||||||
*/
|
*/
|
||||||
GtkInputPurpose
|
GtkInputPurpose
|
||||||
gtk_text_get_input_purpose (GtkText *self)
|
gtk_text_get_input_purpose (GtkText *self)
|
||||||
@ -6925,6 +6927,8 @@ gtk_text_set_input_hints (GtkText *self,
|
|||||||
* @self: a `GtkText`
|
* @self: a `GtkText`
|
||||||
*
|
*
|
||||||
* Gets the input hints of the `GtkText`.
|
* Gets the input hints of the `GtkText`.
|
||||||
|
*
|
||||||
|
* Returns: the input hints
|
||||||
*/
|
*/
|
||||||
GtkInputHints
|
GtkInputHints
|
||||||
gtk_text_get_input_hints (GtkText *self)
|
gtk_text_get_input_hints (GtkText *self)
|
||||||
|
@ -10058,6 +10058,8 @@ gtk_text_view_set_input_purpose (GtkTextView *text_view,
|
|||||||
* @text_view: a `GtkTextView`
|
* @text_view: a `GtkTextView`
|
||||||
*
|
*
|
||||||
* Gets the `input-purpose` of the `GtkTextView`.
|
* Gets the `input-purpose` of the `GtkTextView`.
|
||||||
|
*
|
||||||
|
* Returns: the input purpose
|
||||||
*/
|
*/
|
||||||
GtkInputPurpose
|
GtkInputPurpose
|
||||||
gtk_text_view_get_input_purpose (GtkTextView *text_view)
|
gtk_text_view_get_input_purpose (GtkTextView *text_view)
|
||||||
@ -10106,6 +10108,8 @@ gtk_text_view_set_input_hints (GtkTextView *text_view,
|
|||||||
* @text_view: a `GtkTextView`
|
* @text_view: a `GtkTextView`
|
||||||
*
|
*
|
||||||
* Gets the `input-hints` of the `GtkTextView`.
|
* Gets the `input-hints` of the `GtkTextView`.
|
||||||
|
*
|
||||||
|
* Returns: the input hints
|
||||||
*/
|
*/
|
||||||
GtkInputHints
|
GtkInputHints
|
||||||
gtk_text_view_get_input_hints (GtkTextView *text_view)
|
gtk_text_view_get_input_hints (GtkTextView *text_view)
|
||||||
|
Loading…
Reference in New Issue
Block a user