From 1e931b56967fd7f589fab3c8081b3bdf13c49f1a Mon Sep 17 00:00:00 2001 From: Peng Huang Date: Tue, 10 Feb 2009 17:30:27 +0800 Subject: Fix compile warnings. --- src/ibushotkey.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ibushotkey.c') 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); -- cgit