4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: GTK: when there are many tab pages, clicking on the arrow left of
12 the labels moves to the next tab page on the right. (Simeon Bird)
13 Solution: Check the X coordinate of the click and pass -1 as value for the
15 Files: src/gui_gtk_x11.c, src/term.c
18 *** ../vim-7.1.108/src/gui_gtk_x11.c Wed Sep 5 21:45:54 2007
19 --- src/gui_gtk_x11.c Fri Sep 14 20:59:55 2007
23 if (clicked_page == 0)
25 ! /* Click after all tabs moves to next tab page. */
26 ! if (send_tabline_event(0) && gtk_main_level() > 0)
32 if (clicked_page == 0)
34 ! /* Click after all tabs moves to next tab page. When "x" is
35 ! * small guess it's the left button. */
36 ! if (send_tabline_event(x < 50 ? -1 : 0) && gtk_main_level() > 0)
40 *** ../vim-7.1.108/src/term.c Thu May 10 20:48:32 2007
41 --- src/term.c Fri Sep 14 20:56:40 2007
47 current_tab = (int)bytes[0];
48 + if (current_tab == 255) /* -1 in a byte gives 255 */
52 else if (key_name[0] == (int)KS_TABMENU)
53 *** ../vim-7.1.108/src/version.c Fri Sep 14 19:56:18 2007
54 --- src/version.c Sat Sep 15 14:05:25 2007
58 { /* Add new patch number below this line */
64 No letters of the alphabet were harmed in the creation of this message.
66 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
67 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
68 \\\ download, build and distribute -- http://www.A-A-P.org ///
69 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///