hippo-canvas r7251 - trunk/common/hippo



Author: marco
Date: Wed Apr  9 19:33:38 2008
New Revision: 7251
URL: http://svn.gnome.org/viewvc/hippo-canvas?rev=7251&view=rev

Log:
Fix background_color in the css

Modified:
   trunk/common/hippo/hippo-canvas-style.c

Modified: trunk/common/hippo/hippo-canvas-style.c
==============================================================================
--- trunk/common/hippo/hippo-canvas-style.c	(original)
+++ trunk/common/hippo/hippo-canvas-style.c	Wed Apr  9 19:33:38 2008
@@ -728,7 +728,9 @@
             CRDeclaration *decl = style->properties[i];
             const char *property_name = decl->property->stryng->str;
             
-            if (!g_str_has_prefix(property_name, "background"))
+            if (g_str_has_prefix(property_name, "background"))
+                property_name += 10;
+            else
                 continue;
 
             if (strcmp(property_name, "") == 0) {



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