Mercurial > vim
comparison src/gui.c @ 669:b945c6d9f3c7
updated for version 7.0198
author | vimboss |
---|---|
date | Wed, 15 Feb 2006 22:12:56 +0000 |
parents | ce5a759cc907 |
children | 4b8583e82cb8 |
comparison
equal
deleted
inserted
replaced
668:a29f98030753 | 669:b945c6d9f3c7 |
---|---|
1290 #if defined(FEAT_XIM) && !defined(HAVE_GTK2) | 1290 #if defined(FEAT_XIM) && !defined(HAVE_GTK2) |
1291 xim_set_status_area(); | 1291 xim_set_status_area(); |
1292 #endif | 1292 #endif |
1293 | 1293 |
1294 busy = FALSE; | 1294 busy = FALSE; |
1295 | |
1295 /* | 1296 /* |
1296 * We could have been called again while redrawing the screen. | 1297 * We could have been called again while redrawing the screen. |
1297 * Need to do it all again with the latest size then. | 1298 * Need to do it all again with the latest size then. |
1298 */ | 1299 */ |
1299 if (new_pixel_height) | 1300 if (new_pixel_height) |
1403 gui.num_cols = Columns; | 1404 gui.num_cols = Columns; |
1404 gui.num_rows = Rows; | 1405 gui.num_rows = Rows; |
1405 | 1406 |
1406 min_width = base_width + MIN_COLUMNS * gui.char_width; | 1407 min_width = base_width + MIN_COLUMNS * gui.char_width; |
1407 min_height = base_height + MIN_LINES * gui.char_height; | 1408 min_height = base_height + MIN_LINES * gui.char_height; |
1409 # ifdef FEAT_WINDOWS | |
1410 min_height += tabpageline_height() * gui.char_height; | |
1411 # endif | |
1408 | 1412 |
1409 gui_mch_set_shellsize(width, height, min_width, min_height, | 1413 gui_mch_set_shellsize(width, height, min_width, min_height, |
1410 base_width, base_height); | 1414 base_width, base_height); |
1411 if (fit_to_display) | 1415 if (fit_to_display) |
1412 { | 1416 { |
3068 add_long_to_buf((long_u)menu, bytes); | 3072 add_long_to_buf((long_u)menu, bytes); |
3069 add_to_input_buf_csi(bytes, sizeof(long_u)); | 3073 add_to_input_buf_csi(bytes, sizeof(long_u)); |
3070 } | 3074 } |
3071 #endif | 3075 #endif |
3072 | 3076 |
3077 static int prev_which_scrollbars[3] = {-1, -1, -1}; | |
3078 | |
3073 /* | 3079 /* |
3074 * Set which components are present. | 3080 * Set which components are present. |
3075 * If "oldval" is not NULL, "oldval" is the previous value, the new * value is | 3081 * If "oldval" is not NULL, "oldval" is the previous value, the new * value is |
3076 * in p_go. | 3082 * in p_go. |
3077 */ | 3083 */ |
3078 /*ARGSUSED*/ | 3084 /*ARGSUSED*/ |
3079 void | 3085 void |
3080 gui_init_which_components(oldval) | 3086 gui_init_which_components(oldval) |
3081 char_u *oldval; | 3087 char_u *oldval; |
3082 { | 3088 { |
3083 static int prev_which_scrollbars[3] = {-1, -1, -1}; | |
3084 #ifdef FEAT_MENU | 3089 #ifdef FEAT_MENU |
3085 static int prev_menu_is_active = -1; | 3090 static int prev_menu_is_active = -1; |
3086 #endif | 3091 #endif |
3087 #ifdef FEAT_TOOLBAR | 3092 #ifdef FEAT_TOOLBAR |
3088 static int prev_toolbar = -1; | 3093 static int prev_toolbar = -1; |
3275 | 3280 |
3276 | 3281 |
3277 /* | 3282 /* |
3278 * Scrollbar stuff: | 3283 * Scrollbar stuff: |
3279 */ | 3284 */ |
3285 | |
3286 #if defined(FEAT_WINDOWS) || defined(PROTO) | |
3287 /* | |
3288 * Remove all scrollbars. Used before switching to another tab page. | |
3289 */ | |
3290 void | |
3291 gui_remove_scrollbars() | |
3292 { | |
3293 int i; | |
3294 win_T *wp; | |
3295 | |
3296 for (i = 0; i < 3; i++) | |
3297 { | |
3298 if (i == SBAR_BOTTOM) | |
3299 gui_mch_enable_scrollbar(&gui.bottom_sbar, FALSE); | |
3300 else | |
3301 { | |
3302 FOR_ALL_WINDOWS(wp) | |
3303 { | |
3304 gui_do_scrollbar(wp, i, FALSE); | |
3305 } | |
3306 } | |
3307 prev_which_scrollbars[i] = -1; | |
3308 } | |
3309 } | |
3310 #endif | |
3280 | 3311 |
3281 void | 3312 void |
3282 gui_create_scrollbar(sb, type, wp) | 3313 gui_create_scrollbar(sb, type, wp) |
3283 scrollbar_T *sb; | 3314 scrollbar_T *sb; |
3284 int type; | 3315 int type; |