]> granicus.if.org Git - vim/commitdiff
updated for version 7.2-263 v7.2.263
authorBram Moolenaar <Bram@vim.org>
Wed, 23 Sep 2009 15:35:48 +0000 (15:35 +0000)
committerBram Moolenaar <Bram@vim.org>
Wed, 23 Sep 2009 15:35:48 +0000 (15:35 +0000)
src/gui_gtk_x11.c
src/version.c

index 5281453d5bbeb5b316e9bbcb0669ca3936bcc946..cb50d030f3f3fb528885227ab887a42402430844 100644 (file)
@@ -4066,6 +4066,8 @@ gui_mch_open(void)
 {
     guicolor_T fg_pixel = INVALCOLOR;
     guicolor_T bg_pixel = INVALCOLOR;
+    guint              pixel_width;
+    guint              pixel_height;
 
 #ifdef HAVE_GTK2
     /*
@@ -4106,8 +4108,6 @@ gui_mch_open(void)
        unsigned int    w, h;
        int             x = 0;
        int             y = 0;
-       guint           pixel_width;
-       guint           pixel_height;
 
        mask = XParseGeometry((char *)gui.geom, &x, &y, &w, &h);
 
@@ -4160,9 +4160,16 @@ gui_mch_open(void)
        }
     }
 
-    gtk_form_set_size(GTK_FORM(gui.formwin),
-           (guint)(gui_get_base_width() + Columns * gui.char_width),
-           (guint)(gui_get_base_height() + Rows * gui.char_height));
+    pixel_width = (guint)(gui_get_base_width() + Columns * gui.char_width);
+    pixel_height = (guint)(gui_get_base_height() + Rows * gui.char_height);
+#ifdef HAVE_GTK2
+    /* For GTK2 changing the size of the form widget doesn't cause window
+     * resizing. */
+    if (gtk_socket_id == 0) 
+       gtk_window_resize(GTK_WINDOW(gui.mainwin), pixel_width, pixel_height);
+#else
+    gtk_form_set_size(GTK_FORM(gui.formwin), pixel_width, pixel_height);
+#endif
     update_window_manager_hints(0, 0);
 
     if (foreground_argument != NULL)
index ae540d7d88db48b71a573723ac7ff248871de75e..1f3f201dbc429d8f060dac7454748083489eb95d 100644 (file)
@@ -676,6 +676,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    263,
 /**/
     262,
 /**/