[gtk+] styleproperty: Use _gtk_css_initial_value_get()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] styleproperty: Use _gtk_css_initial_value_get()
- Date: Sun, 25 Nov 2012 23:09:54 +0000 (UTC)
commit 87b351e6e60b1947446ef1225a315eb6a3d4d552
Author: Benjamin Otte <otte redhat com>
Date: Sun Nov 25 15:35:52 2012 +0100
styleproperty: Use _gtk_css_initial_value_get()
See previous commit(s).
gtk/gtkcssstylepropertyimpl.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcssstylepropertyimpl.c b/gtk/gtkcssstylepropertyimpl.c
index ccd9cc4..a89559f 100644
--- a/gtk/gtkcssstylepropertyimpl.c
+++ b/gtk/gtkcssstylepropertyimpl.c
@@ -49,6 +49,7 @@
#include "gtkcssimageprivate.h"
#include "gtkcssimagegradientprivate.h"
#include "gtkcssimagevalueprivate.h"
+#include "gtkcssinitialvalueprivate.h"
#include "gtkcssenumvalueprivate.h"
#include "gtkcssnumbervalueprivate.h"
#include "gtkcsspositionvalueprivate.h"
@@ -159,7 +160,7 @@ assign_border (GtkCssStyleProperty *property,
const GtkBorder *border = g_value_get_boxed (value);
if (border == NULL)
- return _gtk_css_value_ref (_gtk_css_style_property_get_initial_value (property));
+ return _gtk_css_initial_value_new ();
else
return _gtk_css_border_value_new (_gtk_css_number_value_new (border->top, GTK_CSS_PX),
_gtk_css_number_value_new (border->right, GTK_CSS_PX),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]