1
0
forked from aniani/vim

patch 7.4.1803

Problem:    GTK3 doesn't handle menu separaters properly.
Solution:   Use gtk_separator_menu_item_new(). (Kazunobu Kuriyama)
This commit is contained in:
Bram Moolenaar 2016-04-30 13:26:14 +02:00
parent 6be8c8e165
commit 0b6cf69c03
2 changed files with 6 additions and 0 deletions

View 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),

View File

@ -753,6 +753,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1803,
/**/
1802,
/**/