|
Karsten Hopp |
33e8b1 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
33e8b1 |
Subject: Patch 7.2.283
|
|
Karsten Hopp |
33e8b1 |
Fcc: outbox
|
|
Karsten Hopp |
33e8b1 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
33e8b1 |
Mime-Version: 1.0
|
|
Karsten Hopp |
33e8b1 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
33e8b1 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
33e8b1 |
------------
|
|
Karsten Hopp |
33e8b1 |
|
|
Karsten Hopp |
33e8b1 |
Patch 7.2.283
|
|
Karsten Hopp |
33e8b1 |
Problem: Changing font while the window is maximized doesn't keep the
|
|
Karsten Hopp |
33e8b1 |
window maximized.
|
|
Karsten Hopp |
33e8b1 |
Solution: Recompute number of lines and columns after changing font. (James
|
|
Karsten Hopp |
33e8b1 |
Vega)
|
|
Karsten Hopp |
33e8b1 |
Files: src/gui_gtk_x11.c
|
|
Karsten Hopp |
33e8b1 |
|
|
Karsten Hopp |
33e8b1 |
|
|
Karsten Hopp |
33e8b1 |
*** ../vim-7.2.282/src/gui_gtk_x11.c 2009-09-23 18:14:13.000000000 +0200
|
|
Karsten Hopp |
33e8b1 |
--- src/gui_gtk_x11.c 2009-11-03 17:56:27.000000000 +0100
|
|
Karsten Hopp |
33e8b1 |
***************
|
|
Karsten Hopp |
33e8b1 |
*** 5267,5274 ****
|
|
Karsten Hopp |
33e8b1 |
# endif
|
|
Karsten Hopp |
33e8b1 |
#endif /* !HAVE_GTK2 */
|
|
Karsten Hopp |
33e8b1 |
|
|
Karsten Hopp |
33e8b1 |
! /* Preserve the logical dimensions of the screen. */
|
|
Karsten Hopp |
33e8b1 |
! update_window_manager_hints(0, 0);
|
|
Karsten Hopp |
33e8b1 |
|
|
Karsten Hopp |
33e8b1 |
return OK;
|
|
Karsten Hopp |
33e8b1 |
}
|
|
Karsten Hopp |
33e8b1 |
--- 5267,5290 ----
|
|
Karsten Hopp |
33e8b1 |
# endif
|
|
Karsten Hopp |
33e8b1 |
#endif /* !HAVE_GTK2 */
|
|
Karsten Hopp |
33e8b1 |
|
|
Karsten Hopp |
33e8b1 |
! #ifdef HAVE_GTK2
|
|
Karsten Hopp |
33e8b1 |
! if (gui_mch_maximized())
|
|
Karsten Hopp |
33e8b1 |
! {
|
|
Karsten Hopp |
33e8b1 |
! int w, h;
|
|
Karsten Hopp |
33e8b1 |
!
|
|
Karsten Hopp |
33e8b1 |
! /* Update lines and columns in accordance with the new font, keep the
|
|
Karsten Hopp |
33e8b1 |
! * window maximized. */
|
|
Karsten Hopp |
33e8b1 |
! gtk_window_get_size(GTK_WINDOW(gui.mainwin), &w, &h);
|
|
Karsten Hopp |
33e8b1 |
! w -= get_menu_tool_width();
|
|
Karsten Hopp |
33e8b1 |
! h -= get_menu_tool_height();
|
|
Karsten Hopp |
33e8b1 |
! gui_resize_shell(w, h);
|
|
Karsten Hopp |
33e8b1 |
! }
|
|
Karsten Hopp |
33e8b1 |
! else
|
|
Karsten Hopp |
33e8b1 |
! #endif
|
|
Karsten Hopp |
33e8b1 |
! {
|
|
Karsten Hopp |
33e8b1 |
! /* Preserve the logical dimensions of the screen. */
|
|
Karsten Hopp |
33e8b1 |
! update_window_manager_hints(0, 0);
|
|
Karsten Hopp |
33e8b1 |
! }
|
|
Karsten Hopp |
33e8b1 |
|
|
Karsten Hopp |
33e8b1 |
return OK;
|
|
Karsten Hopp |
33e8b1 |
}
|
|
Karsten Hopp |
33e8b1 |
*** ../vim-7.2.282/src/version.c 2009-11-03 18:04:26.000000000 +0100
|
|
Karsten Hopp |
33e8b1 |
--- src/version.c 2009-11-03 18:11:53.000000000 +0100
|
|
Karsten Hopp |
33e8b1 |
***************
|
|
Karsten Hopp |
33e8b1 |
*** 678,679 ****
|
|
Karsten Hopp |
33e8b1 |
--- 678,681 ----
|
|
Karsten Hopp |
33e8b1 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
33e8b1 |
+ /**/
|
|
Karsten Hopp |
33e8b1 |
+ 283,
|
|
Karsten Hopp |
33e8b1 |
/**/
|
|
Karsten Hopp |
33e8b1 |
|
|
Karsten Hopp |
33e8b1 |
--
|
|
Karsten Hopp |
33e8b1 |
If an elephant is left tied to a parking meter, the parking fee has to be paid
|
|
Karsten Hopp |
33e8b1 |
just as it would for a vehicle.
|
|
Karsten Hopp |
33e8b1 |
[real standing law in Florida, United States of America]
|
|
Karsten Hopp |
33e8b1 |
|
|
Karsten Hopp |
33e8b1 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
33e8b1 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
33e8b1 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
33e8b1 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|