#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
#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"
* @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)
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");
if (app_info)
app_info_destroy(app_info);
- _D("Slot [%d] was added", index + 1);
+ _D("Slot [%d] was added", pos + 1);
return true;
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;
}
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);