diff options
author | HideToshi Tajima <tajima@happy.sunsoft.eng.sun.com> | 2001-03-14 22:03:24 +0000 |
---|---|---|
committer | Hidetoshi Tajima <tajima@src.gnome.org> | 2001-03-14 22:03:24 +0000 |
commit | 02f376a91fcc7c4a1e0600bea8fcca07f5fb1c98 (patch) | |
tree | 17dba998f725edbe35dc33f91dc5cc76a066dda6 /gtk/gtkimcontext.h | |
parent | cf89a05f075bfd3207266cb4fd9f3d5948f3857d (diff) | |
download | gtk+-02f376a91fcc7c4a1e0600bea8fcca07f5fb1c98.tar.gz |
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
Diffstat (limited to 'gtk/gtkimcontext.h')
-rw-r--r-- | gtk/gtkimcontext.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkimcontext.h b/gtk/gtkimcontext.h index 6435c4eaf8..b3067ebd2d 100644 --- a/gtk/gtkimcontext.h +++ b/gtk/gtkimcontext.h @@ -67,6 +67,8 @@ struct _GtkIMContextClass void (*focus_in) (GtkIMContext *context); void (*focus_out) (GtkIMContext *context); void (*reset) (GtkIMContext *context); + void (*set_cursor_pos) (GtkIMContext *context, + GdkRectangle *area); }; GtkType gtk_im_context_get_type (void) G_GNUC_CONST; @@ -82,6 +84,8 @@ gboolean gtk_im_context_filter_keypress (GtkIMContext *context, void gtk_im_context_focus_in (GtkIMContext *context); void gtk_im_context_focus_out (GtkIMContext *context); void gtk_im_context_reset (GtkIMContext *context); +void gtk_im_context_set_cursor_pos (GtkIMContext *context, + GdkRectangle *area); #ifdef __cplusplus } |