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/gtkpasswordentry.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/gtkpasswordentry.c')
-rw-r--r-- | gtk/gtkpasswordentry.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/gtk/gtkpasswordentry.c b/gtk/gtkpasswordentry.c index f0b90f942f..b0ab04836f 100644 --- a/gtk/gtkpasswordentry.c +++ b/gtk/gtkpasswordentry.c @@ -463,9 +463,7 @@ gtk_password_entry_class_init (GtkPasswordEntryClass *klass) * when it is empty and unfocused. */ props[PROP_PLACEHOLDER_TEXT] = - g_param_spec_string ("placeholder-text", - P_("Placeholder text"), - P_("Show text in the entry when it’s empty and unfocused"), + g_param_spec_string ("placeholder-text", NULL, NULL, NULL, GTK_PARAM_READWRITE); @@ -475,9 +473,7 @@ gtk_password_entry_class_init (GtkPasswordEntryClass *klass) * Whether to activate the default widget when Enter is pressed. */ props[PROP_ACTIVATES_DEFAULT] = - g_param_spec_boolean ("activates-default", - P_("Activates default"), - P_("Whether to activate the default widget (such as the default button in a dialog) when Enter is pressed"), + g_param_spec_boolean ("activates-default", NULL, NULL, FALSE, GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY); @@ -487,9 +483,7 @@ gtk_password_entry_class_init (GtkPasswordEntryClass *klass) * Whether to show an icon for revealing the content. */ props[PROP_SHOW_PEEK_ICON] = - g_param_spec_boolean ("show-peek-icon", - P_("Show Peek Icon"), - P_("Whether to show an icon for revealing the content"), + g_param_spec_boolean ("show-peek-icon", NULL, NULL, FALSE, GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY); @@ -500,9 +494,7 @@ gtk_password_entry_class_init (GtkPasswordEntryClass *klass) * the context menu. */ props[PROP_EXTRA_MENU] = - g_param_spec_object ("extra-menu", - P_("Extra menu"), - P_("Model menu to append to the context menu"), + g_param_spec_object ("extra-menu", NULL, NULL, G_TYPE_MENU_MODEL, GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY); |