• R/O
  • SSH

vim: コミット

Mirror of the Vim source from https://github.com/vim/vim


コミットメタ情報

リビジョンc44058ba78bc108e98fc15a14756716c3d3241fb (tree)
日時2007-10-19 21:33:44
作者vimboss
コミッターvimboss

ログメッセージ

updated for version 7.1-141

変更サマリ

差分

diff -r 15154710ed57 -r c44058ba78bc src/gui_gtk_x11.c
--- a/src/gui_gtk_x11.c Sun Oct 14 15:16:27 2007 +0000
+++ b/src/gui_gtk_x11.c Fri Oct 19 12:33:44 2007 +0000
@@ -4044,6 +4044,8 @@
40444044 unsigned int w, h;
40454045 int x = 0;
40464046 int y = 0;
4047+ guint pixel_width;
4048+ guint pixel_height;
40474049
40484050 mask = XParseGeometry((char *)gui.geom, &x, &y, &w, &h);
40494051
@@ -4055,12 +4057,31 @@
40554057 p_window = h - 1;
40564058 Rows = h;
40574059 }
4060+
4061+ pixel_width = (guint)(gui_get_base_width() + Columns * gui.char_width);
4062+ pixel_height = (guint)(gui_get_base_height() + Rows * gui.char_height);
4063+
4064+#ifdef HAVE_GTK2
4065+ pixel_width += get_menu_tool_width();
4066+ pixel_height += get_menu_tool_height();
4067+#endif
4068+
40584069 if (mask & (XValue | YValue))
4070+ {
4071+ int w, h;
4072+ gui_mch_get_screen_dimensions(&w, &h);
4073+ h += p_ghr + get_menu_tool_height();
4074+ w += get_menu_tool_width();
4075+ if (mask & XNegative)
4076+ x += w - pixel_width;
4077+ if (mask & YNegative)
4078+ y += h - pixel_height;
40594079 #ifdef HAVE_GTK2
40604080 gtk_window_move(GTK_WINDOW(gui.mainwin), x, y);
40614081 #else
40624082 gtk_widget_set_uposition(gui.mainwin, x, y);
40634083 #endif
4084+ }
40644085 vim_free(gui.geom);
40654086 gui.geom = NULL;
40664087
@@ -4071,14 +4092,6 @@
40714092 */
40724093 if (gtk_socket_id != 0 && (mask & WidthValue || mask & HeightValue))
40734094 {
4074- guint pixel_width = (guint)(gui_get_base_width() + Columns * gui.char_width);
4075- guint pixel_height = (guint)(gui_get_base_height() + Rows * gui.char_height);
4076-
4077-#ifdef HAVE_GTK2
4078- pixel_width += get_menu_tool_width();
4079- pixel_height += get_menu_tool_height();
4080-#endif
4081-
40824095 update_window_manager_hints(pixel_width, pixel_height);
40834096 init_window_hints_state = 1;
40844097 g_timeout_add(1000, check_startup_plug_hints, NULL);
diff -r 15154710ed57 -r c44058ba78bc src/version.c
--- a/src/version.c Sun Oct 14 15:16:27 2007 +0000
+++ b/src/version.c Fri Oct 19 12:33:44 2007 +0000
@@ -667,6 +667,8 @@
667667 static int included_patches[] =
668668 { /* Add new patch number below this line */
669669 /**/
670+ 141,
671+/**/
670672 140,
671673 /**/
672674 139,
旧リポジトリブラウザで表示