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

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Wed Aug 29 13:30:43 EEST 2007
Author: lucasr
Date: 2007-08-29 13:30:41 +0300 (Wed, 29 Aug 2007)
New Revision: 13451

Modified:
   projects/haf/trunk/hildon-desktop/ChangeLog
   projects/haf/trunk/hildon-desktop/libhildondesktop/hildon-desktop-popup-window.c
   projects/haf/trunk/hildon-desktop/libhildondesktop/hildon-thumb-menu-item.c
   projects/haf/trunk/hildon-desktop/src/hd-switcher-menu.c
Log:
2007-08-29  Lucas Rocha  <lucas.rocha at nokia.com>

	* src/hd-switcher-menu.c (hd_switcher_menu_check_content): set the
	size request of hidden extra pane in order to avoid having empty
	windows flickers. Fixes NB#67044. 
	* libhildondesktop/hildon-desktop-popup-window.c
	(hildon_desktop_popup_window_show): check size request before showing
	extra panes.


Modified: projects/haf/trunk/hildon-desktop/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-desktop/ChangeLog	2007-08-29 10:09:27 UTC (rev 13450)
+++ projects/haf/trunk/hildon-desktop/ChangeLog	2007-08-29 10:30:41 UTC (rev 13451)
@@ -1,3 +1,23 @@
+2007-08-29  Lucas Rocha  <lucas.rocha at nokia.com>
+
+	* src/hd-switcher-menu.c (hd_switcher_menu_check_content): set the
+	size request of hidden extra pane in order to avoid having empty
+	windows flickers. Fixes NB#67044. 
+	* libhildondesktop/hildon-desktop-popup-window.c
+	(hildon_desktop_popup_window_show): check size request before showing
+	extra panes.
+
+2007-08-29  Lucas Rocha  <lucas.rocha at nokia.com>
+
+	* src/hd-applications-menu.c
+	(hd_applications_menu_button_button_press,
+	hd_applications_menu_init): popup the menu on button press instead of
+	button release. Fixes NB#33935.
+	* libhildondesktop/hildon-desktop-popup-window.c
+	(hildon_desktop_popup_window_button_press_event): handle button
+	press instead of button release for checking if the window should pop
+	down.
+
 2007-08-29  Johan Bilien  <johan.bilien at nokia.com>
 
 	* src/hd-app-menu-dialog.c: set minimum width to 300px

Modified: projects/haf/trunk/hildon-desktop/libhildondesktop/hildon-desktop-popup-window.c
===================================================================
--- projects/haf/trunk/hildon-desktop/libhildondesktop/hildon-desktop-popup-window.c	2007-08-29 10:09:27 UTC (rev 13450)
+++ projects/haf/trunk/hildon-desktop/libhildondesktop/hildon-desktop-popup-window.c	2007-08-29 10:30:41 UTC (rev 13451)
@@ -382,7 +382,11 @@
 
   for (i=0; i < popup->priv->n_extra_panes; i++)
   {
-    if (popup->priv->extra_panes[i]->requisition.height > 1)	  
+    GtkRequisition req;
+
+    gtk_widget_size_request (popup->priv->extra_panes[i], &req);
+
+    if (req.height > 1)	  
       gtk_widget_show (popup->priv->extra_panes[i]);
   }
 }

Modified: projects/haf/trunk/hildon-desktop/libhildondesktop/hildon-thumb-menu-item.c
===================================================================
--- projects/haf/trunk/hildon-desktop/libhildondesktop/hildon-thumb-menu-item.c	2007-08-29 10:09:27 UTC (rev 13450)
+++ projects/haf/trunk/hildon-desktop/libhildondesktop/hildon-thumb-menu-item.c	2007-08-29 10:30:41 UTC (rev 13451)
@@ -740,12 +740,12 @@
     /* Fetch the colours to be used */
 #if GTK_CHECK_VERSION(2, 10, 0)
     color1_found = gtk_style_lookup_color(GTK_WIDGET(
-                thumb_menu_item)->style, "DefaultTextColor", &color1);
+                thumb_menu_item)->style, "PluginMenuTextColor", &color1);
     color2_found = gtk_style_lookup_color(GTK_WIDGET(
                 thumb_menu_item)->style, "SecondaryTextColor", &color2);
 #else
     color1_found = gtk_style_lookup_logical_color(GTK_WIDGET(
-                thumb_menu_item)->style, "DefaultTextColor", &color1);
+                thumb_menu_item)->style, "PluginMenuTextColor", &color1);
     color2_found = gtk_style_lookup_logical_color(GTK_WIDGET(
                 thumb_menu_item)->style, "SecondaryTextColor", &color2);
 #endif

Modified: projects/haf/trunk/hildon-desktop/src/hd-switcher-menu.c
===================================================================
--- projects/haf/trunk/hildon-desktop/src/hd-switcher-menu.c	2007-08-29 10:09:27 UTC (rev 13450)
+++ projects/haf/trunk/hildon-desktop/src/hd-switcher-menu.c	2007-08-29 10:30:41 UTC (rev 13451)
@@ -1360,7 +1360,10 @@
 
       /* Avoid notification pane to be shown next time switcher
        * menu opens. */
-      switcher->priv->notifications_window->requisition.height = 1;
+      gtk_widget_set_size_request (switcher->priv->notifications_window,
+		                   AS_MENU_PANE_WIDTH, 1);
+
+      gtk_widget_queue_resize (switcher->priv->notifications_window);
       
       hd_switcher_menu_update_highlighting (switcher, FALSE); 
     }


More information about the maemo-commits mailing list