comparison src/gui_gtk_x11.c @ 12802:29a728529f92 v8.0.1278

patch 8.0.1278: GUI window always resizes when adding scrollbar commit https://github.com/vim/vim/commit/8ac441576fd219fb7227349e228d5b68520b204a Author: Bram Moolenaar <Bram@vim.org> Date: Thu Nov 9 18:33:29 2017 +0100 patch 8.0.1278: GUI window always resizes when adding scrollbar Problem: GUI window always resizes when adding/removing a scrollbar, toolbar, etc. Solution: Add the 'k' flag in 'guioptions' to keep the GUI window size and change the number of lines/columns instead. (Ychin, closes #703)
author Christian Brabandt <cb@256bit.org>
date Thu, 09 Nov 2017 18:45:04 +0100
parents 856a840679e3
children f4c3a7f410f4
comparison
equal deleted inserted replaced
12801:b4521872e498 12802:29a728529f92
2936 pango_context_set_base_dir(gui.text_context, PANGO_DIRECTION_LTR); 2936 pango_context_set_base_dir(gui.text_context, PANGO_DIRECTION_LTR);
2937 2937
2938 if (gui.norm_font != NULL) 2938 if (gui.norm_font != NULL)
2939 { 2939 {
2940 gui_mch_init_font(p_guifont, FALSE); 2940 gui_mch_init_font(p_guifont, FALSE);
2941 gui_set_shellsize(FALSE, FALSE, RESIZE_BOTH); 2941 gui_set_shellsize(TRUE, FALSE, RESIZE_BOTH);
2942 } 2942 }
2943 } 2943 }
2944 2944
2945 /* 2945 /*
2946 * After the drawing area comes up, we calculate all colors and create the 2946 * After the drawing area comes up, we calculate all colors and create the
4907 if (gui.mainwin != NULL) 4907 if (gui.mainwin != NULL)
4908 gtk_window_unmaximize(GTK_WINDOW(gui.mainwin)); 4908 gtk_window_unmaximize(GTK_WINDOW(gui.mainwin));
4909 } 4909 }
4910 4910
4911 /* 4911 /*
4912 * Called when the font changed while the window is maximized. Compute the 4912 * Called when the font changed while the window is maximized or GO_KEEPWINSIZE
4913 * new Rows and Columns. This is like resizing the window. 4913 * is set. Compute the new Rows and Columns. This is like resizing the
4914 * window.
4914 */ 4915 */
4915 void 4916 void
4916 gui_mch_newfont(void) 4917 gui_mch_newfont(void)
4917 { 4918 {
4918 int w, h; 4919 int w, h;