diff options
author | Peng Huang <phuang@phuang.nay.redhat.com> | 2009-02-10 17:30:27 +0800 |
---|---|---|
committer | Peng Huang <phuang@phuang.nay.redhat.com> | 2009-02-10 17:30:27 +0800 |
commit | 1e931b56967fd7f589fab3c8081b3bdf13c49f1a (patch) | |
tree | 6cff73a56271fd31f6687f48acd42638ad32cd06 /src/ibushotkey.c | |
parent | b12ce003bc273f678b5249399e515ff78af1a582 (diff) | |
download | ibus-1e931b56967fd7f589fab3c8081b3bdf13c49f1a.tar.gz ibus-1e931b56967fd7f589fab3c8081b3bdf13c49f1a.tar.xz ibus-1e931b56967fd7f589fab3c8081b3bdf13c49f1a.zip |
Fix compile warnings.
Diffstat (limited to 'src/ibushotkey.c')
-rw-r--r-- | src/ibushotkey.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ibushotkey.c b/src/ibushotkey.c index 16aad70..eca7666 100644 --- a/src/ibushotkey.c +++ b/src/ibushotkey.c @@ -344,7 +344,7 @@ ibus_hotkey_profile_add_hotkey (IBusHotkeyProfile *profile, g_return_val_if_reached (FALSE); } - g_tree_insert (priv->hotkeys, hotkey, (gpointer)event); + g_tree_insert (priv->hotkeys, (gpointer) hotkey, GUINT_TO_POINTER (event)); gint i; IBusHotkeyEvent *p = NULL; @@ -469,7 +469,7 @@ ibus_hotkey_profile_filter_key_event (IBusHotkeyProfile *profile, modifiers : modifiers & priv->mask, }; - GQuark event = (GQuark) g_tree_lookup (priv->hotkeys, &hotkey); + GQuark event = (GQuark) GPOINTER_TO_UINT (g_tree_lookup (priv->hotkeys, &hotkey)); if (event != 0) { g_signal_emit (profile, profile_signals[TRIGGER], event, event, user_data); |