4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: GTK: -geom argument doesn't support a negative offset.
12 Solution: Compute position from the right/lower corner.
13 Files: src/gui_gtk_x11.c
16 *** ../vim-7.1.140/src/gui_gtk_x11.c Sat Sep 15 14:06:41 2007
17 --- src/gui_gtk_x11.c Mon Oct 8 21:26:50 2007
27 mask = XParseGeometry((char *)gui.geom, &x, &y, &w, &h);
36 + pixel_width = (guint)(gui_get_base_width() + Columns * gui.char_width);
37 + pixel_height = (guint)(gui_get_base_height() + Rows * gui.char_height);
40 + pixel_width += get_menu_tool_width();
41 + pixel_height += get_menu_tool_height();
44 if (mask & (XValue | YValue))
47 + gui_mch_get_screen_dimensions(&w, &h);
48 + h += p_ghr + get_menu_tool_height();
49 + w += get_menu_tool_width();
50 + if (mask & XNegative)
51 + x += w - pixel_width;
52 + if (mask & YNegative)
53 + y += h - pixel_height;
55 gtk_window_move(GTK_WINDOW(gui.mainwin), x, y);
57 gtk_widget_set_uposition(gui.mainwin, x, y);
66 if (gtk_socket_id != 0 && (mask & WidthValue || mask & HeightValue))
68 - guint pixel_width = (guint)(gui_get_base_width() + Columns * gui.char_width);
69 - guint pixel_height = (guint)(gui_get_base_height() + Rows * gui.char_height);
72 - pixel_width += get_menu_tool_width();
73 - pixel_height += get_menu_tool_height();
76 update_window_manager_hints(pixel_width, pixel_height);
77 init_window_hints_state = 1;
78 g_timeout_add(1000, check_startup_plug_hints, NULL);
80 *** ../vim-7.1.140/src/version.c Sun Oct 14 17:15:45 2007
81 --- src/version.c Fri Oct 19 14:28:52 2007
85 { /* Add new patch number below this line */
91 hundred-and-one symptoms of being an internet addict:
92 35. Your husband tells you he's had the beard for 2 months.
94 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
95 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
96 \\\ download, build and distribute -- http://www.A-A-P.org ///
97 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///