diff options
author | Ross Burton <ross@openedhand.com> | 2007-11-27 10:25:12 +0000 |
---|---|---|
committer | Ross Burton <ross@openedhand.com> | 2007-11-27 10:25:12 +0000 |
commit | de8d00f5097e2e476d76d305d63a4df505f008f0 (patch) | |
tree | 63514ed2bb958c22a8d6cf78728d3b7b283b137e /meta/packages/gtk+/gtk+-2.12.2/menu-deactivate.patch | |
parent | 0c273cb5083013a3c6031177bd760a5500a67c95 (diff) | |
download | openembedded-core-de8d00f5097e2e476d76d305d63a4df505f008f0.tar.gz openembedded-core-de8d00f5097e2e476d76d305d63a4df505f008f0.tar.bz2 openembedded-core-de8d00f5097e2e476d76d305d63a4df505f008f0.tar.xz openembedded-core-de8d00f5097e2e476d76d305d63a4df505f008f0.zip |
gtk+: upgrade 2.12 to 2.12.2
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3242 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/gtk+/gtk+-2.12.2/menu-deactivate.patch')
-rw-r--r-- | meta/packages/gtk+/gtk+-2.12.2/menu-deactivate.patch | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/meta/packages/gtk+/gtk+-2.12.2/menu-deactivate.patch b/meta/packages/gtk+/gtk+-2.12.2/menu-deactivate.patch new file mode 100644 index 000000000..cfb8849e9 --- /dev/null +++ b/meta/packages/gtk+/gtk+-2.12.2/menu-deactivate.patch @@ -0,0 +1,51 @@ +--- gtk+-2.10.0/gtk/gtkmenushell.c.orig 2006-07-05 17:17:34.000000000 +0200 ++++ gtk+-2.10.0/gtk/gtkmenushell.c 2006-07-05 17:19:01.000000000 +0200 +@@ -42,7 +42,7 @@ + #include "gtkintl.h" + #include "gtkalias.h" + +-#define MENU_SHELL_TIMEOUT 500 ++#define MENU_SHELL_TIMEOUT 2000 + + #define PACK_DIRECTION(m) \ + (GTK_IS_MENU_BAR (m) \ +@@ -203,6 +203,8 @@ + + G_DEFINE_TYPE (GtkMenuShell, gtk_menu_shell, GTK_TYPE_CONTAINER) + ++static int last_crossing_time; ++ + static void + gtk_menu_shell_class_init (GtkMenuShellClass *klass) + { +@@ -517,6 +519,7 @@ + gtk_grab_add (GTK_WIDGET (menu_shell)); + menu_shell->have_grab = TRUE; + menu_shell->active = TRUE; ++ last_crossing_time = 0; + } + } + +@@ -669,6 +672,13 @@ + menu_shell->activate_time = 0; + deactivate = FALSE; + } ++ ++ if (last_crossing_time != 0 ++ && ((event->time - last_crossing_time) < 500)) ++ { ++ last_crossing_time = 0; ++ deactivate = FALSE; ++ } + + if (deactivate) + { +@@ -716,6 +726,8 @@ + { + menu_item = gtk_get_event_widget ((GdkEvent*) event); + ++ last_crossing_time = event->time; ++ + if (!menu_item || + (GTK_IS_MENU_ITEM (menu_item) && + !_gtk_menu_item_is_selectable (menu_item))) |