diff options
author | Huang Peng <shawn.p.huang@gmail.com> | 2009-03-09 17:21:45 +0800 |
---|---|---|
committer | Huang Peng <shawn.p.huang@gmail.com> | 2009-03-09 17:21:45 +0800 |
commit | 21b79630873c79ced591cf5e909660cf4c1bda69 (patch) | |
tree | ad1cd539a7ff1d6ad8b0e836492a79482f92846e /bus | |
parent | a1ac8682c81051518ad0ff613958a0b96054091c (diff) | |
download | ibus-21b79630873c79ced591cf5e909660cf4c1bda69.tar.gz ibus-21b79630873c79ced591cf5e909660cf4c1bda69.tar.xz ibus-21b79630873c79ced591cf5e909660cf4c1bda69.zip |
Implement ibus_bus_get_config function.
Diffstat (limited to 'bus')
-rw-r--r-- | bus/dbusimpl.c | 17 | ||||
-rw-r--r-- | bus/matchrule.c | 3 |
2 files changed, 16 insertions, 4 deletions
diff --git a/bus/dbusimpl.c b/bus/dbusimpl.c index 3cc51dc..f51ab96 100644 --- a/bus/dbusimpl.c +++ b/bus/dbusimpl.c @@ -829,6 +829,16 @@ _connection_ibus_message_cb (BusConnection *connection, break; #endif #if 0 + case DBUS_MESSAGE_TYPE_SIGNAL: + g_debug ("From :%s to %s, Signal: %s @ %s", + ibus_message_get_sender (message), + ibus_message_get_destination (message), + ibus_message_get_member (message), + ibus_message_get_path (message) + ); + break; +#endif +#if 0 case DBUS_MESSAGE_TYPE_METHOD_CALL: g_debug("From %s to %s, Method %s on %s", ibus_message_get_sender (message), @@ -1068,10 +1078,9 @@ bus_dbus_impl_dispatch_message_by_rule (BusDBusImpl *dbus, #endif for (link = dbus->rules; link != NULL; link = link->next) { - recipients = bus_match_rule_get_recipients (BUS_MATCH_RULE (link->data), - message); - if (recipients != NULL) - break; + GList *list = bus_match_rule_get_recipients (BUS_MATCH_RULE (link->data), + message); + recipients = g_list_concat (recipients, list); } for (link = recipients; link != NULL; link = link->next) { diff --git a/bus/matchrule.c b/bus/matchrule.c index f40147a..039602e 100644 --- a/bus/matchrule.c +++ b/bus/matchrule.c @@ -270,6 +270,8 @@ bus_match_rule_new (const gchar *text) { g_assert (text != NULL); + g_debug ("new rule=%s", text); + Token *tokens, *p; BusMatchRule *rule; @@ -499,6 +501,7 @@ bus_match_rule_match (BusMatchRule *rule, ibus_message_iter_next (&iter); } } + return TRUE; } |