diff options
author | Sophie Herold <sophie@hemio.de> | 2022-05-11 14:19:39 +0200 |
---|---|---|
committer | Sophie Herold <sophie@hemio.de> | 2022-05-11 18:16:29 +0200 |
commit | a546ae32d773a26f2f329f237e94bef74db6cce1 (patch) | |
tree | 2ae64ca0eee53ad0c73ec845ed9734c1df91b95d /gtk/gtkshortcuttrigger.c | |
parent | 9536eb654b15b2a906d4b63bbb9bb56a81e0a146 (diff) | |
download | gtk+-a546ae32d773a26f2f329f237e94bef74db6cce1.tar.gz |
Remove all nicks and blurbs from param specs
Those property features don't seem to be in use anywhere.
They are redundant since the docs cover the same information
and more. They also created unnecessary translation work.
Closes #4904
Diffstat (limited to 'gtk/gtkshortcuttrigger.c')
-rw-r--r-- | gtk/gtkshortcuttrigger.c | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/gtk/gtkshortcuttrigger.c b/gtk/gtkshortcuttrigger.c index bd4cfce061..2d7b5b8ade 100644 --- a/gtk/gtkshortcuttrigger.c +++ b/gtk/gtkshortcuttrigger.c @@ -657,9 +657,7 @@ gtk_keyval_trigger_class_init (GtkKeyvalTriggerClass *klass) * The key value for the trigger. */ keyval_props[KEYVAL_PROP_KEYVAL] = - g_param_spec_uint (I_("keyval"), - P_("Key value"), - P_("The key value for the trigger"), + g_param_spec_uint (I_("keyval"), NULL, NULL, 0, G_MAXINT, 0, G_PARAM_STATIC_STRINGS | @@ -672,9 +670,7 @@ gtk_keyval_trigger_class_init (GtkKeyvalTriggerClass *klass) * The key modifiers for the trigger. */ keyval_props[KEYVAL_PROP_MODIFIERS] = - g_param_spec_flags (I_("modifiers"), - P_("Modifiers"), - P_("The key modifiers for the trigger"), + g_param_spec_flags (I_("modifiers"), NULL, NULL, GDK_TYPE_MODIFIER_TYPE, 0, G_PARAM_STATIC_STRINGS | @@ -913,9 +909,7 @@ gtk_mnemonic_trigger_class_init (GtkMnemonicTriggerClass *klass) * The key value for the trigger. */ mnemonic_props[KEYVAL_PROP_KEYVAL] = - g_param_spec_uint (I_("keyval"), - P_("Key value"), - P_("The key value for the trigger"), + g_param_spec_uint (I_("keyval"), NULL, NULL, 0, G_MAXINT, 0, G_PARAM_STATIC_STRINGS | @@ -1159,9 +1153,7 @@ gtk_alternative_trigger_class_init (GtkAlternativeTriggerClass *klass) * The first `GtkShortcutTrigger` to check. */ alternative_props[ALTERNATIVE_PROP_FIRST] = - g_param_spec_object (I_("first"), - P_("First"), - P_("The first trigger to check"), + g_param_spec_object (I_("first"), NULL, NULL, GTK_TYPE_SHORTCUT_TRIGGER, G_PARAM_STATIC_STRINGS | G_PARAM_CONSTRUCT_ONLY | @@ -1173,9 +1165,7 @@ gtk_alternative_trigger_class_init (GtkAlternativeTriggerClass *klass) * The second `GtkShortcutTrigger` to check. */ alternative_props[ALTERNATIVE_PROP_SECOND] = - g_param_spec_object (I_("second"), - P_("Second"), - P_("The second trigger to check"), + g_param_spec_object (I_("second"), NULL, NULL, GTK_TYPE_SHORTCUT_TRIGGER, G_PARAM_STATIC_STRINGS | G_PARAM_CONSTRUCT_ONLY | |