comparison src/gui.c @ 797:a1a08851eac8

updated for version 7.0232
author vimboss
date Thu, 23 Mar 2006 22:47:08 +0000
parents b5aed52a4881
children 9f345c48220b
comparison
equal deleted inserted replaced
796:cc3902a09300 797:a1a08851eac8
3201 /* Update the GUI tab line, it may appear or disappear. This may 3201 /* Update the GUI tab line, it may appear or disappear. This may
3202 * cause the non-GUI tab line to disappear or appear. */ 3202 * cause the non-GUI tab line to disappear or appear. */
3203 using_tabline = gui_has_tabline(); 3203 using_tabline = gui_has_tabline();
3204 if (!gui_mch_showing_tabline() != !using_tabline) 3204 if (!gui_mch_showing_tabline() != !using_tabline)
3205 { 3205 {
3206 /* We don't want a resize event change "Rows" here, save and
3207 * restore it. Resizing is handled below. */
3208 i = Rows;
3206 gui_update_tabline(); 3209 gui_update_tabline();
3210 Rows = i;
3207 need_set_size = TRUE; 3211 need_set_size = TRUE;
3208 if (using_tabline) 3212 if (using_tabline)
3209 fix_size = TRUE; 3213 fix_size = TRUE;
3210 if (!gui_use_tabline()) 3214 if (!gui_use_tabline())
3211 redraw_tabline = TRUE; /* may draw non-GUI tab line */ 3215 redraw_tabline = TRUE; /* may draw non-GUI tab line */
3352 */ 3356 */
3353 void 3357 void
3354 gui_update_tabline() 3358 gui_update_tabline()
3355 { 3359 {
3356 int showit = gui_has_tabline(); 3360 int showit = gui_has_tabline();
3361 int shown = gui_mch_showing_tabline();
3357 3362
3358 if (!gui.starting && starting == 0) 3363 if (!gui.starting && starting == 0)
3359 { 3364 {
3360 gui_mch_show_tabline(showit); 3365 if (!showit != !shown)
3366 gui_mch_show_tabline(showit);
3361 if (showit != 0) 3367 if (showit != 0)
3362 gui_mch_update_tabline(); 3368 gui_mch_update_tabline();
3369
3370 /* When the tabs change from hidden to shown or from shown to
3371 * hidden the size of the text area should remain the same. */
3372 if (!showit != !shown)
3373 gui_set_shellsize(FALSE, showit);
3363 } 3374 }
3364 } 3375 }
3365 3376
3366 /* 3377 /*
3367 * Get the label for tab page "tp" into NameBuff[]. 3378 * Get the label for tab page "tp" into NameBuff[].