[maemo-commits] [maemo-commits] r15863 - in projects/haf/trunk/hildon-1: . src

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Mon Aug 11 14:46:30 EEST 2008
Author: herzi
Date: 2008-08-11 14:46:17 +0300 (Mon, 11 Aug 2008)
New Revision: 15863

Modified:
   projects/haf/trunk/hildon-1/ChangeLog
   projects/haf/trunk/hildon-1/src/hildon-window.c
Log:
2008-08-11  Sven Herzberg  <sven at 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



Modified: projects/haf/trunk/hildon-1/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-1/ChangeLog	2008-08-11 10:18:03 UTC (rev 15862)
+++ projects/haf/trunk/hildon-1/ChangeLog	2008-08-11 11:46:17 UTC (rev 15863)
@@ -1,3 +1,11 @@
+2008-08-11  Sven Herzberg  <sven at 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 at nokia.com>
 
 	Release 2.0.6

Modified: projects/haf/trunk/hildon-1/src/hildon-window.c
===================================================================
--- projects/haf/trunk/hildon-1/src/hildon-window.c	2008-08-11 10:18:03 UTC (rev 15862)
+++ projects/haf/trunk/hildon-1/src/hildon-window.c	2008-08-11 11:46:17 UTC (rev 15863)
@@ -1464,7 +1464,7 @@
     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)
     {


More information about the maemo-commits mailing list