summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHuang Peng <shawn.p.huang@gmail.com>2009-02-16 13:26:55 +0800
committerHuang Peng <shawn.p.huang@gmail.com>2009-02-16 13:26:55 +0800
commit57d3b559648c3674a64a8031d30456c69cb29eae (patch)
treedb94bbca0d3554a32f156924e4ebe943821f22bd /src
parent0228a5cf757e59fda62e32cfd91282b74d258605 (diff)
downloadibus-57d3b559648c3674a64a8031d30456c69cb29eae.tar.gz
ibus-57d3b559648c3674a64a8031d30456c69cb29eae.tar.xz
ibus-57d3b559648c3674a64a8031d30456c69cb29eae.zip
Use guint to replace gint for state argument of property_activate
method.
Diffstat (limited to 'src')
-rw-r--r--src/ibusengine.c9
-rw-r--r--src/ibusengine.h2
2 files changed, 6 insertions, 5 deletions
diff --git a/src/ibusengine.c b/src/ibusengine.c
index dbeb091..27fc71e 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 0a827af..1a35c06 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,