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


From: Jan Djärv
Subject: [Emacs-diffs] Changes to emacs/src/xmenu.c,v
Date: Tue, 29 Jul 2008 09:25:04 +0000

CVSROOT:        /cvsroot/emacs
Module name:    emacs
Changes by:     Jan Djärv <jhd>        08/07/29 09:25:04

Index: xmenu.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/xmenu.c,v
retrieving revision 1.332
retrieving revision 1.333
diff -u -b -r1.332 -r1.333
--- xmenu.c     11 Jul 2008 11:20:21 -0000      1.332
+++ xmenu.c     29 Jul 2008 09:25:04 -0000      1.333
@@ -884,12 +884,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]