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

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Fri Jun 29 14:24:27 EEST 2007
Author: jobi
Date: 2007-06-29 14:24:13 +0300 (Fri, 29 Jun 2007)
New Revision: 12544

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

2007-06-29  Johan Bilien  <johan.bilien at nokia.com>

	* libhildondesktop/hildon-home-area.c:
	- added safeguard against unrealized children in _style_set



Modified: projects/haf/trunk/hildon-desktop/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-desktop/ChangeLog	2007-06-29 11:06:41 UTC (rev 12543)
+++ projects/haf/trunk/hildon-desktop/ChangeLog	2007-06-29 11:24:13 UTC (rev 12544)
@@ -1,5 +1,10 @@
 2007-06-29  Johan Bilien  <johan.bilien at nokia.com>
 
+	* libhildondesktop/hildon-home-area.c:
+	- added safeguard against unrealized children in _style_set
+
+2007-06-29  Johan Bilien  <johan.bilien at nokia.com>
+
 	* src/hd-home-window.c:
 	- removed _notify handler as we don't need to adapt the background
 	to the work area anymore.

Modified: projects/haf/trunk/hildon-desktop/libhildondesktop/hildon-home-area.c
===================================================================
--- projects/haf/trunk/hildon-desktop/libhildondesktop/hildon-home-area.c	2007-06-29 11:06:41 UTC (rev 12543)
+++ projects/haf/trunk/hildon-desktop/libhildondesktop/hildon-home-area.c	2007-06-29 11:24:13 UTC (rev 12544)
@@ -1030,7 +1030,8 @@
 
   /* HACK: Pretend the child shaped so GDK does not add the
    * child to the parent's clip list (see #412882) */
-  ((GdkWindowObject *)child->window)->shaped = TRUE;
+  if (GTK_WIDGET_REALIZED (child))
+    ((GdkWindowObject *)child->window)->shaped = TRUE;
 
   gtk_container_child_get (GTK_CONTAINER (area), child,
                            "child-data", &child_data,


More information about the maemo-commits mailing list