2008-08-11 Sven Herzberg <sven@imendio.com>
authorSven Herzberg <herzi@imendio.com>
Mon, 11 Aug 2008 11:46:17 +0000 (11:46 +0000)
committerSven Herzberg <herzi@imendio.com>
Mon, 11 Aug 2008 11:46:17 +0000 (11:46 +0000)
NB#87442: annoying warning: ** Gdk - gdkdrawable-x11.c:878 drawable is
not apixmap or window

* src/hildon-window.c (hildon_window_update_topmost): only try to use
an X Windows ID if trhe window is realized

ChangeLog
src/hildon-window.c

index c9454d3..d334e8e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-08-11  Sven Herzberg  <sven@imendio.com>
+
+       NB#87442: annoying warning: ** Gdk - gdkdrawable-x11.c:878 drawable is
+       not apixmap or window
+
+       * src/hildon-window.c (hildon_window_update_topmost): only try to use
+       an X Windows ID if trhe window is realized
+
 2008-08-05  Kimmo Hämäläinen <kimmo.hamalainen@nokia.com>
 
        Release 2.0.6
index 21dead3..7eaade8 100644 (file)
@@ -1464,7 +1464,7 @@ hildon_window_update_topmost                    (HildonWindow *self,
     g_return_if_fail (HILDON_IS_WINDOW (self));
     g_assert (priv);
 
-    my_window = GDK_WINDOW_XID (GTK_WIDGET (self)->window);
+    my_window = GTK_WIDGET (self)->window ? GDK_WINDOW_XID (GTK_WIDGET (self)->window) : 0;
 
     if (window_id == my_window)
     {