[maemo-commits] [maemo-commits] r15156 - in projects/haf/trunk/hildon-desktop: . libhildondesktop

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Thu Feb 7 17:45:27 EET 2008
Author: jobi
Date: 2008-02-07 17:45:25 +0200 (Thu, 07 Feb 2008)
New Revision: 15156

Modified:
   projects/haf/trunk/hildon-desktop/ChangeLog
   projects/haf/trunk/hildon-desktop/libhildondesktop/hildon-desktop-home-item.c
Log:

2008-02-07  Johan Bilien  <johan.bilien at nokia.com>

	* libhildondesktop/hildon-desktop-home-item.c:
	(hildon_desktop_home_item_create_icon_window): handle not having an
	event window, in case the realize / unrealize methods were overridden
	not to have one.
	Fixes: NB#80392
	Patch courtesy of Anton Rogaynis



Modified: projects/haf/trunk/hildon-desktop/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-desktop/ChangeLog	2008-02-07 12:56:39 UTC (rev 15155)
+++ projects/haf/trunk/hildon-desktop/ChangeLog	2008-02-07 15:45:25 UTC (rev 15156)
@@ -1,3 +1,12 @@
+2008-02-07  Johan Bilien  <johan.bilien at nokia.com>
+
+	* libhildondesktop/hildon-desktop-home-item.c:
+	(hildon_desktop_home_item_create_icon_window): handle not having an
+	event window, in case the realize / unrealize methods were overridden
+	not to have one.
+	Fixes: NB#80392
+	Patch courtesy of Anton Rogaynis
+
 2008-01-22  Johan Bilien  <johan.bilien at nokia.com>
 
 	* configure.ac: check for individual functions from maemo-gtk rather

Modified: projects/haf/trunk/hildon-desktop/libhildondesktop/hildon-desktop-home-item.c
===================================================================
--- projects/haf/trunk/hildon-desktop/libhildondesktop/hildon-desktop-home-item.c	2008-02-07 12:56:39 UTC (rev 15155)
+++ projects/haf/trunk/hildon-desktop/libhildondesktop/hildon-desktop-home-item.c	2008-02-07 15:45:25 UTC (rev 15156)
@@ -853,7 +853,7 @@
   attributes.wclass = icon?GDK_INPUT_OUTPUT:GDK_INPUT_ONLY;
   attributes_mask = GDK_WA_VISUAL | GDK_WA_COLORMAP;
 
-  window = gdk_window_new (priv->event_window,
+  window = gdk_window_new (priv->event_window?priv->event_window:gtk_widget_get_parent_window (GTK_WIDGET(applet)),
                            &attributes,
                            attributes_mask);
 


More information about the maemo-commits mailing list