summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-03-27 21:03:26 +0000
committerBram Moolenaar <Bram@vim.org>2006-03-27 21:03:26 +0000
commit04a9d4555ac38c1f8e7183354991cf54ab4b1d0a (patch)
tree94e64466a1369b992e8619481b277a083662b01b /src
parent3964b7ea08b139dec4b35f766ca80198e20c0219 (diff)
updated for version 7.0c01v7.0c01
Diffstat (limited to 'src')
-rw-r--r--src/gui_gtk_x11.c5
-rw-r--r--src/gui_x11.c4
-rw-r--r--src/menu.c2
-rw-r--r--src/proto/gui_x11.pro2
-rw-r--r--src/ui.c2
5 files changed, 9 insertions, 6 deletions
diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c
index 35e18c9779..8d261b7598 100644
--- a/src/gui_gtk_x11.c
+++ b/src/gui_gtk_x11.c
@@ -2728,7 +2728,7 @@ mainwin_screen_changed_cb(GtkWidget *widget,
if (gui.norm_font != NULL)
{
gui_mch_init_font(p_guifont, FALSE);
- gui_set_shellsize(FALSE, FALSE);
+ gui_set_shellsize(FALSE, FALSE, RESIZE_BOTH);
}
}
#endif /* HAVE_GTK_MULTIHEAD */
@@ -4247,7 +4247,8 @@ force_shell_resize_idle(gpointer data)
void
gui_mch_set_shellsize(int width, int height,
int min_width, int min_height,
- int base_width, int base_height)
+ int base_width, int base_height,
+ int direction)
{
#ifndef HAVE_GTK2
/* Hack: When the form already is at the desired size, the window might
diff --git a/src/gui_x11.c b/src/gui_x11.c
index 3176b9d845..706291bbd2 100644
--- a/src/gui_x11.c
+++ b/src/gui_x11.c
@@ -1788,15 +1788,17 @@ gui_mch_set_winpos(x, y)
NULL);
}
+/*ARGSUSED*/
void
gui_mch_set_shellsize(width, height, min_width, min_height,
- base_width, base_height)
+ base_width, base_height, direction)
int width;
int height;
int min_width;
int min_height;
int base_width;
int base_height;
+ int direction;
{
#ifdef FEAT_XIM
height += xim_get_status_area_height(),
diff --git a/src/menu.c b/src/menu.c
index 8748740a54..b9c79229bb 100644
--- a/src/menu.c
+++ b/src/menu.c
@@ -442,7 +442,7 @@ ex_menu(eap)
|| gui.toolbar_height != old_toolbar_height
# endif
))
- gui_set_shellsize(FALSE, FALSE);
+ gui_set_shellsize(FALSE, FALSE, RESIZE_VERT);
#endif
theend:
diff --git a/src/proto/gui_x11.pro b/src/proto/gui_x11.pro
index 66f192a411..f8abb070f1 100644
--- a/src/proto/gui_x11.pro
+++ b/src/proto/gui_x11.pro
@@ -11,7 +11,7 @@ extern void gui_init_menu_font __ARGS((void));
extern void gui_mch_exit __ARGS((int rc));
extern int gui_mch_get_winpos __ARGS((int *x, int *y));
extern void gui_mch_set_winpos __ARGS((int x, int y));
-extern void gui_mch_set_shellsize __ARGS((int width, int height, int min_width, int min_height, int base_width, int base_height));
+extern void gui_mch_set_shellsize __ARGS((int width, int height, int min_width, int min_height, int base_width, int base_height, int direction));
extern void gui_mch_get_screen_dimensions __ARGS((int *screen_w, int *screen_h));
extern int gui_mch_init_font __ARGS((char_u *font_name, int do_fontset));
extern GuiFont gui_mch_get_font __ARGS((char_u *name, int giveErrorIfMissing));
diff --git a/src/ui.c b/src/ui.c
index fb93b905de..352dce16ed 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -328,7 +328,7 @@ ui_set_shellsize(mustset)
# else
FALSE
# endif
- );
+ , RESIZE_BOTH);
else
#endif
mch_set_shellsize();