[maemo-commits] [maemo-commits] r19444 - in projects/haf/trunk/gtk+: . gtk

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Thu Oct 15 17:27:40 EEST 2009
Author: mitch
Date: 2009-10-15 17:27:22 +0300 (Thu, 15 Oct 2009)
New Revision: 19444

Modified:
   projects/haf/trunk/gtk+/ChangeLog
   projects/haf/trunk/gtk+/gtk/gtkmenu.c
Log:
2009-10-15  Michael Natterer  <mitch at lanedo.com>

	Fixes: NB#137960 - position of CSM is changing while rotating from
	portrait mode to landscape mode

	Apply patch from Kristian Rietveld:

	* gtk/gtkmenu.c (menu_screen_size_changed): simply close menus
	instead of repositioning them when the screen is rotated.



Modified: projects/haf/trunk/gtk+/ChangeLog
===================================================================
--- projects/haf/trunk/gtk+/ChangeLog	2009-10-15 10:59:58 UTC (rev 19443)
+++ projects/haf/trunk/gtk+/ChangeLog	2009-10-15 14:27:22 UTC (rev 19444)
@@ -1,3 +1,13 @@
+2009-10-15  Michael Natterer  <mitch at lanedo.com>
+
+	Fixes: NB#137960 - position of CSM is changing while rotating from
+	portrait mode to landscape mode
+
+	Apply patch from Kristian Rietveld:
+
+	* gtk/gtkmenu.c (menu_screen_size_changed): simply close menus
+	instead of repositioning them when the screen is rotated.
+
 2009-10-15  Kristian Rietveld  <kris at lanedo.com>
 
 	Fixes: NB#110430 - Failed assertion in _gtk_rbtree_node_find_offset()

Modified: projects/haf/trunk/gtk+/gtk/gtkmenu.c
===================================================================
--- projects/haf/trunk/gtk+/gtk/gtkmenu.c	2009-10-15 10:59:58 UTC (rev 19443)
+++ projects/haf/trunk/gtk+/gtk/gtkmenu.c	2009-10-15 14:27:22 UTC (rev 19444)
@@ -1186,7 +1186,7 @@
 menu_screen_size_changed (GdkScreen *screen,
                           GtkMenu   *menu)
 {
-  gtk_menu_reposition (menu);
+  gtk_menu_shell_cancel (GTK_MENU_SHELL (menu));
 }
 #endif /* MAEMO_CHANGES */
 

More information about the maemo-commits mailing list