diff options
author | Matthias Clasen <mclasen@redhat.com> | 2014-11-23 15:05:01 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-11-23 18:30:13 -0500 |
commit | ff4f918a69888a546ff9ea707412d165fcb3d226 (patch) | |
tree | ee686ef20d8e3f94ab872497179d0f40942878b8 /gtk/gtkmodelbutton.c | |
parent | 44c412ecc7f9b4051a4f883d5a62fda8139f47a8 (diff) | |
download | gtk+-ff4f918a69888a546ff9ea707412d165fcb3d226.tar.gz |
GtkModelButton: specify the proper default values
Caught by the defaultvalue test: ::text starts out as "", and
::iconic should be FALSE by default.
Diffstat (limited to 'gtk/gtkmodelbutton.c')
-rw-r--r-- | gtk/gtkmodelbutton.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkmodelbutton.c b/gtk/gtkmodelbutton.c index 35772403b7..355a61cbd3 100644 --- a/gtk/gtkmodelbutton.c +++ b/gtk/gtkmodelbutton.c @@ -879,7 +879,7 @@ gtk_model_button_class_init (GtkModelButtonClass *class) g_param_spec_string ("text", P_("Text"), P_("The text"), - NULL, + "", G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS); /** @@ -956,7 +956,7 @@ gtk_model_button_class_init (GtkModelButtonClass *class) g_param_spec_boolean ("iconic", P_("Iconic"), P_("Whether to prefer the icon over text"), - TRUE, + FALSE, G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS); g_object_class_install_properties (object_class, LAST_PROPERTY, properties); |