comparison src/mbyte.c @ 42:c75153d791d0

updated for version 7.0026
author vimboss
date Wed, 29 Dec 2004 20:58:21 +0000
parents f529edb9bab3
children 04f2e519ab18
comparison
equal deleted inserted replaced
41:f529edb9bab3 42:c75153d791d0
4339 #endif 4339 #endif
4340 } 4340 }
4341 } 4341 }
4342 } 4342 }
4343 4343
4344 #ifndef FEAT_GUI_KDE
4344 /*ARGSUSED*/ 4345 /*ARGSUSED*/
4345 void 4346 void
4346 im_set_position(row, col) 4347 im_set_position(row, col)
4347 int row; 4348 int row;
4348 int col; 4349 int col;
4349 { 4350 {
4350 xim_set_preedit(); 4351 xim_set_preedit();
4351 } 4352 }
4353 #endif
4352 4354
4353 /* 4355 /*
4354 * Set the XIM to the current cursor position. 4356 * Set the XIM to the current cursor position.
4355 */ 4357 */
4356 void 4358 void
4640 } 4642 }
4641 # endif /* FEAT_GUI_KDE */ 4643 # endif /* FEAT_GUI_KDE */
4642 #endif 4644 #endif
4643 } 4645 }
4644 4646
4645 #if defined(FEAT_GUI_X11) || defined(FEAT_GUI_GTK) 4647 #if defined(FEAT_GUI_X11) || defined(FEAT_GUI_GTK) || defined(FEAT_GUI_KDE)
4646 static char e_xim[] = N_("E285: Failed to create input context"); 4648 static char e_xim[] = N_("E285: Failed to create input context");
4647 #endif 4649 #endif
4648 4650
4649 #if defined(FEAT_GUI_X11) || defined(PROTO) 4651 #if defined(FEAT_GUI_X11) || defined(PROTO)
4650 # if defined(XtSpecificationRelease) && XtSpecificationRelease >= 6 && !defined(sun) 4652 # if defined(XtSpecificationRelease) && XtSpecificationRelease >= 6 && !defined(sun)
5412 { 5414 {
5413 #ifdef FEAT_GUI_GTK 5415 #ifdef FEAT_GUI_GTK
5414 if (xim_input_style & (int)GDK_IM_STATUS_AREA) 5416 if (xim_input_style & (int)GDK_IM_STATUS_AREA)
5415 return gui.char_height; 5417 return gui.char_height;
5416 #elif defined FEAT_GUI_KDE 5418 #elif defined FEAT_GUI_KDE
5417 #warning FIXME 5419 /* always return zero? */
5418 #else 5420 #else
5419 if (status_area_enabled) 5421 if (status_area_enabled)
5420 return gui.char_height; 5422 return gui.char_height;
5421 #endif 5423 #endif
5422 return 0; 5424 return 0;
5432 im_get_status() 5434 im_get_status()
5433 { 5435 {
5434 # ifdef FEAT_GUI_GTK 5436 # ifdef FEAT_GUI_GTK
5435 if (xim_input_style & (int)GDK_IM_PREEDIT_CALLBACKS) 5437 if (xim_input_style & (int)GDK_IM_PREEDIT_CALLBACKS)
5436 return xim_can_preediting; 5438 return xim_can_preediting;
5439 # endif
5440 # ifdef FEAT_GUI_KDE
5441 if (preedit_start_col != MAXCOL)
5442 return TRUE;
5437 # endif 5443 # endif
5438 return xim_has_focus; 5444 return xim_has_focus;
5439 } 5445 }
5440 5446
5441 # endif /* !HAVE_GTK2 */ 5447 # endif /* !HAVE_GTK2 */