From 3b3f6ac869f364a09233f9d2ef963a4fe6899484 Mon Sep 17 00:00:00 2001 From: Peng Huang Date: Tue, 28 Apr 2009 15:36:12 +0800 Subject: [PATCH] Fix wrong args of trigger signal callbacks --- src/ibushotkey.c | 6 ++++-- src/ibushotkey.h | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/ibushotkey.c b/src/ibushotkey.c index 91eab97..886ee32 100644 --- a/src/ibushotkey.c +++ b/src/ibushotkey.c @@ -72,7 +72,8 @@ static gboolean ibus_hotkey_profile_deserialize(IBusHotkeyProfile *pro static gboolean ibus_hotkey_profile_copy (IBusHotkeyProfile *dest, const IBusHotkeyProfile*src); static void ibus_hotkey_profile_trigger (IBusHotkeyProfile *profile, - GQuark event); + GQuark event, + gpointer user_data); static IBusSerializableClass *parent_class = NULL; @@ -322,7 +323,8 @@ ibus_hotkey_profile_new (void) static void ibus_hotkey_profile_trigger (IBusHotkeyProfile *profile, - GQuark event) + GQuark event, + gpointer user_data) { // g_debug ("%s is triggerred", g_quark_to_string (event)); } diff --git a/src/ibushotkey.h b/src/ibushotkey.h index 03331dd..1597537 100644 --- a/src/ibushotkey.h +++ b/src/ibushotkey.h @@ -54,7 +54,8 @@ struct _IBusHotkeyProfileClass { IBusSerializableClass parent; void (* trigger) (IBusHotkeyProfile *profile, - GQuark event); + GQuark event, + gpointer user_data); }; /* hotkey profile functions */ -- 2.7.4