forked from AuroraMiddleware/gtk
Merge branch 'matthiasc/for-master' into 'master'
shortcuts: documentation fixes See merge request GNOME/gtk!1628
This commit is contained in:
commit
005739371c
@ -5958,11 +5958,9 @@ gtk_event_controller_motion_get_type
|
|||||||
<FILE>gtkshortcuttrigger</FILE>
|
<FILE>gtkshortcuttrigger</FILE>
|
||||||
<TITLE>GtkShortcutTrigger</TITLE>
|
<TITLE>GtkShortcutTrigger</TITLE>
|
||||||
GtkShortcutTrigger
|
GtkShortcutTrigger
|
||||||
gtk_shortcut_trigger_ref
|
GtkNeverTrigger
|
||||||
gtk_shortcut_trigger_unref
|
|
||||||
GtkShortcutTriggerType
|
GtkShortcutTriggerMatch
|
||||||
gtk_shortcut_trigger_get_trigger_type
|
|
||||||
gtk_shortcut_trigger_parse_string
|
|
||||||
gtk_shortcut_trigger_trigger
|
gtk_shortcut_trigger_trigger
|
||||||
gtk_shortcut_trigger_hash
|
gtk_shortcut_trigger_hash
|
||||||
gtk_shortcut_trigger_equal
|
gtk_shortcut_trigger_equal
|
||||||
@ -5971,16 +5969,28 @@ gtk_shortcut_trigger_to_string
|
|||||||
gtk_shortcut_trigger_print
|
gtk_shortcut_trigger_print
|
||||||
gtk_shortcut_trigger_to_label
|
gtk_shortcut_trigger_to_label
|
||||||
gtk_shortcut_trigger_print_label
|
gtk_shortcut_trigger_print_label
|
||||||
|
gtk_shortcut_trigger_parse_string
|
||||||
|
|
||||||
<SUBSECTION>
|
<SUBSECTION>
|
||||||
|
GtkKeyvalTrigger
|
||||||
gtk_keyval_trigger_new
|
gtk_keyval_trigger_new
|
||||||
gtk_keyval_trigger_get_modifiers
|
gtk_keyval_trigger_get_modifiers
|
||||||
gtk_keyval_trigger_get_keyval
|
gtk_keyval_trigger_get_keyval
|
||||||
|
|
||||||
<SUBSECTION>
|
<SUBSECTION>
|
||||||
|
GtkMnemonicTrigger
|
||||||
gtk_mnemonic_trigger_new
|
gtk_mnemonic_trigger_new
|
||||||
gtk_mnemonic_trigger_get_keyval
|
gtk_mnemonic_trigger_get_keyval
|
||||||
|
|
||||||
|
<SUBSECTION>
|
||||||
|
GtkAlternativeTrigger
|
||||||
|
gtk_alternative_trigger_new
|
||||||
|
gtk_alternative_trigger_get_first
|
||||||
|
|
||||||
|
<SUBSECTION>
|
||||||
|
GtkNeverTrigger
|
||||||
|
gtk_never_trigger_get
|
||||||
|
|
||||||
<SUBSECTION Private>
|
<SUBSECTION Private>
|
||||||
gtk_shortcut_trigger_get_type
|
gtk_shortcut_trigger_get_type
|
||||||
</SECTION>
|
</SECTION>
|
||||||
@ -5989,33 +5999,36 @@ gtk_shortcut_trigger_get_type
|
|||||||
<FILE>gtkshortcutaction</FILE>
|
<FILE>gtkshortcutaction</FILE>
|
||||||
<TITLE>GtkShortcutAction</TITLE>
|
<TITLE>GtkShortcutAction</TITLE>
|
||||||
GtkShortcutAction
|
GtkShortcutAction
|
||||||
gtk_shortcut_action_ref
|
|
||||||
gtk_shortcut_action_unref
|
|
||||||
GtkShortcutActionType
|
|
||||||
gtk_shortcut_action_get_action_type
|
|
||||||
gtk_shortcut_action_to_string
|
gtk_shortcut_action_to_string
|
||||||
gtk_shortcut_action_print
|
gtk_shortcut_action_print
|
||||||
|
gtk_shortcut_action_parse_string
|
||||||
gtk_shortcut_action_activate
|
gtk_shortcut_action_activate
|
||||||
|
|
||||||
<SUBSECTION>
|
<SUBSECTION>
|
||||||
gtk_nothing_action_new
|
GtkNothingAction
|
||||||
|
gtk_nothing_action_get
|
||||||
|
|
||||||
<SUBSECTION>
|
<SUBSECTION>
|
||||||
|
GtkCallbackAction
|
||||||
gtk_callback_action_new
|
gtk_callback_action_new
|
||||||
|
|
||||||
<SUBSECTION>
|
<SUBSECTION>
|
||||||
gtk_mnemonic_action_new
|
GtkMnemonicAction
|
||||||
|
gtk_mnemonic_action_get
|
||||||
|
|
||||||
<SUBSECTION>
|
<SUBSECTION>
|
||||||
gtk_activate_action_new
|
GtkActivateAction
|
||||||
|
gtk_activate_action_get
|
||||||
|
|
||||||
<SUBSECTION>
|
<SUBSECTION>
|
||||||
|
GtkSignalAction
|
||||||
gtk_signal_action_new
|
gtk_signal_action_new
|
||||||
gtk_signal_action_get_signal_name
|
gtk_signal_action_get_signal_name
|
||||||
|
|
||||||
<SUBSECTION>
|
<SUBSECTION>
|
||||||
|
GtkNamedAction
|
||||||
gtk_named_action_new
|
gtk_named_action_new
|
||||||
gtk_named_action_get_name
|
gtk_named_action_get_action_name
|
||||||
|
|
||||||
<SUBSECTION Private>
|
<SUBSECTION Private>
|
||||||
gtk_shortcut_action_get_type
|
gtk_shortcut_action_get_type
|
||||||
|
@ -183,6 +183,25 @@ string_is_function (const char *string,
|
|||||||
return g_strndup (string, len - 1);
|
return g_strndup (string, len - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* gtk_shortcut_action_parse_string: (constructor)
|
||||||
|
* @string: the string to parse
|
||||||
|
*
|
||||||
|
* Tries to parse the given string into an action. On
|
||||||
|
* success, the parsed action is returned. When parsing
|
||||||
|
* failed, %NULL is returned.
|
||||||
|
*
|
||||||
|
* The accepted strings are:
|
||||||
|
*
|
||||||
|
* - `nothing`, for #GtkNothingAction
|
||||||
|
* - `activate`, for #GtkActivateAction
|
||||||
|
* - `mnemonic-activate`, for #GtkMnemonicAction
|
||||||
|
* - `action(NAME)`, for a #GtkNamedAction for the action named `NAME`
|
||||||
|
* - `signal(NAME)`, for a #GtkSignalAction for the signal `NAME`
|
||||||
|
*
|
||||||
|
* Returns: (nullable) (transfer full): a new #GtkShortcutAction
|
||||||
|
* or %NULL on error
|
||||||
|
*/
|
||||||
GtkShortcutAction *
|
GtkShortcutAction *
|
||||||
gtk_shortcut_action_parse_string (const char *string)
|
gtk_shortcut_action_parse_string (const char *string)
|
||||||
{
|
{
|
||||||
|
@ -118,10 +118,10 @@ gtk_shortcut_trigger_trigger (GtkShortcutTrigger *self,
|
|||||||
* The accepted strings are:
|
* The accepted strings are:
|
||||||
*
|
*
|
||||||
* - `never`, for #GtkNeverTrigger
|
* - `never`, for #GtkNeverTrigger
|
||||||
* - a string parsed by gtk_accelerator_parse(), for a #GtkKeyvalTrigger
|
* - a string parsed by gtk_accelerator_parse(), for a #GtkKeyvalTrigger, e.g. `<Control>C`
|
||||||
* - underscore, followed by a single character, for #GtkMnemonicTrigger
|
* - underscore, followed by a single character, for MnemonicTrigger, e.g. `_l`
|
||||||
* - two valid trigger strings, separated by a `|` character, for a
|
* - two valid trigger strings, separated by a `|` character, for a
|
||||||
* #GtkAlternativeTrigger
|
* #GtkAlternativeTrigger: `<Control>q|<Control>w`
|
||||||
*
|
*
|
||||||
* Returns: (nullable) (transfer full): a new #GtkShortcutTrigger
|
* Returns: (nullable) (transfer full): a new #GtkShortcutTrigger
|
||||||
* or %NULL on error
|
* or %NULL on error
|
||||||
|
Loading…
Reference in New Issue
Block a user