|
Karsten Hopp |
7cb51f |
To: vim-dev@vim.org
|
|
Karsten Hopp |
7cb51f |
Subject: Patch 7.2.263
|
|
Karsten Hopp |
7cb51f |
Fcc: outbox
|
|
Karsten Hopp |
7cb51f |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
7cb51f |
Mime-Version: 1.0
|
|
Karsten Hopp |
7cb51f |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
7cb51f |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
7cb51f |
------------
|
|
Karsten Hopp |
7cb51f |
|
|
Karsten Hopp |
7cb51f |
Patch 7.2.263
|
|
Karsten Hopp |
7cb51f |
Problem: GTK2: when using the -geom argument with an offset from the right
|
|
Karsten Hopp |
7cb51f |
edge and the size is smaller than the default, the Vim window is
|
|
Karsten Hopp |
7cb51f |
not positioned properly.
|
|
Karsten Hopp |
7cb51f |
Solution: Use another function to set the size. (Vitaly Minko)
|
|
Karsten Hopp |
7cb51f |
Files: src/gui_gtk_x11.c
|
|
Karsten Hopp |
7cb51f |
|
|
Karsten Hopp |
7cb51f |
|
|
Karsten Hopp |
7cb51f |
*** ../vim-7.2.262/src/gui_gtk_x11.c 2009-09-11 15:46:20.000000000 +0200
|
|
Karsten Hopp |
7cb51f |
--- src/gui_gtk_x11.c 2009-09-23 15:43:52.000000000 +0200
|
|
Karsten Hopp |
7cb51f |
***************
|
|
Karsten Hopp |
7cb51f |
*** 4066,4071 ****
|
|
Karsten Hopp |
7cb51f |
--- 4066,4073 ----
|
|
Karsten Hopp |
7cb51f |
{
|
|
Karsten Hopp |
7cb51f |
guicolor_T fg_pixel = INVALCOLOR;
|
|
Karsten Hopp |
7cb51f |
guicolor_T bg_pixel = INVALCOLOR;
|
|
Karsten Hopp |
7cb51f |
+ guint pixel_width;
|
|
Karsten Hopp |
7cb51f |
+ guint pixel_height;
|
|
Karsten Hopp |
7cb51f |
|
|
Karsten Hopp |
7cb51f |
#ifdef HAVE_GTK2
|
|
Karsten Hopp |
7cb51f |
/*
|
|
Karsten Hopp |
7cb51f |
***************
|
|
Karsten Hopp |
7cb51f |
*** 4106,4113 ****
|
|
Karsten Hopp |
7cb51f |
unsigned int w, h;
|
|
Karsten Hopp |
7cb51f |
int x = 0;
|
|
Karsten Hopp |
7cb51f |
int y = 0;
|
|
Karsten Hopp |
7cb51f |
- guint pixel_width;
|
|
Karsten Hopp |
7cb51f |
- guint pixel_height;
|
|
Karsten Hopp |
7cb51f |
|
|
Karsten Hopp |
7cb51f |
mask = XParseGeometry((char *)gui.geom, &x, &y, &w, &h);
|
|
Karsten Hopp |
7cb51f |
|
|
Karsten Hopp |
7cb51f |
--- 4108,4113 ----
|
|
Karsten Hopp |
7cb51f |
***************
|
|
Karsten Hopp |
7cb51f |
*** 4160,4168 ****
|
|
Karsten Hopp |
7cb51f |
}
|
|
Karsten Hopp |
7cb51f |
}
|
|
Karsten Hopp |
7cb51f |
|
|
Karsten Hopp |
7cb51f |
! gtk_form_set_size(GTK_FORM(gui.formwin),
|
|
Karsten Hopp |
7cb51f |
! (guint)(gui_get_base_width() + Columns * gui.char_width),
|
|
Karsten Hopp |
7cb51f |
! (guint)(gui_get_base_height() + Rows * gui.char_height));
|
|
Karsten Hopp |
7cb51f |
update_window_manager_hints(0, 0);
|
|
Karsten Hopp |
7cb51f |
|
|
Karsten Hopp |
7cb51f |
if (foreground_argument != NULL)
|
|
Karsten Hopp |
7cb51f |
--- 4160,4175 ----
|
|
Karsten Hopp |
7cb51f |
}
|
|
Karsten Hopp |
7cb51f |
}
|
|
Karsten Hopp |
7cb51f |
|
|
Karsten Hopp |
7cb51f |
! pixel_width = (guint)(gui_get_base_width() + Columns * gui.char_width);
|
|
Karsten Hopp |
7cb51f |
! pixel_height = (guint)(gui_get_base_height() + Rows * gui.char_height);
|
|
Karsten Hopp |
7cb51f |
! #ifdef HAVE_GTK2
|
|
Karsten Hopp |
7cb51f |
! /* For GTK2 changing the size of the form widget doesn't cause window
|
|
Karsten Hopp |
7cb51f |
! * resizing. */
|
|
Karsten Hopp |
7cb51f |
! if (gtk_socket_id == 0)
|
|
Karsten Hopp |
7cb51f |
! gtk_window_resize(GTK_WINDOW(gui.mainwin), pixel_width, pixel_height);
|
|
Karsten Hopp |
7cb51f |
! #else
|
|
Karsten Hopp |
7cb51f |
! gtk_form_set_size(GTK_FORM(gui.formwin), pixel_width, pixel_height);
|
|
Karsten Hopp |
7cb51f |
! #endif
|
|
Karsten Hopp |
7cb51f |
update_window_manager_hints(0, 0);
|
|
Karsten Hopp |
7cb51f |
|
|
Karsten Hopp |
7cb51f |
if (foreground_argument != NULL)
|
|
Karsten Hopp |
7cb51f |
*** ../vim-7.2.262/src/version.c 2009-09-18 17:24:54.000000000 +0200
|
|
Karsten Hopp |
7cb51f |
--- src/version.c 2009-09-23 17:34:08.000000000 +0200
|
|
Karsten Hopp |
7cb51f |
***************
|
|
Karsten Hopp |
7cb51f |
*** 678,679 ****
|
|
Karsten Hopp |
7cb51f |
--- 678,681 ----
|
|
Karsten Hopp |
7cb51f |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
7cb51f |
+ /**/
|
|
Karsten Hopp |
7cb51f |
+ 263,
|
|
Karsten Hopp |
7cb51f |
/**/
|
|
Karsten Hopp |
7cb51f |
|
|
Karsten Hopp |
7cb51f |
--
|
|
Karsten Hopp |
7cb51f |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
7cb51f |
267. You get an extra phone line so you can get phone calls.
|
|
Karsten Hopp |
7cb51f |
|
|
Karsten Hopp |
7cb51f |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
7cb51f |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
7cb51f |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
7cb51f |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|