]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 7.4.1803 v7.4.1803
authorBram Moolenaar <Bram@vim.org>
Sat, 30 Apr 2016 11:26:14 +0000 (13:26 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 30 Apr 2016 11:26:14 +0000 (13:26 +0200)
Problem:    GTK3 doesn't handle menu separaters properly.
Solution:   Use gtk_separator_menu_item_new(). (Kazunobu Kuriyama)

src/gui_gtk.c
src/version.c

index 55d10002a9c7bbe85da1ef078da78ca8b270b607..81320ddc100aa697f2a1f0489bdf81e483c029a4 100644 (file)
@@ -781,8 +781,12 @@ gui_mch_add_menu_item(vimmenu_T *menu, int idx)
        if (menu_is_separator(menu->name))
        {
            /* Separator: Just add it */
+# if GTK_CHECK_VERSION(3,0,0)
+           menu->id = gtk_separator_menu_item_new();
+# else
            menu->id = gtk_menu_item_new();
            gtk_widget_set_sensitive(menu->id, FALSE);
+# endif
            gtk_widget_show(menu->id);
 # if GTK_CHECK_VERSION(3,0,0)
            gtk_menu_shell_insert(GTK_MENU_SHELL(parent->submenu_id),
index fc3164223a0154a404f44569d02b5dc893d127e6..ff275cf0b3688a6db21543ff7477fa1468200601 100644 (file)
@@ -753,6 +753,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1803,
 /**/
     1802,
 /**/