summaryrefslogtreecommitdiff
path: root/gtk/gtkimcontext.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-05-28 16:10:54 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-05-28 17:08:33 -0400
commit506d73cf327d9b34a137b3c6dd537f794e36877f (patch)
treed481af57d1bb5c2a28746ab5a6dadf426a03c51b /gtk/gtkimcontext.h
parent266a3a5267e5ba043912291879731f14b54a3e6b (diff)
downloadgtk+-506d73cf327d9b34a137b3c6dd537f794e36877f.tar.gz
Add gtk_im_context_filter_key
An event-less variant of the filtering api.
Diffstat (limited to 'gtk/gtkimcontext.h')
-rw-r--r--gtk/gtkimcontext.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/gtk/gtkimcontext.h b/gtk/gtkimcontext.h
index 33b41d5895..fee5cf2046 100644
--- a/gtk/gtkimcontext.h
+++ b/gtk/gtkimcontext.h
@@ -106,7 +106,18 @@ void gtk_im_context_get_preedit_string (GtkIMContext *context,
gint *cursor_pos);
GDK_AVAILABLE_IN_ALL
gboolean gtk_im_context_filter_keypress (GtkIMContext *context,
- GdkEvent *event);
+ GdkEvent *event);
+
+GDK_AVAILABLE_IN_ALL
+gboolean gtk_im_context_filter_key (GtkIMContext *context,
+ gboolean press,
+ GdkSurface *surface,
+ GdkDevice *device,
+ guint32 time,
+ guint keycode,
+ GdkModifierType state,
+ int group);
+
GDK_AVAILABLE_IN_ALL
void gtk_im_context_focus_in (GtkIMContext *context);
GDK_AVAILABLE_IN_ALL