summaryrefslogtreecommitdiff
path: root/src/wkb-ibus-config-key.c
diff options
context:
space:
mode:
authorEduardo Lima (Etrunko) <eduardo.lima@intel.com>2013-09-25 17:11:00 -0300
committerEduardo Lima (Etrunko) <eduardo.lima@intel.com>2013-09-26 17:33:24 -0300
commit42f807fa4ca7311bc62e52cadd795963ffb248b0 (patch)
tree1bf25d27df6b5e29cf5302cc2685762fc26437d8 /src/wkb-ibus-config-key.c
parent54d18acbfc6465347df1c84b87671c2da6d2ae58 (diff)
downloadweekeyboard-42f807fa4ca7311bc62e52cadd795963ffb248b0.tar.gz
weekeyboard-42f807fa4ca7311bc62e52cadd795963ffb248b0.tar.bz2
weekeyboard-42f807fa4ca7311bc62e52cadd795963ffb248b0.zip
Add implementation of string_list_key_get()
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
Diffstat (limited to 'src/wkb-ibus-config-key.c')
-rw-r--r--src/wkb-ibus-config-key.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/wkb-ibus-config-key.c b/src/wkb-ibus-config-key.c
index 9542d0a..1010388 100644
--- a/src/wkb-ibus-config-key.c
+++ b/src/wkb-ibus-config-key.c
@@ -162,7 +162,18 @@ _key_string_list_set(struct wkb_config_key *key, Eldbus_Message_Iter *iter)
static Eina_Bool
_key_string_list_get(struct wkb_config_key *key, Eldbus_Message_Iter *reply)
{
- return EINA_FALSE;
+ Eina_List *node, **list = (Eina_List **) key->field;
+ const char *str;
+ Eldbus_Message_Iter *array;
+
+ array = eldbus_message_iter_container_new(reply, 'a', "s");
+
+ EINA_LIST_FOREACH(*list, node, str)
+ eldbus_message_iter_basic_append(array, 's', str);
+
+ eldbus_message_iter_container_close(reply, array);
+
+ return EINA_TRUE;
}
/*