From 5963a00fc57baacd51f495b043634d0e953fbfb9 Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Sat, 18 Apr 2009 16:30:49 -0400 Subject: [PATCH] fix compilation warnings Merge from gnome-panel 2008-12-09 Vincent Untz * na-tray-child.c: (na_tray_child_realize): fix compilation warnings --- src/tray/na-tray-child.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tray/na-tray-child.c b/src/tray/na-tray-child.c index fdee34504..d0cba4991 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 +#include #include #include @@ -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.