]> git.pld-linux.org Git - packages/vim.git/blob - 7.2.283
- new
[packages/vim.git] / 7.2.283
1 To: vim-dev@vim.org
2 Subject: Patch 7.2.283
3 Fcc: outbox
4 From: Bram Moolenaar <Bram@moolenaar.net>
5 Mime-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8 ------------
9
10 Patch 7.2.283
11 Problem:    Changing font while the window is maximized doesn't keep the
12             window maximized.
13 Solution:   Recompute number of lines and columns after changing font. (James
14             Vega)
15 Files:      src/gui_gtk_x11.c
16
17
18 *** ../vim-7.2.282/src/gui_gtk_x11.c    2009-09-23 18:14:13.000000000 +0200
19 --- src/gui_gtk_x11.c   2009-11-03 17:56:27.000000000 +0100
20 ***************
21 *** 5267,5274 ****
22   # endif
23   #endif /* !HAVE_GTK2 */
24   
25 !     /* Preserve the logical dimensions of the screen. */
26 !     update_window_manager_hints(0, 0);
27   
28       return OK;
29   }
30 --- 5267,5290 ----
31   # endif
32   #endif /* !HAVE_GTK2 */
33   
34 ! #ifdef HAVE_GTK2
35 !     if (gui_mch_maximized())
36 !     {
37 !       int w, h;
38
39 !       /* Update lines and columns in accordance with the new font, keep the
40 !        * window maximized. */
41 !       gtk_window_get_size(GTK_WINDOW(gui.mainwin), &w, &h);
42 !       w -= get_menu_tool_width();
43 !       h -= get_menu_tool_height();
44 !       gui_resize_shell(w, h);
45 !     }
46 !     else
47 ! #endif
48 !     {
49 !       /* Preserve the logical dimensions of the screen. */
50 !       update_window_manager_hints(0, 0);
51 !     }
52   
53       return OK;
54   }
55 *** ../vim-7.2.282/src/version.c        2009-11-03 18:04:26.000000000 +0100
56 --- src/version.c       2009-11-03 18:11:53.000000000 +0100
57 ***************
58 *** 678,679 ****
59 --- 678,681 ----
60   {   /* Add new patch number below this line */
61 + /**/
62 +     283,
63   /**/
64
65 -- 
66 If an elephant is left tied to a parking meter, the parking fee has to be paid
67 just as it would for a vehicle.
68                 [real standing law in Florida, United States of America]
69
70  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
71 ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
72 \\\        download, build and distribute -- http://www.A-A-P.org        ///
73  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
This page took 0.03201 seconds and 3 git commands to generate.