[gtk+/gtk-style-context: 98/191] Fix 2 build warnings.



commit 6e01af4132cfb57a36f41d20e4c046dea81d5449
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Jun 18 17:03:07 2010 +0200

    Fix 2 build warnings.

 gtk/gtkcssprovider.c |    2 +-
 gtk/gtkstyleset.c    |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c
index dace8fe..fd3b216 100644
--- a/gtk/gtkcssprovider.c
+++ b/gtk/gtkcssprovider.c
@@ -929,7 +929,7 @@ parse_value (GType        type,
     {
       GtkThemingEngine *engine;
 
-      engine = gtk_theming_engine_load (value_str);
+      engine = (GtkThemingEngine *) gtk_theming_engine_load (value_str);
       g_value_set_object (value, engine);
     }
   else
diff --git a/gtk/gtkstyleset.c b/gtk/gtkstyleset.c
index 5d8a856..12b3364 100644
--- a/gtk/gtkstyleset.c
+++ b/gtk/gtkstyleset.c
@@ -475,7 +475,7 @@ gtk_style_set_get_valist (GtkStyleSet  *set,
 
       if (!prop)
         {
-          GValue *empty_value = { 0 };
+          GValue empty_value = { 0 };
 
           g_warning ("No value for style property \"%s\"", property_name);
 



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