[gtk+] Silence compiler warnings



commit 5c76c1b059af1a124b080bca74f3cf238d061c43
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed May 30 14:28:16 2012 -0400

    Silence compiler warnings

 demos/gtk-demo/css_accordion.c   |    2 +-
 demos/gtk-demo/css_multiplebgs.c |   10 +++++-----
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/demos/gtk-demo/css_accordion.c b/demos/gtk-demo/css_accordion.c
index a9f0f8d..57a35b6 100644
--- a/demos/gtk-demo/css_accordion.c
+++ b/demos/gtk-demo/css_accordion.c
@@ -60,7 +60,7 @@ do_css_accordion (GtkWidget *do_widget)
       bytes = g_resources_lookup_data ("/css_accordion/gtk.css", 0, NULL);
       data = g_bytes_get_data (bytes, &data_size);
 
-      gtk_css_provider_load_from_data (GTK_CSS_PROVIDER (provider), data, data_size, NULL);
+      gtk_css_provider_load_from_data (GTK_CSS_PROVIDER (provider), (gchar *)data, data_size, NULL);
 
       apply_css (window, provider);
     }
diff --git a/demos/gtk-demo/css_multiplebgs.c b/demos/gtk-demo/css_multiplebgs.c
index 86f9238..e05961f 100644
--- a/demos/gtk-demo/css_multiplebgs.c
+++ b/demos/gtk-demo/css_multiplebgs.c
@@ -84,11 +84,11 @@ do_css_multiplebgs (GtkWidget *do_widget)
 {
   if (!window)
     {
-      GtkWidget *paned, *container, *child, *b;
+      GtkWidget *paned, *container, *child;
       GtkStyleProvider *provider;
       GtkTextBuffer *text;
       GBytes *bytes;
-      
+
       window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
       gtk_window_set_transient_for (GTK_WINDOW (window), GTK_WINDOW (do_widget));
       gtk_window_set_default_size (GTK_WINDOW (window), 400, 300);
@@ -96,7 +96,7 @@ do_css_multiplebgs (GtkWidget *do_widget)
                         G_CALLBACK (gtk_widget_destroyed), &window);
 
       container = gtk_overlay_new ();
-      gtk_widget_add_events (container, 
+      gtk_widget_add_events (container,
                              GDK_ENTER_NOTIFY_MASK |
                              GDK_LEAVE_NOTIFY_MASK |
                              GDK_POINTER_MOTION_MASK);
@@ -109,7 +109,7 @@ do_css_multiplebgs (GtkWidget *do_widget)
       gtk_container_add (GTK_CONTAINER (container), child);
 
       child = gtk_button_new ();
-      gtk_widget_add_events (child, 
+      gtk_widget_add_events (child,
                              GDK_ENTER_NOTIFY_MASK |
                              GDK_LEAVE_NOTIFY_MASK |
                              GDK_POINTER_MOTION_MASK);
@@ -137,7 +137,7 @@ do_css_multiplebgs (GtkWidget *do_widget)
                                   NULL);
 
       provider = GTK_STYLE_PROVIDER (gtk_css_provider_new ());
-      
+
       container = gtk_scrolled_window_new (NULL, NULL);
       gtk_container_add (GTK_CONTAINER (paned), container);
       child = gtk_text_view_new_with_buffer (text);



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