4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: Changing font while the window is maximized doesn't keep the
13 Solution: Recompute number of lines and columns after changing font. (James
15 Files: src/gui_gtk_x11.c
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
23 #endif /* !HAVE_GTK2 */
25 ! /* Preserve the logical dimensions of the screen. */
26 ! update_window_manager_hints(0, 0);
32 #endif /* !HAVE_GTK2 */
35 ! if (gui_mch_maximized())
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);
49 ! /* Preserve the logical dimensions of the screen. */
50 ! update_window_manager_hints(0, 0);
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
60 { /* Add new patch number below this line */
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]
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 ///