diff options
author | Owen Taylor <otaylor@redhat.com> | 2001-03-26 20:35:21 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2001-03-26 20:35:21 +0000 |
commit | cf41369b5b0f7898cb9c49a35dfb8febd7aef364 (patch) | |
tree | e19c908cd5765e12e9d7b93e0f35206f90a8c2df /gtk/gtkimcontext.h | |
parent | b21ea0e1b26176b7090a3d55463ad8e303c899a2 (diff) | |
download | gdk-pixbuf-cf41369b5b0f7898cb9c49a35dfb8febd7aef364.tar.gz |
Add a virtual function to set whether the IM context should use the
Mon Mar 26 15:26:17 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkimcontext.c (gtk_im_context_set_use_preedit): Add
a virtual function to set whether the IM context should use
the preedit string. (#51922)
Diffstat (limited to 'gtk/gtkimcontext.h')
-rw-r--r-- | gtk/gtkimcontext.h | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/gtk/gtkimcontext.h b/gtk/gtkimcontext.h index 3f8ea707f..a31e8542f 100644 --- a/gtk/gtkimcontext.h +++ b/gtk/gtkimcontext.h @@ -56,19 +56,21 @@ struct _GtkIMContextClass void (*commit) (GtkIMContext *context, const gchar *str); /* Virtual functions */ - void (*set_client_window) (GtkIMContext *context, - GdkWindow *window); - void (*get_preedit_string) (GtkIMContext *context, - gchar **str, - PangoAttrList **attrs, - gint *cursor_pos); - gboolean (*filter_keypress) (GtkIMContext *context, - GdkEventKey *event); - void (*focus_in) (GtkIMContext *context); - void (*focus_out) (GtkIMContext *context); - void (*reset) (GtkIMContext *context); + void (*set_client_window) (GtkIMContext *context, + GdkWindow *window); + void (*get_preedit_string) (GtkIMContext *context, + gchar **str, + PangoAttrList **attrs, + gint *cursor_pos); + gboolean (*filter_keypress) (GtkIMContext *context, + GdkEventKey *event); + void (*focus_in) (GtkIMContext *context); + void (*focus_out) (GtkIMContext *context); + void (*reset) (GtkIMContext *context); void (*set_cursor_location) (GtkIMContext *context, - GdkRectangle *area); + GdkRectangle *area); + void (*set_use_preedit) (GtkIMContext *context, + gboolean use_preedit); }; GtkType gtk_im_context_get_type (void) G_GNUC_CONST; @@ -86,7 +88,8 @@ void gtk_im_context_focus_out (GtkIMContext *context); void gtk_im_context_reset (GtkIMContext *context); void gtk_im_context_set_cursor_location (GtkIMContext *context, GdkRectangle *area); - +void gtk_im_context_set_use_preedit (GtkIMContext *context, + gboolean use_preedit); #ifdef __cplusplus } #endif /* __cplusplus */ |