|
Karsten Hopp |
91fdc3 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
91fdc3 |
Subject: Patch 7.4.731
|
|
Karsten Hopp |
91fdc3 |
Fcc: outbox
|
|
Karsten Hopp |
91fdc3 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
91fdc3 |
Mime-Version: 1.0
|
|
Karsten Hopp |
91fdc3 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
91fdc3 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
91fdc3 |
------------
|
|
Karsten Hopp |
91fdc3 |
|
|
Karsten Hopp |
91fdc3 |
Patch 7.4.731
|
|
Karsten Hopp |
91fdc3 |
Problem: The tab menu shows "Close tab" even when it doesn't work.
|
|
Karsten Hopp |
91fdc3 |
Solution: Don't show "Close tab" for the last tab. (John Marriott)
|
|
Karsten Hopp |
91fdc3 |
Files: src/gui_w48.c, src/gui_gtk_x11.c, src/gui_mac.c, src/gui_motif.c
|
|
Karsten Hopp |
91fdc3 |
|
|
Karsten Hopp |
91fdc3 |
|
|
Karsten Hopp |
91fdc3 |
*** ../vim-7.4.730/src/gui_w48.c 2014-08-22 18:44:30.307175276 +0200
|
|
Karsten Hopp |
91fdc3 |
--- src/gui_w48.c 2015-06-09 19:05:35.267157965 +0200
|
|
Karsten Hopp |
91fdc3 |
***************
|
|
Karsten Hopp |
91fdc3 |
*** 2389,2395 ****
|
|
Karsten Hopp |
91fdc3 |
if (tab_pmenu == NULL)
|
|
Karsten Hopp |
91fdc3 |
return;
|
|
Karsten Hopp |
91fdc3 |
|
|
Karsten Hopp |
91fdc3 |
! add_tabline_popup_menu_entry(tab_pmenu, TABLINE_MENU_CLOSE, _("Close tab"));
|
|
Karsten Hopp |
91fdc3 |
add_tabline_popup_menu_entry(tab_pmenu, TABLINE_MENU_NEW, _("New tab"));
|
|
Karsten Hopp |
91fdc3 |
add_tabline_popup_menu_entry(tab_pmenu, TABLINE_MENU_OPEN,
|
|
Karsten Hopp |
91fdc3 |
_("Open tab..."));
|
|
Karsten Hopp |
91fdc3 |
--- 2389,2397 ----
|
|
Karsten Hopp |
91fdc3 |
if (tab_pmenu == NULL)
|
|
Karsten Hopp |
91fdc3 |
return;
|
|
Karsten Hopp |
91fdc3 |
|
|
Karsten Hopp |
91fdc3 |
! if (first_tabpage->tp_next != NULL)
|
|
Karsten Hopp |
91fdc3 |
! add_tabline_popup_menu_entry(tab_pmenu,
|
|
Karsten Hopp |
91fdc3 |
! TABLINE_MENU_CLOSE, _("Close tab"));
|
|
Karsten Hopp |
91fdc3 |
add_tabline_popup_menu_entry(tab_pmenu, TABLINE_MENU_NEW, _("New tab"));
|
|
Karsten Hopp |
91fdc3 |
add_tabline_popup_menu_entry(tab_pmenu, TABLINE_MENU_OPEN,
|
|
Karsten Hopp |
91fdc3 |
_("Open tab..."));
|
|
Karsten Hopp |
91fdc3 |
*** ../vim-7.4.730/src/gui_gtk_x11.c 2014-06-17 18:46:57.880761027 +0200
|
|
Karsten Hopp |
91fdc3 |
--- src/gui_gtk_x11.c 2015-06-09 19:06:40.962433029 +0200
|
|
Karsten Hopp |
91fdc3 |
***************
|
|
Karsten Hopp |
91fdc3 |
*** 2873,2879 ****
|
|
Karsten Hopp |
91fdc3 |
GtkWidget *menu;
|
|
Karsten Hopp |
91fdc3 |
|
|
Karsten Hopp |
91fdc3 |
menu = gtk_menu_new();
|
|
Karsten Hopp |
91fdc3 |
! add_tabline_menu_item(menu, (char_u *)_("Close"), TABLINE_MENU_CLOSE);
|
|
Karsten Hopp |
91fdc3 |
add_tabline_menu_item(menu, (char_u *)_("New tab"), TABLINE_MENU_NEW);
|
|
Karsten Hopp |
91fdc3 |
add_tabline_menu_item(menu, (char_u *)_("Open Tab..."), TABLINE_MENU_OPEN);
|
|
Karsten Hopp |
91fdc3 |
|
|
Karsten Hopp |
91fdc3 |
--- 2873,2881 ----
|
|
Karsten Hopp |
91fdc3 |
GtkWidget *menu;
|
|
Karsten Hopp |
91fdc3 |
|
|
Karsten Hopp |
91fdc3 |
menu = gtk_menu_new();
|
|
Karsten Hopp |
91fdc3 |
! if (first_tabpage->tp_next != NULL)
|
|
Karsten Hopp |
91fdc3 |
! add_tabline_menu_item(menu, (char_u *)_("Close tab"),
|
|
Karsten Hopp |
91fdc3 |
! TABLINE_MENU_CLOSE);
|
|
Karsten Hopp |
91fdc3 |
add_tabline_menu_item(menu, (char_u *)_("New tab"), TABLINE_MENU_NEW);
|
|
Karsten Hopp |
91fdc3 |
add_tabline_menu_item(menu, (char_u *)_("Open Tab..."), TABLINE_MENU_OPEN);
|
|
Karsten Hopp |
91fdc3 |
|
|
Karsten Hopp |
91fdc3 |
*** ../vim-7.4.730/src/gui_mac.c 2014-03-23 15:12:29.923264336 +0100
|
|
Karsten Hopp |
91fdc3 |
--- src/gui_mac.c 2015-06-09 19:07:03.406185323 +0200
|
|
Karsten Hopp |
91fdc3 |
***************
|
|
Karsten Hopp |
91fdc3 |
*** 6819,6825 ****
|
|
Karsten Hopp |
91fdc3 |
|
|
Karsten Hopp |
91fdc3 |
// create tabline popup menu required by vim docs (see :he tabline-menu)
|
|
Karsten Hopp |
91fdc3 |
CreateNewMenu(kTabContextMenuId, 0, &contextMenu);
|
|
Karsten Hopp |
91fdc3 |
! AppendMenuItemTextWithCFString(contextMenu, CFSTR("Close"), 0,
|
|
Karsten Hopp |
91fdc3 |
TABLINE_MENU_CLOSE, NULL);
|
|
Karsten Hopp |
91fdc3 |
AppendMenuItemTextWithCFString(contextMenu, CFSTR("New Tab"), 0,
|
|
Karsten Hopp |
91fdc3 |
TABLINE_MENU_NEW, NULL);
|
|
Karsten Hopp |
91fdc3 |
--- 6819,6826 ----
|
|
Karsten Hopp |
91fdc3 |
|
|
Karsten Hopp |
91fdc3 |
// create tabline popup menu required by vim docs (see :he tabline-menu)
|
|
Karsten Hopp |
91fdc3 |
CreateNewMenu(kTabContextMenuId, 0, &contextMenu);
|
|
Karsten Hopp |
91fdc3 |
! if (first_tabpage->tp_next != NULL)
|
|
Karsten Hopp |
91fdc3 |
! AppendMenuItemTextWithCFString(contextMenu, CFSTR("Close Tab"), 0,
|
|
Karsten Hopp |
91fdc3 |
TABLINE_MENU_CLOSE, NULL);
|
|
Karsten Hopp |
91fdc3 |
AppendMenuItemTextWithCFString(contextMenu, CFSTR("New Tab"), 0,
|
|
Karsten Hopp |
91fdc3 |
TABLINE_MENU_NEW, NULL);
|
|
Karsten Hopp |
91fdc3 |
*** ../vim-7.4.730/src/gui_motif.c 2013-06-22 12:54:44.000000000 +0200
|
|
Karsten Hopp |
91fdc3 |
--- src/gui_motif.c 2015-06-09 19:08:18.837352548 +0200
|
|
Karsten Hopp |
91fdc3 |
***************
|
|
Karsten Hopp |
91fdc3 |
*** 540,553 ****
|
|
Karsten Hopp |
91fdc3 |
tabLine_menu = XmCreatePopupMenu(tabLine, "tabline popup", NULL, 0);
|
|
Karsten Hopp |
91fdc3 |
|
|
Karsten Hopp |
91fdc3 |
/* Add the buttons to the menu */
|
|
Karsten Hopp |
91fdc3 |
! n = 0;
|
|
Karsten Hopp |
91fdc3 |
! XtSetArg(args[n], XmNuserData, TABLINE_MENU_CLOSE); n++;
|
|
Karsten Hopp |
91fdc3 |
! xms = XmStringCreate((char *)"Close tab", STRING_TAG);
|
|
Karsten Hopp |
91fdc3 |
! XtSetArg(args[n], XmNlabelString, xms); n++;
|
|
Karsten Hopp |
91fdc3 |
! button = XmCreatePushButton(tabLine_menu, "Close", args, n);
|
|
Karsten Hopp |
91fdc3 |
! XtAddCallback(button, XmNactivateCallback,
|
|
Karsten Hopp |
91fdc3 |
! (XtCallbackProc)tabline_button_cb, NULL);
|
|
Karsten Hopp |
91fdc3 |
! XmStringFree(xms);
|
|
Karsten Hopp |
91fdc3 |
|
|
Karsten Hopp |
91fdc3 |
n = 0;
|
|
Karsten Hopp |
91fdc3 |
XtSetArg(args[n], XmNuserData, TABLINE_MENU_NEW); n++;
|
|
Karsten Hopp |
91fdc3 |
--- 540,556 ----
|
|
Karsten Hopp |
91fdc3 |
tabLine_menu = XmCreatePopupMenu(tabLine, "tabline popup", NULL, 0);
|
|
Karsten Hopp |
91fdc3 |
|
|
Karsten Hopp |
91fdc3 |
/* Add the buttons to the menu */
|
|
Karsten Hopp |
91fdc3 |
! if (first_tabpage->tp_next != NULL)
|
|
Karsten Hopp |
91fdc3 |
! {
|
|
Karsten Hopp |
91fdc3 |
! n = 0;
|
|
Karsten Hopp |
91fdc3 |
! XtSetArg(args[n], XmNuserData, TABLINE_MENU_CLOSE); n++;
|
|
Karsten Hopp |
91fdc3 |
! xms = XmStringCreate((char *)"Close tab", STRING_TAG);
|
|
Karsten Hopp |
91fdc3 |
! XtSetArg(args[n], XmNlabelString, xms); n++;
|
|
Karsten Hopp |
91fdc3 |
! button = XmCreatePushButton(tabLine_menu, "Close", args, n);
|
|
Karsten Hopp |
91fdc3 |
! XtAddCallback(button, XmNactivateCallback,
|
|
Karsten Hopp |
91fdc3 |
! (XtCallbackProc)tabline_button_cb, NULL);
|
|
Karsten Hopp |
91fdc3 |
! XmStringFree(xms);
|
|
Karsten Hopp |
91fdc3 |
! }
|
|
Karsten Hopp |
91fdc3 |
|
|
Karsten Hopp |
91fdc3 |
n = 0;
|
|
Karsten Hopp |
91fdc3 |
XtSetArg(args[n], XmNuserData, TABLINE_MENU_NEW); n++;
|
|
Karsten Hopp |
91fdc3 |
*** ../vim-7.4.730/src/version.c 2015-06-09 18:35:17.471406959 +0200
|
|
Karsten Hopp |
91fdc3 |
--- src/version.c 2015-06-09 19:05:02.451520015 +0200
|
|
Karsten Hopp |
91fdc3 |
***************
|
|
Karsten Hopp |
91fdc3 |
*** 743,744 ****
|
|
Karsten Hopp |
91fdc3 |
--- 743,746 ----
|
|
Karsten Hopp |
91fdc3 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
91fdc3 |
+ /**/
|
|
Karsten Hopp |
91fdc3 |
+ 731,
|
|
Karsten Hopp |
91fdc3 |
/**/
|
|
Karsten Hopp |
91fdc3 |
|
|
Karsten Hopp |
91fdc3 |
--
|
|
Karsten Hopp |
91fdc3 |
From "know your smileys":
|
|
Karsten Hopp |
91fdc3 |
8<}} Glasses, big nose, beard
|
|
Karsten Hopp |
91fdc3 |
|
|
Karsten Hopp |
91fdc3 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
91fdc3 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
91fdc3 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
91fdc3 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|