diff options
author | Huang Peng <shawn.p.huang@gmail.com> | 2008-09-16 16:52:15 +0800 |
---|---|---|
committer | Huang Peng <shawn.p.huang@gmail.com> | 2008-09-16 16:52:15 +0800 |
commit | e528c0fd57d7afd37c6e5d27c535689bd56fd8b2 (patch) | |
tree | 2915896afc5f66956156e2ee581c4e45c632dac2 /client/gtk2/ibusimcontext.c | |
parent | 2440d29dc75cf21a0a21fe7f2ad36a345941d917 (diff) | |
download | ibus-e528c0fd57d7afd37c6e5d27c535689bd56fd8b2.tar.gz ibus-e528c0fd57d7afd37c6e5d27c535689bd56fd8b2.tar.xz ibus-e528c0fd57d7afd37c6e5d27c535689bd56fd8b2.zip |
Don't use send_event field in GdkEventKey. And fixed some compile warnings.
Diffstat (limited to 'client/gtk2/ibusimcontext.c')
-rw-r--r-- | client/gtk2/ibusimcontext.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/client/gtk2/ibusimcontext.c b/client/gtk2/ibusimcontext.c index c85c346..c42cc02 100644 --- a/client/gtk2/ibusimcontext.c +++ b/client/gtk2/ibusimcontext.c @@ -52,7 +52,6 @@ static guint _signal_preedit_end_id = 0; static guint _signal_delete_surrounding_id = 0; static guint _signal_retrieve_surrounding_id = 0; - /* functions prototype */ static void ibus_im_context_class_init (IBusIMContextClass *klass); static void ibus_im_context_init (IBusIMContext *obj); @@ -156,13 +155,13 @@ ibus_im_context_get_type (void) return _ibus_type_im_context; } -GtkIMContext * +IBusIMContext * ibus_im_context_new (void) { IBusIMContext *obj; obj = IBUS_IM_CONTEXT(g_object_new (IBUS_TYPE_IM_CONTEXT, NULL)); - return GTK_IM_CONTEXT(obj); + return obj; } static void @@ -529,7 +528,6 @@ _client_forward_event_cb (IBusIMClient *client, const gchar *ic, GdkEvent *event IBusIMContext *context = g_hash_table_lookup (_ic_table, ic); g_return_if_fail (context != NULL); - event->any.send_event = TRUE; if (event->type == GDK_KEY_PRESS || event->type == GDK_KEY_RELEASE) { /* |