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

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Tue Jun 19 14:10:27 EEST 2007
Author: moimart
Date: 2007-06-19 14:10:26 +0300 (Tue, 19 Jun 2007)
New Revision: 12367

Modified:
   projects/haf/trunk/hildon-desktop/ChangeLog
   projects/haf/trunk/hildon-desktop/src/hn-app-switcher.c
Log:
2007-06-19  Moises Martinez  <moises.martinez at nokia.com>

        * src/hn-app-switcher.c: update _NET_WM_ICON_GEOMETRY when orientation
        changes. Fixes: NB56505.
	* ChangeLog updated.



Modified: projects/haf/trunk/hildon-desktop/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-desktop/ChangeLog	2007-06-19 11:05:32 UTC (rev 12366)
+++ projects/haf/trunk/hildon-desktop/ChangeLog	2007-06-19 11:10:26 UTC (rev 12367)
@@ -1,3 +1,8 @@
+2007-06-19  Moises Martinez  <moises.martinez at nokia.com>
+
+	* src/hn-app-switcher.c: update _NET_WM_ICON_GEOMETRY when orientation
+	changes. Fixes: NB56505.
+
 2007-06-18  Johan Bilien  <johan.bilien at nokia.com>
 
 	* configure.ac: 0.0.18

Modified: projects/haf/trunk/hildon-desktop/src/hn-app-switcher.c
===================================================================
--- projects/haf/trunk/hildon-desktop/src/hn-app-switcher.c	2007-06-19 11:05:32 UTC (rev 12366)
+++ projects/haf/trunk/hildon-desktop/src/hn-app-switcher.c	2007-06-19 11:10:26 UTC (rev 12367)
@@ -208,10 +208,9 @@
   
   /* pointer location */
   guint pointer_on_button : 1;
-  guint is_thumbable : 1;
-  gboolean force_thumb : 1;
-  guint was_thumbable : 1;
   gboolean is_fullscreen;
+ 
+  guint orientation_changed : 1; 
 
   guint menu_button_timeout;
 
@@ -299,7 +298,7 @@
 {
   GList *children = NULL, *iter;
 
-  g_debug ("orientation_changed");
+  app_switcher->priv->orientation_changed = TRUE;
   
   if (GTK_IS_CONTAINER (app_switcher->box))
     children = 
@@ -570,7 +569,7 @@
   /* deal with urgency flags */
   for (l = children; l != NULL; l = l->next)
   {
-    if (update_icon_geometry)	    
+    if (update_icon_geometry || app_switcher->priv->orientation_changed)	    
       hd_entry_info_set_icon_geometry (l->data,	    
 		      		       GTK_WIDGET (app_button)->allocation.x,
 				       GTK_WIDGET (app_button)->allocation.y,
@@ -599,7 +598,7 @@
       hd_entry_info_set_ignore_urgent(l->data, FALSE);
     }
   }
-
+  
   /* bind the entry info to the widget, so that we can
    * use it later when the user toggles the button
    *
@@ -725,19 +724,21 @@
       * button should blink
       */
       
-      if (hd_entry_info_is_urgent(child) && !hd_entry_info_get_ignore_urgent(child))
+      if (hd_entry_info_is_urgent (child) && !hd_entry_info_get_ignore_urgent (child))
         is_urgent = TRUE;
          
       /*
        * if the info is not urgent, we need to clear any leftover
        * ignore_urgent flag
        */
-      if (!hd_entry_info_is_urgent(child) && hd_entry_info_get_ignore_urgent(child))
-        hd_entry_info_set_ignore_urgent(child, FALSE);
+      if (!hd_entry_info_is_urgent (child) && hd_entry_info_get_ignore_urgent (child))
+        hd_entry_info_set_ignore_urgent (child, FALSE);
        
     }
   }
 
+  app_switcher->priv->orientation_changed = FALSE;
+
   return FALSE;
 }
 


More information about the maemo-commits mailing list