[gnome-shell] fix compilation warnings



commit 5963a00fc57baacd51f495b043634d0e953fbfb9
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Sat Apr 18 16:30:49 2009 -0400

    fix compilation warnings
    
    Merge from gnome-panel
    
    2008-12-09  Vincent Untz  <vuntz gnome org>
    
            * na-tray-child.c: (na_tray_child_realize): fix compilation warnings
---
 src/tray/na-tray-child.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/tray/na-tray-child.c b/src/tray/na-tray-child.c
index fdee345..d0cba49 100644
--- a/src/tray/na-tray-child.c
+++ b/src/tray/na-tray-child.c
@@ -25,6 +25,7 @@
 #include "na-tray-child.h"
 
 #include <glib/gi18n.h>
+#include <gdk/gdk.h>
 #include <gdk/gdkx.h>
 #include <X11/Xatom.h>
 
@@ -61,7 +62,7 @@ na_tray_child_realize (GtkWidget *widget)
       child->is_composited = TRUE;
       child->parent_relative_bg = FALSE;
     }
-  else if (visual == gdk_window_get_visual (gdk_window_get_parent (widget->window)))
+  else if (visual == gdk_drawable_get_visual (GDK_DRAWABLE (gdk_window_get_parent (widget->window))))
     {
       /* Otherwise, if the visual matches the visual of the parent window, we can
        * use a parent-relative background and fake transparency.



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