[gtk+] css: border-style: hidden computes a 0 border



commit fbde62d8e7cc4c88d5708ec7bd3f34edbb6e00d0
Author: Benjamin Otte <otte redhat com>
Date:   Sat Jan 7 17:45:15 2012 +0100

    css: border-style: hidden computes a 0 border

 gtk/gtkcssstylepropertyimpl.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcssstylepropertyimpl.c b/gtk/gtkcssstylepropertyimpl.c
index 4ec3c8e..7638f94 100644
--- a/gtk/gtkcssstylepropertyimpl.c
+++ b/gtk/gtkcssstylepropertyimpl.c
@@ -448,7 +448,8 @@ compute_border_width (GtkCssStyleProperty    *property,
   border_style = g_value_get_enum (_gtk_style_context_peek_property (context, _gtk_style_property_get_name (GTK_STYLE_PROPERTY (style))));
 
   g_value_init (computed, G_TYPE_INT);
-  if (border_style == GTK_BORDER_STYLE_NONE)
+  if (border_style == GTK_BORDER_STYLE_NONE ||
+      border_style == GTK_BORDER_STYLE_HIDDEN)
     g_value_set_int (computed, 0);
   else
     g_value_copy (specified, computed);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]