aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/gtk+/gtk+-2.12.3/menu-deactivate.patch
blob: cfb8849e9f2beb210c86c0a93ec1dff1473239bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

@media only all and (prefers-color-scheme: dark) {
.highlight .hll { background-color: #49483e }
.highlight .c { color: #75715e } /* Comment */
.highlight .err { color: #960050; background-color: #1e0010 } /* Error */
.highlight .k { color: #66d9ef } /* Keyword */
.highlight .l { color: #ae81ff } /* Literal */
.highlight .n { color: #f8f8f2 } /* Name */
.highlight .o { color: #f92672 } /* Operator */
.highlight .p { color: #f8f8f2 } /* Punctuation */
.highlight .ch { color: #75715e } /* Comment.Hashbang */
.highlight .cm { color: #75715e } /* Comment.Multiline */
.highlight .cp { color: #75715e } /* Comment.Preproc */
.highlight .cpf { color: #75715e } /* Comment.PreprocFile */
.highlight .c1 { color: #75715e } /* Comment.Single */
.highlight .cs { color: #75715e } /* Comment.Special */
.highlight .gd { color: #f92672 } /* Generic.Deleted */
.highlight .ge { font-st
--- 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)))
"err">${APPNAME}/ install -m 0644 ${S}/${APPNAME}.desktop ${D}${palmtopdir}/apps/Games } inherit opie