emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/xmenu.c,v [EMACS_22_BASE]


From: Chong Yidong
Subject: [Emacs-diffs] Changes to emacs/src/xmenu.c,v [EMACS_22_BASE]
Date: Wed, 30 Jul 2008 13:57:26 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Branch:         EMACS_22_BASE
Changes by:     Chong Yidong <cyd>      08/07/30 13:57:26

Index: xmenu.c
===================================================================
RCS file: /sources/emacs/emacs/src/xmenu.c,v
retrieving revision 1.317.2.3
retrieving revision 1.317.2.4
diff -u -b -r1.317.2.3 -r1.317.2.4
--- xmenu.c     8 Jan 2008 04:29:40 -0000       1.317.2.3
+++ xmenu.c     30 Jul 2008 13:57:26 -0000      1.317.2.4
@@ -1412,12 +1412,13 @@
       /* Activate the first menu.  */
       GList *children = gtk_container_get_children (GTK_CONTAINER (menubar));
 
-      gtk_menu_shell_select_item (GTK_MENU_SHELL (menubar),
-                                  GTK_WIDGET (children->data));
-
+      if (children)
+        {
+          g_signal_emit_by_name (children->data, "activate_item");
       popup_activated_flag = 1;
       g_list_free (children);
     }
+    }
   UNBLOCK_INPUT;
 
   return Qnil;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]