[maemo-commits] [maemo-commits] r12727 - in projects/haf/trunk/hildon-desktop: . src

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Thu Jul 12 15:00:16 EEST 2007
Author: jobi
Date: 2007-07-12 15:00:12 +0300 (Thu, 12 Jul 2007)
New Revision: 12727

Modified:
   projects/haf/trunk/hildon-desktop/ChangeLog
   projects/haf/trunk/hildon-desktop/src/hd-home-window.c
Log:

2007-07-11  Johan Bilien  <johan.bilien at nokia.com>

	* src/hd-home-window.c:
	- do not send a foreground event when the screen is turned on
	but the home is in the background.
	Fixes: NB#60875


Modified: projects/haf/trunk/hildon-desktop/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-desktop/ChangeLog	2007-07-12 11:45:13 UTC (rev 12726)
+++ projects/haf/trunk/hildon-desktop/ChangeLog	2007-07-12 12:00:12 UTC (rev 12727)
@@ -1,6 +1,13 @@
 2007-07-11  Johan Bilien  <johan.bilien at nokia.com>
 
 	* src/hd-home-window.c:
+	- do not send a foreground event when the screen is turned on
+	but the home is in the background.
+	Fixes: NB#60875
+
+2007-07-11  Johan Bilien  <johan.bilien at nokia.com>
+
+	* src/hd-home-window.c:
 	- do not send a foreground event when the screen is dimmed
 
 2007-07-11  Johan Bilien  <johan.bilien at nokia.com>

Modified: projects/haf/trunk/hildon-desktop/src/hd-home-window.c
===================================================================
--- projects/haf/trunk/hildon-desktop/src/hd-home-window.c	2007-07-12 11:45:13 UTC (rev 12726)
+++ projects/haf/trunk/hildon-desktop/src/hd-home-window.c	2007-07-12 12:00:12 UTC (rev 12727)
@@ -116,6 +116,7 @@
   Picture           background_picture;
 
   gboolean          screen_is_off;
+  gboolean          is_background;
 
   gboolean          selecting_applets;
   guint             save_area_timeout;
@@ -1683,6 +1684,8 @@
 
   g_debug ("Background state changed, is_background: %i", is_background);
 
+  priv->is_background = is_background;
+
   if (!priv->screen_is_off)
     {
 
@@ -1718,9 +1721,12 @@
 
   g_debug ("Screen state changed, is_off: %i", is_off);
 
-  gtk_container_foreach (GTK_CONTAINER (area),
-                         (GtkCallback)hildon_desktop_home_item_set_is_background,
-                         (gpointer)is_off);
+  if (!priv->is_background)
+    {
+      gtk_container_foreach (GTK_CONTAINER (area),
+                             (GtkCallback)hildon_desktop_home_item_set_is_background,
+                             (gpointer)is_off);
+    }
 
 }
 


More information about the maemo-commits mailing list