Remove dependency on alarm app 74/235574/2 tizen_6.0 tizen_6.0_hotfix submit/tizen/20200610.061357 submit/tizen_6.0/20201029.205505 submit/tizen_6.0_hotfix/20201102.192905 submit/tizen_6.0_hotfix/20201103.115105 tizen_6.0_src.m2_release
authorAmritanshu <a.pandia1@samsung.com>
Fri, 5 Jun 2020 20:18:53 +0000 (01:48 +0530)
committerAmritanshu <a.pandia1@samsung.com>
Tue, 9 Jun 2020 15:49:17 +0000 (21:19 +0530)
Change-Id: I9d32b70f4fb4050a2bf23f5bf3a4c60a05329810
Signed-off-by: Amritanshu <a.pandia1@samsung.com>
apptray-widget-app/CMakeLists.txt
apptray-widget-app/src/apptray_wgt_app.c
apptray-widget/CMakeLists.txt
apptray-widget/inc/apptray_widget_common_defines.h [changed mode: 0644->0755]
apptray-widget/src/apptray_widget.c

index bb8cd79696de8d279fbe94247ac24f63ba378bb8..cea0bad6f0efe02482958b77d85b6b575c0b6de3 100755 (executable)
@@ -3,7 +3,7 @@ PROJECT(apptray-widget C)
 
 SET(SRCS
         src/apptray_wgt_app.c
-        src/apptray_wgt_app_key.c
+        src/apptray_wgt_app_key_event_provider.c
         src/apptray_wgt_app_utils.c
         src/apptray_wgt_app_item_info.c
         src/apptray_wgt_app_accessibility_utils.c
@@ -49,11 +49,8 @@ pkg_check_modules(pkgs REQUIRED
        elementary
        eina
        evas
-       widget_viewer
        widget_viewer_evas
        widget_service
-       pkgmgr
-       pkgmgr-info
        efl-extension
        vconf
        appsvc
index 5b0416a354ca4a5e9f04ae4789235d3d57626566..02e29a55f0929737d4482ffaa1b7c04e68389642 100755 (executable)
@@ -31,7 +31,7 @@
 #include "apptray_wgt_app_key_event_provider.h"
 #include "apptray_wgt_app_log.h"
 
-#define ATW_DEFAULT_APP_ORDER              "org.tizen.apptray-widget-app org.tizen.alarm org.tizen.w-phone org.tizen.watch-setting"
+#define ATW_DEFAULT_APP_ORDER              "org.tizen.apptray-widget-app org.tizen.w-phone org.tizen.watch-setting"
 
 #define ATW_APP_WIDGET_CONTENT_KEY         "org.tizen.apptray-widget"
 
index 81c68ad0e86afa0882fd41bd70e9525f85469cf1..4cfeb92a36c9d61dcbdceda00dda436a5dee6790 100755 (executable)
@@ -51,7 +51,6 @@ pkg_check_modules(pkgs REQUIRED
        elementary
        eina
        evas
-       widget_viewer
        widget_viewer_evas
        widget_service
        efl-extension
old mode 100644 (file)
new mode 100755 (executable)
index 9956681..519720b
 #define ATW_APP_LAUNCH_KEY    "launch_apps"
 #define ATW_WHOME_APP_CONTROL "home_op"
 
-#define ATW_DEFAULT_APP_ORDER "org.tizen.apptray-widget-app org.tizen.alarm org.tizen.w-phone org.tizen.watch-setting"
+#define ATW_DEFAULT_APP_ORDER "org.tizen.apptray-widget-app org.tizen.w-phone org.tizen.watch-setting"
 
 #define ATW_MAX_BADGE_COUNT  999
-#define ATW_SLOTS_MAX_COUNT  4
+#define ATW_SLOTS_MAX_COUNT  3
 
 #define ATW_BUFF_SIZE_SMALL  32
 #define ATW_BUFF_SIZE_MIDDLE 64
index f6ad8572f374964f542734091addcd87651662e1..9c59e1a4d1f3e80cdcba49e804b12cebfee42fd8 100755 (executable)
@@ -28,7 +28,7 @@
 #include "apptray_widget_utils.h"
 #include "apptray_widget_accessibility_utils.h"
 
-#define ATW_SLOT_INDEX_BUFF_SIZE 10
+#define ATW_SLOT_INDEX_BUFF_SIZE 17
 
 #define ATW_BUNDLE_KEY_SHORTCUT_LIST   "shortcut_list"
 
@@ -531,7 +531,7 @@ static void _update_slot_access_object_info(_slot_h slot)
  * @brief Sets slot to main layout
  * @param[in] instance Instance handle
  * @param[in] appid Application id to display slot
- * @param[in] index Slot index
+ * @param[in] pos Slot index
  * @return true on success, otherwise false
  */
 static bool _set_slot(_instance_h instance, const char *appid, int pos)
@@ -544,7 +544,7 @@ static bool _set_slot(_instance_h instance, const char *appid, int pos)
        char *label = NULL;
        char *icon_path_tmp = NULL;
 
-       _D("Try update slot [%d]", index + 1);
+       _D("Try update slot [%d]", pos + 1);
 
        if (!appid || !strcmp(appid, "empty")) {
                _D("appid to set is empty");
@@ -620,7 +620,7 @@ static bool _set_slot(_instance_h instance, const char *appid, int pos)
        if (app_info)
                app_info_destroy(app_info);
 
-       _D("Slot [%d] was added", index + 1);
+       _D("Slot [%d] was added", pos + 1);
 
        return true;
 
@@ -634,7 +634,7 @@ fail_return:
        if (app_info)
                app_info_destroy(app_info);
 
-       _D("Slot [%d] was not added", index + 1);
+       _D("Slot [%d] was not added", pos + 1);
 
        return false;
 }
@@ -653,7 +653,7 @@ static void _reset_slot(_instance_h instance, int index)
        FREE(instance->slot[index].label);
        FREE(instance->slot[index].pkgid);
 
-       char index_str[10] = { 0 };
+       char index_str[ATW_SLOT_INDEX_BUFF_SIZE] = { 0 };
        snprintf(index_str, sizeof(index_str), "slot_%d", index + 1);
        elm_object_part_content_unset(instance->layout, index_str);