From 57d3b559648c3674a64a8031d30456c69cb29eae Mon Sep 17 00:00:00 2001 From: Huang Peng Date: Mon, 16 Feb 2009 13:26:55 +0800 Subject: [PATCH] Use guint to replace gint for state argument of property_activate method. --- src/ibusengine.c | 9 +++++---- src/ibusengine.h | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/ibusengine.c b/src/ibusengine.c index dbeb091c..27fc71ea 100644 --- a/src/ibusengine.c +++ b/src/ibusengine.c @@ -101,7 +101,7 @@ static void ibus_engine_cursor_down (IBusEngine *engine); static void ibus_engine_property_activate (IBusEngine *engine, const gchar *prop_name, - gint prop_state); + guint prop_state); static void ibus_engine_property_show (IBusEngine *engine, const gchar *prop_name); static void ibus_engine_property_hide (IBusEngine *engine, @@ -550,7 +550,7 @@ ibus_engine_ibus_message (IBusEngine *engine, retval = ibus_message_get_args (message, &error, G_TYPE_STRING, &name, - G_TYPE_INT, &state, + G_TYPE_UINT, &state, G_TYPE_INVALID); if (!retval) @@ -803,8 +803,9 @@ ibus_engine_cursor_down (IBusEngine *engine) } static void -ibus_engine_property_activate (IBusEngine *engine, - const gchar *prop_name, gint prop_state) +ibus_engine_property_activate (IBusEngine *engine, + const gchar *prop_name, + guint prop_state) { // g_debug ("property-activate ('%s', %d)", prop_name, prop_state); } diff --git a/src/ibusengine.h b/src/ibusengine.h index 0a827af2..1a35c06f 100644 --- a/src/ibusengine.h +++ b/src/ibusengine.h @@ -91,7 +91,7 @@ struct _IBusEngineClass { void (* property_activate) (IBusEngine *engine, const gchar *prop_name, - gint prop_state); + guint prop_state); void (* property_show) (IBusEngine *engine, const gchar *prop_name); void (* property_hide) (IBusEngine *engine, -- 2.34.1