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:
parent
6be8c8e165
commit
0b6cf69c03
@ -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),
|
||||
|
@ -753,6 +753,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1803,
|
||||
/**/
|
||||
1802,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user