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/gtkscrollable.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/gtkscrollable.c')
-rw-r--r-- | gtk/gtkscrollable.c | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/gtk/gtkscrollable.c b/gtk/gtkscrollable.c index 4df0c170f6..1ffb11be9f 100644 --- a/gtk/gtkscrollable.c +++ b/gtk/gtkscrollable.c @@ -71,11 +71,7 @@ gtk_scrollable_default_init (GtkScrollableInterface *iface) * * This adjustment is shared between the scrollable widget and its parent. */ - pspec = g_param_spec_object ("hadjustment", - P_("Horizontal adjustment"), - P_("Horizontal adjustment that is shared " - "between the scrollable widget and its " - "controller"), + pspec = g_param_spec_object ("hadjustment", NULL, NULL, GTK_TYPE_ADJUSTMENT, GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT); g_object_interface_install_property (iface, pspec); @@ -87,11 +83,7 @@ gtk_scrollable_default_init (GtkScrollableInterface *iface) * * This adjustment is shared between the scrollable widget and its parent. */ - pspec = g_param_spec_object ("vadjustment", - P_("Vertical adjustment"), - P_("Vertical adjustment that is shared " - "between the scrollable widget and its " - "controller"), + pspec = g_param_spec_object ("vadjustment", NULL, NULL, GTK_TYPE_ADJUSTMENT, GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT); g_object_interface_install_property (iface, pspec); @@ -101,9 +93,7 @@ gtk_scrollable_default_init (GtkScrollableInterface *iface) * * Determines when horizontal scrolling should start. */ - pspec = g_param_spec_enum ("hscroll-policy", - P_("Horizontal Scrollable Policy"), - P_("How the size of the content should be determined"), + pspec = g_param_spec_enum ("hscroll-policy", NULL, NULL, GTK_TYPE_SCROLLABLE_POLICY, GTK_SCROLL_MINIMUM, GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY); @@ -114,9 +104,7 @@ gtk_scrollable_default_init (GtkScrollableInterface *iface) * * Determines when vertical scrolling should start. */ - pspec = g_param_spec_enum ("vscroll-policy", - P_("Vertical Scrollable Policy"), - P_("How the size of the content should be determined"), + pspec = g_param_spec_enum ("vscroll-policy", NULL, NULL, GTK_TYPE_SCROLLABLE_POLICY, GTK_SCROLL_MINIMUM, GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY); |