comparison src/gui.c @ 261:2a5dcaea719a

updated for version 7.0071
author vimboss
date Sun, 24 Apr 2005 21:59:46 +0000
parents 4707450c2b33
children 2463194c8cdd
comparison
equal deleted inserted replaced
260:ed33f83b42d8 261:2a5dcaea719a
537 init_gui_options(); 537 init_gui_options();
538 #ifdef FEAT_ARABIC 538 #ifdef FEAT_ARABIC
539 /* Our GUI can't do bidi. */ 539 /* Our GUI can't do bidi. */
540 p_tbidi = FALSE; 540 p_tbidi = FALSE;
541 #endif 541 #endif
542 #if defined FEAT_GUI_GTK || defined FEAT_GUI_KDE 542 #if defined(FEAT_GUI_GTK) || defined(FEAT_GUI_KDE)
543 /* Give GTK+ a chance to put all widget's into place. */ 543 /* Give GTK+ a chance to put all widget's into place. */
544 gui_mch_update(); 544 gui_mch_update();
545 /* Now make sure the shell fits on the screen. */ 545 /* Now make sure the shell fits on the screen. */
546 gui_set_shellsize(FALSE, TRUE); 546 gui_set_shellsize(FALSE, TRUE);
547 #endif 547 #endif
548 /* When 'lines' was set while starting up the topframe may have to be
549 * resized. */
550 win_new_shellsize();
548 551
549 #ifdef FEAT_BEVAL 552 #ifdef FEAT_BEVAL
550 /* Always create the Balloon Evaluation area, but disable it when 553 /* Always create the Balloon Evaluation area, but disable it when
551 * 'ballooneval' is off */ 554 * 'ballooneval' is off */
552 # ifdef FEAT_GUI_GTK 555 # ifdef FEAT_GUI_GTK
4179 return; /* still in the same old window, or none at all */ 4182 return; /* still in the same old window, or none at all */
4180 4183
4181 /* 4184 /*
4182 * format a mouse click on status line input 4185 * format a mouse click on status line input
4183 * ala gui_send_mouse_event(0, x, y, 0, 0); 4186 * ala gui_send_mouse_event(0, x, y, 0, 0);
4184 * Trick: Use a column of -1, so that check_termcode will generate a 4187 * Trick: Use a column number -1, so that get_pseudo_mouse_code() will
4185 * K_LEFTMOUSE_NM key code. 4188 * generate a K_LEFTMOUSE_NM key code.
4186 */ 4189 */
4187 if (finish_op) 4190 if (finish_op)
4188 { 4191 {
4189 /* abort the current operator first */ 4192 /* abort the current operator first */
4190 st[0] = ESC; 4193 st[0] = ESC;
4194 st[1] = KS_MOUSE; 4197 st[1] = KS_MOUSE;
4195 st[2] = KE_FILLER; 4198 st[2] = KE_FILLER;
4196 st[3] = (char_u)MOUSE_LEFT; 4199 st[3] = (char_u)MOUSE_LEFT;
4197 fill_mouse_coord(st + 4, 4200 fill_mouse_coord(st + 4,
4198 #ifdef FEAT_VERTSPLIT 4201 #ifdef FEAT_VERTSPLIT
4199 W_WINCOL(wp), 4202 wp->w_wincol == 0 ? -1 : wp->w_wincol + MOUSE_COLOFF,
4200 #else 4203 #else
4201 -1, 4204 -1,
4202 #endif 4205 #endif
4203 wp->w_height + W_WINROW(wp)); 4206 wp->w_height + W_WINROW(wp));
4204 4207