[gtk+] Make GtkBorder style properties have a non-NULL default
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Make GtkBorder style properties have a non-NULL default
- Date: Thu, 20 Jan 2011 02:24:44 +0000 (UTC)
commit 6869ff26f3e9b74df26ce4072ae5ecdff0128708
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Jan 19 20:42:50 2011 -0500
Make GtkBorder style properties have a non-NULL default
https://bugzilla.gnome.org/show_bug.cgi?id=639625
gtk/gtkstyleproperties.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkstyleproperties.c b/gtk/gtkstyleproperties.c
index 0052257..99cbf73 100644
--- a/gtk/gtkstyleproperties.c
+++ b/gtk/gtkstyleproperties.c
@@ -869,6 +869,10 @@ lookup_default_value (PropertyNode *node,
gdk_rgba_parse (&color, "pink");
g_value_set_boxed (value, &color);
}
+ else if (node->pspec->value_type == GTK_TYPE_BORDER)
+ {
+ g_value_take_boxed (value, gtk_border_new ());
+ }
else
g_param_value_set_default (node->pspec, value);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]