[gtk+] GtkModelButton: specify the proper default values
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkModelButton: specify the proper default values
- Date: Mon, 24 Nov 2014 01:33:33 +0000 (UTC)
commit ff4f918a69888a546ff9ea707412d165fcb3d226
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Nov 23 15:05:01 2014 -0500
GtkModelButton: specify the proper default values
Caught by the defaultvalue test: ::text starts out as "", and
::iconic should be FALSE by default.
gtk/gtkmodelbutton.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkmodelbutton.c b/gtk/gtkmodelbutton.c
index 3577240..355a61c 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]