copypaste: now argument is appended to get item_count from cbhm 09/93409/1
authorWooHyun Jung <wh0705.jung@samsung.com>
Mon, 24 Oct 2016 07:15:37 +0000 (16:15 +0900)
committerWooHyun Jung <wh0705.jung@samsung.com>
Mon, 24 Oct 2016 07:15:37 +0000 (16:15 +0900)
Change-Id: I836eb8fc04bbc43d4191a95541bd38427011c749

src/modules/copypasteUI_ctxpopup/cbhm_helper.c
src/modules/copypasteUI_ctxpopup/cbhm_helper.h

index c5c38f9..bd57dbf 100644 (file)
@@ -202,7 +202,7 @@ _cbhm_item_count_get(Evas_Object *obj EINA_UNUSED, int atom_index)
 #endif
 #ifdef HAVE_ELEMENTARY_WAYLAND
    Eldbus_Message *reply, *req;
-   Eldbus_Proxy *cbhm_proxy = cbhm_proxy_get();
+   Eldbus_Proxy *cbhm_proxy = cbhm_proxy_get(obj);
    const char *errname = NULL, *errmsg = NULL;
    int count = -1;
 
@@ -228,7 +228,7 @@ _cbhm_item_count_get(Evas_Object *obj EINA_UNUSED, int atom_index)
      }
 
    eldbus_message_ref(req);
-
+   eldbus_message_arguments_append(req, "i", atom_index);
    reply = eldbus_proxy_send_and_block(cbhm_proxy, req, 100);
 
    if (!reply || eldbus_message_error_get(reply, &errname, &errmsg))
index ce4df45..57cfd58 100644 (file)
@@ -38,7 +38,7 @@ Eina_Bool _cbhm_item_get(Evas_Object *obj, int index, void *data_type, char **bu
 #endif
 
 #ifdef HAVE_ELEMENTARY_WAYLAND
-Eldbus_Proxy* cbhm_proxy_get();
+Eldbus_Proxy* cbhm_proxy_get(Evas_Object *obj);
 #endif
 
 #ifdef HAVE_ELEMENTARY_X