summaryrefslogtreecommitdiff
path: root/gtk/gtkgridview.c
diff options
context:
space:
mode:
authorSophie Herold <sophie@hemio.de>2022-05-11 14:19:39 +0200
committerSophie Herold <sophie@hemio.de>2022-05-11 18:16:29 +0200
commita546ae32d773a26f2f329f237e94bef74db6cce1 (patch)
tree2ae64ca0eee53ad0c73ec845ed9734c1df91b95d /gtk/gtkgridview.c
parent9536eb654b15b2a906d4b63bbb9bb56a81e0a146 (diff)
downloadgtk+-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/gtkgridview.c')
-rw-r--r--gtk/gtkgridview.c24
1 files changed, 6 insertions, 18 deletions
diff --git a/gtk/gtkgridview.c b/gtk/gtkgridview.c
index 9b903dc5e0..aab1704a09 100644
--- a/gtk/gtkgridview.c
+++ b/gtk/gtkgridview.c
@@ -1054,9 +1054,7 @@ gtk_grid_view_class_init (GtkGridViewClass *klass)
* Factory for populating list items.
*/
properties[PROP_FACTORY] =
- g_param_spec_object ("factory",
- P_("Factory"),
- P_("Factory for populating list items"),
+ g_param_spec_object ("factory", NULL, NULL,
GTK_TYPE_LIST_ITEM_FACTORY,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -1070,9 +1068,7 @@ gtk_grid_view_class_init (GtkGridViewClass *klass)
* that value is used instead.
*/
properties[PROP_MAX_COLUMNS] =
- g_param_spec_uint ("max-columns",
- P_("Max columns"),
- P_("Maximum number of columns per row"),
+ g_param_spec_uint ("max-columns", NULL, NULL,
1, G_MAXUINT, DEFAULT_MAX_COLUMNS,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -1082,9 +1078,7 @@ gtk_grid_view_class_init (GtkGridViewClass *klass)
* Minimum number of columns per row.
*/
properties[PROP_MIN_COLUMNS] =
- g_param_spec_uint ("min-columns",
- P_("Min columns"),
- P_("Minimum number of columns per row"),
+ g_param_spec_uint ("min-columns", NULL, NULL,
1, G_MAXUINT, 1,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -1094,9 +1088,7 @@ gtk_grid_view_class_init (GtkGridViewClass *klass)
* Model for the items displayed.
*/
properties[PROP_MODEL] =
- g_param_spec_object ("model",
- P_("Model"),
- P_("Model for the items displayed"),
+ g_param_spec_object ("model", NULL, NULL,
GTK_TYPE_SELECTION_MODEL,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -1106,9 +1098,7 @@ gtk_grid_view_class_init (GtkGridViewClass *klass)
* Activate rows on single click and select them on hover.
*/
properties[PROP_SINGLE_CLICK_ACTIVATE] =
- g_param_spec_boolean ("single-click-activate",
- P_("Single click activate"),
- P_("Activate rows on single click"),
+ g_param_spec_boolean ("single-click-activate", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -1118,9 +1108,7 @@ gtk_grid_view_class_init (GtkGridViewClass *klass)
* Allow rubberband selection.
*/
properties[PROP_ENABLE_RUBBERBAND] =
- g_param_spec_boolean ("enable-rubberband",
- P_("Enable rubberband selection"),
- P_("Allow selecting items by dragging with the mouse"),
+ g_param_spec_boolean ("enable-rubberband", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);