4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
10 Patch 6.2.293 (after 6.2.255)
11 Problem: GTK: A new item in a menu is put before the tearoff item.
12 Solution: Do increment the menu item index for non-popup menu items.
16 *** ../vim-6.2.292/src/gui_gtk.c Sun Feb 15 13:42:25 2004
17 --- src/gui_gtk.c Thu Feb 26 17:47:49 2004
20 parent_widget = (parent != NULL) ? parent->submenu_id : gui.menubar;
21 menu_item_new(menu, parent_widget);
24 ! /* since the tearoff should always appear first, increment idx */
27 gtk_menu_shell_insert(GTK_MENU_SHELL(parent_widget), menu->id, idx);
29 parent_widget = (parent != NULL) ? parent->submenu_id : gui.menubar;
30 menu_item_new(menu, parent_widget);
32 ! /* since the tearoff should always appear first, increment idx */
33 ! if (parent != NULL && !menu_is_popup(parent->name))
36 gtk_menu_shell_insert(GTK_MENU_SHELL(parent_widget), menu->id, idx);
39 if (parent->submenu_id == NULL)
42 ! /* make place for the possible tearoff handle item */
43 ! /* ++idx; Don't understand why this was here; makes adding an item to
44 ! * the popup menu appear after instead of before an existing item. */
46 if (menu_is_separator(menu->name))
49 if (parent->submenu_id == NULL)
52 ! /* Make place for the possible tearoff handle item. Not in the popup
53 ! * menu, it doesn't have a tearoff item. */
54 ! if (parent != NULL && !menu_is_popup(parent->name))
57 if (menu_is_separator(menu->name))
59 *** ../vim-6.2.292/src/version.c Thu Feb 26 15:42:54 2004
60 --- src/version.c Thu Feb 26 18:15:20 2004
64 { /* Add new patch number below this line */
70 Bravely bold Sir Robin, rode forth from Camelot,
71 He was not afraid to die, Oh Brave Sir Robin,
72 He was not at all afraid to be killed in nasty ways
73 Brave, brave, brave, brave Sir Robin.
74 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
76 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
77 /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
78 \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
79 \\\ Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///