Add a shortcut icon for krate 63/87263/3 accepted/tizen/common/20160920.131728 accepted/tizen/ivi/20160920.051128 accepted/tizen/mobile/20160920.051029 accepted/tizen/tv/20160920.051045 accepted/tizen/wearable/20160920.051106 submit/tizen/20160916.180719
authorSungbae Yoo <sungbae.yoo@samsung.com>
Wed, 7 Sep 2016 08:06:37 +0000 (17:06 +0900)
committerSungbae Yoo <sungbae.yoo@samsung.com>
Mon, 19 Sep 2016 02:32:41 +0000 (11:32 +0900)
Signed-off-by: Sungbae Yoo <sungbae.yoo@samsung.com>
Change-Id: I6ff54bbb3c862641c18b74739db9a9be3ed64f2d

data/shortcut_icon.png [new file with mode: 0644]
packaging/krate.spec
server/CMakeLists.txt
tools/apps/keyguard/CMakeLists.txt
tools/apps/keyguard/src/main.c

diff --git a/data/shortcut_icon.png b/data/shortcut_icon.png
new file mode 100644 (file)
index 0000000..69d9514
Binary files /dev/null and b/data/shortcut_icon.png differ
index bf3a23c..ab57878 100644 (file)
@@ -40,6 +40,7 @@ krates.
 %{_unitdir}/multi-user.target.wants/krate.service
 %attr(700,root,root) /etc/gumd/useradd.d/20_krate-add.post
 %attr(700,root,root) /etc/gumd/userdel.d/20_krate-remove.post
+%attr(644,root,root) %{TZ_SYS_RO_ICONS}/krate/shortcut_icon.png
 %attr(644,root,root) %{TZ_SYS_RO_ICONS}/krate/indicator_icon.png
 %attr(644,root,root) %{TZ_SYS_RO_ICONS}/krate/notification_sub_icon.png
 %attr(700,root,root) %dir %{TZ_SYS_ETC}/krate
index 942f7e0..c8aba95 100644 (file)
@@ -71,3 +71,4 @@ INSTALL(FILES ${KRATE_TOOLS}/gumd-scripts/20_krate-remove.post DESTINATION /etc/
 INSTALL(FILES ${KRATE_DATA}/DefaultManifest.xml DESTINATION ${CONF_DIR} RENAME owner.xml)
 INSTALL(FILES ${KRATE_DATA}/indicator_icon.png DESTINATION ${ICON_DIR})
 INSTALL(FILES ${KRATE_DATA}/notification_sub_icon.png DESTINATION ${ICON_DIR})
+INSTALL(FILES ${KRATE_DATA}/shortcut_icon.png DESTINATION ${ICON_DIR})
index b119716..0bb2d21 100644 (file)
@@ -24,6 +24,10 @@ INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${APP_INSTALL_PREFIX}/${PROJECT_NAME
 
 TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${EFL_APP_LIBRARIES} ${KEYGUARD_LIBRARIES} krate)
 
+TARGET_COMPILE_DEFINITIONS(${PROJECT_NAME} PRIVATE
+    ICON_PATH="${ICON_DIR}"
+)
+
 ADD_CUSTOM_TARGET(${PROJECT_NAME}.edj
         COMMAND edje_cc -no-save -id ${CMAKE_CURRENT_SOURCE_DIR}/res/images
         ${CMAKE_CURRENT_SOURCE_DIR}/res/edje/${PROJECT_NAME}.edc
index 25b272c..f04bc21 100644 (file)
@@ -77,7 +77,7 @@ static void __add_shortcut(const char* krate_name)
        char uri[PATH_MAX];
 
        snprintf(uri, sizeof(uri), "krate://enter/%s", krate_name);
-       shortcut_add_to_home(krate_name, LAUNCH_BY_URI, uri, "", 0, NULL, NULL);
+       shortcut_add_to_home(krate_name, LAUNCH_BY_URI, uri, ICON_PATH "/shortcut_icon.png", 0, NULL, NULL);
 }
 
 static bool __app_create(void *data)