Changes for coding rules. 49/53949/1 accepted/tizen/mobile/20151211.054911 accepted/tizen/tv/20151211.062119 accepted/tizen/wearable/20151211.060931 submit/tizen/20151211.025357
authorKyuho Jo <kyuho.jo@samsung.com>
Thu, 10 Dec 2015 09:38:44 +0000 (18:38 +0900)
committerKyuho Jo <kyuho.jo@samsung.com>
Thu, 10 Dec 2015 09:38:44 +0000 (18:38 +0900)
Change-Id: Ie5bff1c44bf52661e250fc0ae6708551dd06f26c
Signed-off-by: Kyuho Jo <kyuho.jo@samsung.com>
lib/include/shortcut_manager.h
lib/src/shortcut_manager.c

index 441df55..a74bb68 100755 (executable)
@@ -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
index 67542dc..9192faa 100644 (file)
@@ -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;
                        }
                }