summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiwoong Im <jiwoong.im@samsung.com>2016-11-14 11:02:02 +0900
committerJiwoong Im <jiwoong.im@samsung.com>2016-11-14 11:11:11 +0900
commit0d6651f773dc0dcae473acf341ce5c92f6c5d234 (patch)
tree2423818310a9fb75faaf4c7fd56426ea48aae77b
parent69f061998f939a18243b67ba1b596cf77a7e1acd (diff)
downloadlaunchpad-0d6651f773dc0dcae473acf341ce5c92f6c5d234.tar.gz
launchpad-0d6651f773dc0dcae473acf341ce5c92f6c5d234.tar.bz2
launchpad-0d6651f773dc0dcae473acf341ce5c92f6c5d234.zip
Replace buxton_update_client_label to sync apisubmit/tizen_3.0/20161111.111420
- In case of using async api, buxton_close is called before buxton2d updates client's label. Change-Id: Iadc5e12f01e7fd11d4f56f6fc3e63190db3281cc Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
-rw-r--r--src/launchpad_lib.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/launchpad_lib.c b/src/launchpad_lib.c
index 633ec5b..6336a19 100644
--- a/src/launchpad_lib.c
+++ b/src/launchpad_lib.c
@@ -57,13 +57,6 @@ static void __at_exit_to_release_bundle(void)
bundle_free(__bundle);
}
-static void __buxton_cb(int status, const struct buxton_layer *layer,
- const char *key, const struct buxton_value *val,
- void *user_data)
-{
- _D("buxton_update_client_label result : %d", status);
-}
-
static int __prepare_exec(const char *appid, const char *app_path,
const char *pkg_type, int type)
{
@@ -89,9 +82,10 @@ static int __prepare_exec(const char *appid, const char *app_path,
_E("buxton_open() failed");
return -1;
}
- ret = buxton_update_client_label(bxt_cli, __buxton_cb, NULL);
+ ret = buxton_update_client_label_sync(bxt_cli);
if (ret != 0) {
_E("buxton_update_client_label() failed");
+ buxton_close(bxt_cli);
return -1;
}
buxton_close(bxt_cli);