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/gtklevelbar.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/gtklevelbar.c')
-rw-r--r-- | gtk/gtklevelbar.c | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/gtk/gtklevelbar.c b/gtk/gtklevelbar.c index 22b950067b..a8ce9564fd 100644 --- a/gtk/gtklevelbar.c +++ b/gtk/gtklevelbar.c @@ -958,9 +958,7 @@ gtk_level_bar_class_init (GtkLevelBarClass *klass) * Determines the currently filled value of the level bar. */ properties[PROP_VALUE] = - g_param_spec_double ("value", - P_("Currently filled value level"), - P_("Currently filled value level of the level bar"), + g_param_spec_double ("value", NULL, NULL, 0.0, G_MAXDOUBLE, 0.0, G_PARAM_READWRITE|G_PARAM_STATIC_STRINGS|G_PARAM_EXPLICIT_NOTIFY); @@ -970,9 +968,7 @@ gtk_level_bar_class_init (GtkLevelBarClass *klass) * Determines the minimum value of the interval that can be displayed by the bar. */ properties[PROP_MIN_VALUE] = - g_param_spec_double ("min-value", - P_("Minimum value level for the bar"), - P_("Minimum value level that can be displayed by the bar"), + g_param_spec_double ("min-value", NULL, NULL, 0.0, G_MAXDOUBLE, 0.0, G_PARAM_READWRITE|G_PARAM_STATIC_STRINGS|G_PARAM_EXPLICIT_NOTIFY); @@ -982,9 +978,7 @@ gtk_level_bar_class_init (GtkLevelBarClass *klass) * Determines the maximum value of the interval that can be displayed by the bar. */ properties[PROP_MAX_VALUE] = - g_param_spec_double ("max-value", - P_("Maximum value level for the bar"), - P_("Maximum value level that can be displayed by the bar"), + g_param_spec_double ("max-value", NULL, NULL, 0.0, G_MAXDOUBLE, 1.0, G_PARAM_READWRITE|G_PARAM_STATIC_STRINGS|G_PARAM_EXPLICIT_NOTIFY); @@ -1003,9 +997,7 @@ gtk_level_bar_class_init (GtkLevelBarClass *klass) * [property@Gtk.LevelBar:max-value]. */ properties[PROP_MODE] = - g_param_spec_enum ("mode", - P_("The mode of the value indicator"), - P_("The mode of the value indicator displayed by the bar"), + g_param_spec_enum ("mode", NULL, NULL, GTK_TYPE_LEVEL_BAR_MODE, GTK_LEVEL_BAR_MODE_CONTINUOUS, G_PARAM_READWRITE|G_PARAM_STATIC_STRINGS|G_PARAM_EXPLICIT_NOTIFY); @@ -1019,9 +1011,7 @@ gtk_level_bar_class_init (GtkLevelBarClass *klass) * Inverted level bars grow in the opposite direction. */ properties[PROP_INVERTED] = - g_param_spec_boolean ("inverted", - P_("Inverted"), - P_("Invert the direction in which the level bar grows"), + g_param_spec_boolean ("inverted", NULL, NULL, FALSE, G_PARAM_READWRITE|G_PARAM_STATIC_STRINGS|G_PARAM_EXPLICIT_NOTIFY); |