4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: GTK2: when using the -geom argument with an offset from the right
12 edge and the size is smaller than the default, the Vim window is
13 not positioned properly.
14 Solution: Use another function to set the size. (Vitaly Minko)
15 Files: src/gui_gtk_x11.c
18 *** ../vim-7.2.262/src/gui_gtk_x11.c 2009-09-11 15:46:20.000000000 +0200
19 --- src/gui_gtk_x11.c 2009-09-23 15:43:52.000000000 +0200
24 guicolor_T fg_pixel = INVALCOLOR;
25 guicolor_T bg_pixel = INVALCOLOR;
39 mask = XParseGeometry((char *)gui.geom, &x, &y, &w, &h);
47 ! gtk_form_set_size(GTK_FORM(gui.formwin),
48 ! (guint)(gui_get_base_width() + Columns * gui.char_width),
49 ! (guint)(gui_get_base_height() + Rows * gui.char_height));
50 update_window_manager_hints(0, 0);
52 if (foreground_argument != NULL)
57 ! pixel_width = (guint)(gui_get_base_width() + Columns * gui.char_width);
58 ! pixel_height = (guint)(gui_get_base_height() + Rows * gui.char_height);
60 ! /* For GTK2 changing the size of the form widget doesn't cause window
62 ! if (gtk_socket_id == 0)
63 ! gtk_window_resize(GTK_WINDOW(gui.mainwin), pixel_width, pixel_height);
65 ! gtk_form_set_size(GTK_FORM(gui.formwin), pixel_width, pixel_height);
67 update_window_manager_hints(0, 0);
69 if (foreground_argument != NULL)
70 *** ../vim-7.2.262/src/version.c 2009-09-18 17:24:54.000000000 +0200
71 --- src/version.c 2009-09-23 17:34:08.000000000 +0200
75 { /* Add new patch number below this line */
81 hundred-and-one symptoms of being an internet addict:
82 267. You get an extra phone line so you can get phone calls.
84 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
85 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
86 \\\ download, build and distribute -- http://www.A-A-P.org ///
87 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///