[gtk+] Fix some compilation warnings



commit 0d85671bc912ac62202e1e01dbd38d3b495e6a4f
Author: Javier Jardón <jjardon gnome org>
Date:   Sat May 1 03:52:03 2010 +0200

    Fix some compilation warnings

 gtk/gtkbox.c          |    2 +-
 gtk/gtkframe.c        |    2 --
 gtk/gtktrayicon-x11.c |    1 -
 3 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkbox.c b/gtk/gtkbox.c
index 35900e8..4e69b44 100644
--- a/gtk/gtkbox.c
+++ b/gtk/gtkbox.c
@@ -411,7 +411,7 @@ gtk_box_size_allocate (GtkWidget     *widget,
 
       gint size;
       gint extra;
-      gint x, y, i;
+      gint x = 0, y = 0, i;
       gint child_size;
 
       if (private->orientation == GTK_ORIENTATION_HORIZONTAL)
diff --git a/gtk/gtkframe.c b/gtk/gtkframe.c
index 1d8b92e..a377eda 100644
--- a/gtk/gtkframe.c
+++ b/gtk/gtkframe.c
@@ -59,8 +59,6 @@ static void gtk_frame_paint         (GtkWidget      *widget,
 				     GdkRectangle   *area);
 static gint gtk_frame_expose        (GtkWidget      *widget,
 				     GdkEventExpose *event);
-static void gtk_frame_size_request  (GtkWidget      *widget,
-				     GtkRequisition *requisition);
 static void gtk_frame_size_allocate (GtkWidget      *widget,
 				     GtkAllocation  *allocation);
 static void gtk_frame_remove        (GtkContainer   *container,
diff --git a/gtk/gtktrayicon-x11.c b/gtk/gtktrayicon-x11.c
index cd3a6b4..4cb1aa7 100644
--- a/gtk/gtktrayicon-x11.c
+++ b/gtk/gtktrayicon-x11.c
@@ -672,7 +672,6 @@ gtk_tray_icon_update_manager_window (GtkTrayIcon *icon)
 					      icon->priv->manager_window);
       
       gdk_window_add_filter (gdkwin, gtk_tray_icon_manager_filter, icon);
-      g_print ("manager window %d\n", icon->priv->manager_window);
 
       gtk_tray_icon_get_orientation_property (icon);
       gtk_tray_icon_get_visual_property (icon);



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