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/gtksingleselection.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/gtksingleselection.c')
-rw-r--r-- | gtk/gtksingleselection.c | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/gtk/gtksingleselection.c b/gtk/gtksingleselection.c index d0d50c7304..27d62845f9 100644 --- a/gtk/gtksingleselection.c +++ b/gtk/gtksingleselection.c @@ -383,9 +383,7 @@ gtk_single_selection_class_init (GtkSingleSelectionClass *klass) * If the selection will always select an item. */ properties[PROP_AUTOSELECT] = - g_param_spec_boolean ("autoselect", - P_("Autoselect"), - P_("If the selection will always select an item"), + g_param_spec_boolean ("autoselect", NULL, NULL, TRUE, G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS); @@ -395,9 +393,7 @@ gtk_single_selection_class_init (GtkSingleSelectionClass *klass) * If unselecting the selected item is allowed. */ properties[PROP_CAN_UNSELECT] = - g_param_spec_boolean ("can-unselect", - P_("Can unselect"), - P_("If unselecting the selected item is allowed"), + g_param_spec_boolean ("can-unselect", NULL, NULL, FALSE, G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS); @@ -407,9 +403,7 @@ gtk_single_selection_class_init (GtkSingleSelectionClass *klass) * Position of the selected item. */ properties[PROP_SELECTED] = - g_param_spec_uint ("selected", - P_("Selected"), - P_("Position of the selected item"), + g_param_spec_uint ("selected", NULL, NULL, 0, G_MAXUINT, GTK_INVALID_LIST_POSITION, G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS); @@ -419,9 +413,7 @@ gtk_single_selection_class_init (GtkSingleSelectionClass *klass) * The selected item. */ properties[PROP_SELECTED_ITEM] = - g_param_spec_object ("selected-item", - P_("Selected Item"), - P_("The selected item"), + g_param_spec_object ("selected-item", NULL, NULL, G_TYPE_OBJECT, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); @@ -431,9 +423,7 @@ gtk_single_selection_class_init (GtkSingleSelectionClass *klass) * The model being managed. */ properties[PROP_MODEL] = - g_param_spec_object ("model", - P_("The model"), - P_("The model being managed"), + g_param_spec_object ("model", NULL, NULL, G_TYPE_LIST_MODEL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); |