comparison src/gui.c @ 276:b15976488069

updated for version 7.0074
author vimboss
date Fri, 20 May 2005 21:22:17 +0000
parents 2463194c8cdd
children 77f5bac52921
comparison
equal deleted inserted replaced
275:fb70e333c94e 276:b15976488069
3240 gui_mch_toggle_tearoffs(using_tearoff); 3240 gui_mch_toggle_tearoffs(using_tearoff);
3241 prev_tearoff = using_tearoff; 3241 prev_tearoff = using_tearoff;
3242 } 3242 }
3243 #endif 3243 #endif
3244 if (need_set_size) 3244 if (need_set_size)
3245 {
3246 #ifdef FEAT_GUI_GTK
3247 long r = Rows;
3248 long c = Columns;
3249 #endif
3245 /* Adjust the size of the window to make the text area keep the 3250 /* Adjust the size of the window to make the text area keep the
3246 * same size and to avoid that part of our window is off-screen 3251 * same size and to avoid that part of our window is off-screen
3247 * and a scrollbar can't be used, for example. */ 3252 * and a scrollbar can't be used, for example. */
3248 gui_set_shellsize(FALSE, fix_size); 3253 gui_set_shellsize(FALSE, fix_size);
3254
3255 #ifdef FEAT_GUI_GTK
3256 /* GTK has the annoying habit of sending us resize events when
3257 * changing the window size ourselves. This mostly happens when
3258 * waiting for a character to arrive, quite unpredictably, and may
3259 * change Columns and Rows when we don't want it. Wait for a
3260 * character here to avoid this effect.
3261 * If you remove this, please test this command for resizing
3262 * effects: ":vsp|q|vsp|q|vsp|q" */
3263 (void)char_avail();
3264 Rows = r;
3265 Columns = c;
3266 #endif
3267 }
3249 } 3268 }
3250 } 3269 }
3251 3270
3252 3271
3253 /* 3272 /*