mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
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:
@@ -781,8 +781,12 @@ gui_mch_add_menu_item(vimmenu_T *menu, int idx)
|
|||||||
if (menu_is_separator(menu->name))
|
if (menu_is_separator(menu->name))
|
||||||
{
|
{
|
||||||
/* Separator: Just add it */
|
/* 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();
|
menu->id = gtk_menu_item_new();
|
||||||
gtk_widget_set_sensitive(menu->id, FALSE);
|
gtk_widget_set_sensitive(menu->id, FALSE);
|
||||||
|
# endif
|
||||||
gtk_widget_show(menu->id);
|
gtk_widget_show(menu->id);
|
||||||
# if GTK_CHECK_VERSION(3,0,0)
|
# if GTK_CHECK_VERSION(3,0,0)
|
||||||
gtk_menu_shell_insert(GTK_MENU_SHELL(parent->submenu_id),
|
gtk_menu_shell_insert(GTK_MENU_SHELL(parent->submenu_id),
|
||||||
|
@@ -753,6 +753,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1803,
|
||||||
/**/
|
/**/
|
||||||
1802,
|
1802,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user