[gtk+] Fix compiler warnings.



commit 901af8fec86a3d41406f23c51190b6f157a28786
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Dec 1 01:19:24 2010 +0100

    Fix compiler warnings.

 gtk/gtkcssprovider.c |    4 ++--
 gtk/gtkicontheme.c   |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c
index afc8340..35e94e8 100644
--- a/gtk/gtkcssprovider.c
+++ b/gtk/gtkcssprovider.c
@@ -1366,8 +1366,8 @@ gtk_css_provider_get_style_property (GtkStyleProvider *provider,
       if (val &&
           (info->state == 0 ||
            info->state == state ||
-           (info->state & state) != 0 &&
-           (info->state & ~(state)) == 0))
+           ((info->state & state) != 0 &&
+	    (info->state & ~(state)) == 0)))
         {
           const gchar *val_str;
 
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c
index 1b6f1e5..c4cefe6 100644
--- a/gtk/gtkicontheme.c
+++ b/gtk/gtkicontheme.c
@@ -3275,7 +3275,7 @@ gtk_icon_info_load_symbolic_for_context (GtkIconInfo      *icon_info,
   GdkPixbuf *pixbuf;
   GdkRGBA *color = NULL;
   GdkRGBA rgba;
-  gchar *css_fg, *css_success;
+  gchar *css_fg = NULL, *css_success;
   gchar *css_warning, *css_error;
   GtkStateFlags state;
 



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