add set_cursor_pos() virtual method
2001-03-14 HideToshi Tajima <tajima@happy.sunsoft.eng.sun.com> * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_pos): * gtk/gtkimcontext.c (gtk_im_context_set_cursor_pos): * gtk/gtkimcontext.h (struct _GtkIMContextClass): add set_cursor_pos() virtual method * modules/input/gtkimcontextxim.c (gtk_im_context_xim_class_init): (gtk_im_context_xim_set_cursor_pos): add implementation for set_cursor_pos() method * gtk/gtkentry.c (recompute_idle_func): set current cursor position to input methods
This commit is contained in:
committed by
Hidetoshi Tajima
parent
cf89a05f07
commit
02f376a91f
@ -284,3 +284,24 @@ gtk_im_context_reset (GtkIMContext *context)
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* gtk_im_context_set_cursor_pos:
|
||||
* @context: a #GtkIMContext
|
||||
*
|
||||
* Notify the input method that a change in cursor
|
||||
* position has been made.
|
||||
**/
|
||||
void
|
||||
gtk_im_context_set_cursor_pos (GtkIMContext *context,
|
||||
GdkRectangle *area)
|
||||
{
|
||||
GtkIMContextClass *klass;
|
||||
|
||||
g_return_if_fail (context != NULL);
|
||||
g_return_if_fail (GTK_IS_IM_CONTEXT (context));
|
||||
|
||||
klass = GTK_IM_CONTEXT_GET_CLASS (context);
|
||||
if (klass->set_cursor_pos)
|
||||
klass->set_cursor_pos (context, area);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user