summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyuho Jo <kyuho.jo@samsung.com>2015-12-10 18:38:44 +0900
committerKyuho Jo <kyuho.jo@samsung.com>2015-12-10 18:38:44 +0900
commit420677c2cd001c2cd7b18e1dfb16c940b155d34e (patch)
tree437fc9b47ddce32d888e0d7b6bd4e0898ad14d16
parent21d49c6eb66f6b7aea697db8faac70a0ebaea9e9 (diff)
downloadshortcut-420677c2cd001c2cd7b18e1dfb16c940b155d34e.tar.gz
shortcut-420677c2cd001c2cd7b18e1dfb16c940b155d34e.tar.bz2
shortcut-420677c2cd001c2cd7b18e1dfb16c940b155d34e.zip
Change-Id: Ie5bff1c44bf52661e250fc0ae6708551dd06f26c Signed-off-by: Kyuho Jo <kyuho.jo@samsung.com>
-rwxr-xr-xlib/include/shortcut_manager.h2
-rw-r--r--lib/src/shortcut_manager.c5
2 files changed, 3 insertions, 4 deletions
diff --git a/lib/include/shortcut_manager.h b/lib/include/shortcut_manager.h
index 441df55..a74bb68 100755
--- a/lib/include/shortcut_manager.h
+++ b/lib/include/shortcut_manager.h
@@ -252,7 +252,7 @@ extern int shortcut_add_to_home_widget(const char *name, shortcut_widget_size_e
typedef int (*shortcut_list_cb)(const char *package_name, const char *icon, const char *name, const char *extra_key, const char *extra_data, void *user_data);
/**
- * @brief Gets the installed shortcut view list, synchronously.
+ * @brief Gets the preset list of shortcut template from the installed package, synchronously.
* @remarks If a homescreen does not support this feature, you will get a proper error code.\n
* Application must check the return value of this function.\n
* Application must check the return status from the callback function.\n
diff --git a/lib/src/shortcut_manager.c b/lib/src/shortcut_manager.c
index 67542dc..9192faa 100644
--- a/lib/src/shortcut_manager.c
+++ b/lib/src/shortcut_manager.c
@@ -359,7 +359,7 @@ static int shortcut_send_cb(pid_t pid, int handle, const struct packet *packet,
if (ret != SHORTCUT_ERROR_NONE) {
DbgPrint("Packet reply [%d]\n", ret);
if (ret == SHORTCUT_ERROR_PERMISSION_DENIED)
- ret =SHORTCUT_ERROR_NONE;
+ ret = SHORTCUT_ERROR_NONE;
}
if (item->result_internal_cb) {
@@ -422,8 +422,7 @@ EAPI int shortcut_add_to_home(const char *name, shortcut_type type, const char *
}
if (shortcut_is_master_ready() == 1) {
return SHORTCUT_ERROR_PERMISSION_DENIED;
- }
- else {
+ } else {
return SHORTCUT_ERROR_COMM;
}
}