Remove the bogus warning about color not being found. Fixes NB#58352.
authorMichael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
Thu, 16 Aug 2007 13:05:09 +0000 (13:05 +0000)
committerMichael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
Thu, 16 Aug 2007 13:05:09 +0000 (13:05 +0000)
ChangeLog
src/hildon-helper.c

index f1a7409..b33d1c7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2007-08-16  Michael Dominic Kostrzewa  <michael.kostrzewa@nokia.com> 
 
+       * src/hildon-helper.c: Remove the bogus warning about color not being
+       found. Fixes NB#58352.
+
+2007-08-16  Michael Dominic Kostrzewa  <michael.kostrzewa@nokia.com> 
+
        * examples/Makefile.am:
        * examples/hildon-toolbar-seekbar-example.c: Adding an example to test a
        HildonSeekbar widget inside a toolbar.
index 4943465..59f308b 100644 (file)
@@ -95,7 +95,7 @@ hildon_change_style_recursive_from_ld           (GtkWidget *widget,
         /* Changing logical color */
         GdkColor color;
         gtk_widget_ensure_style (widget);
-        if (gtk_style_lookup_color (widget->style, ld->logicalcolorstring, &color) == TRUE)
+        if (gtk_style_lookup_color (widget->style, ld->logicalcolorstring, &color) == TRUE) {
             switch (ld->rcflags)
             {
                 case GTK_RC_FG:
@@ -113,10 +113,10 @@ hildon_change_style_recursive_from_ld           (GtkWidget *widget,
                 case GTK_RC_BASE:
                     gtk_widget_modify_base (widget, ld->state, &color);
                     break;
-
-            } else {
-                g_warning ("Failed to lookup '%s' color!", ld->logicalcolorstring);
             }
+        } else {
+            g_warning ("Failed to lookup '%s' color!", ld->logicalcolorstring);
+        }
     }
 
     if (ld->logicalfontstring != NULL)