Typos fixed.
Unused files removed.
BT icons changed.
Change-Id: Idfec29b90c598236c02949761bf1bf5129f49d03
Signed-off-by: Radoslaw Czerski <r.czerski@samsung.com>
#include "indicator_common.edc"
-images {
- image: "icons/Power/battery_text/B03_stat_sys_battery_num_100.png" COMP;
-}
-
collections {
base_scale: 2.6;
}
images {
- image: "B03_indicator_bg.png" COMP;
- image: "B03_OrangeF.png" COMP;
- image: "B03_conection_not_UPdownload.png" COMP;
- image: "B03_connection_UPload.png" COMP;
- image: "B03_connection_download.png" COMP;
- image: "B03_conection_UPdownload.png" COMP;
- image: "B03_search_divider.png" COMP;
- image: "B03_notification.png" COMP;
- image: "B03_notification_press.png" COMP;
- image: "B03_notify_more.png" COMP;
+ image: "b03_connection_not_updownload.png" COMP;
+ image: "b03_connection_upload.png" COMP;
+ image: "b03_connection_download.png" COMP;
+ image: "b03_connection_updownload.png" COMP;
}
parts {
state: "default" 0.0;
rel1 { relative: 0.5 0.5; to_x: elm.swallow.fixed4; to_y: elm.rect.bg; }
rel2 { relative: 0.5 0.5; to_x: elm.swallow.fixed4; to_y: elm.rect.bg; }
- min: 25 25;
+ min: DEFAULT_ICON_WIDTH DEFAULT_ICON_WIDTH;
fixed: 1 1;
align: 0.5 0.5;
color_class:"AO004";
state: "none" 0.0;
inherit: "default" 0.0;
image {
- normal:"B03_conection_not_UPdownload.png";
+ normal:"b03_connection_not_updownload.png";
}
visible: 1;
}
state: "upload" 0.0;
inherit: "default" 0.0;
image {
- normal:"B03_connection_UPload.png";
+ normal:"b03_connection_upload.png";
}
visible: 1;
}
state: "download" 0.0;
inherit: "default" 0.0;
image {
- normal:"B03_connection_download.png";
+ normal:"b03_connection_download.png";
}
visible: 1;
}
state: "updownload" 0.0;
inherit: "default" 0.0;
image {
- normal:"B03_conection_UPdownload.png";
+ normal:"b03_connection_updownload.png";
}
visible: 1;
}
state: "default" 0.0;
rel1 { relative: 0.5 0.5; to_x: elm.swallow.fixed5; to_y: elm.rect.bg; }
rel2 { relative: 0.5 0.5; to_x: elm.swallow.fixed5; to_y: elm.rect.bg; }
- min: 25 25;
+ min: DEFAULT_ICON_WIDTH DEFAULT_ICON_HEIGHT;
fixed: 1 1;
align: 0.5 0.5;
color_class:"AO004";
state: "none" 0.0;
inherit: "default" 0.0;
image {
- normal:"B03_conection_not_UPdownload.png";
+ normal:"b03_connection_not_updownload.png";
}
visible: 1;
}
state: "upload" 0.0;
inherit: "default" 0.0;
image {
- normal:"B03_connection_UPload.png";
+ normal:"b03_connection_upload.png";
}
visible: 1;
}
state: "download" 0.0;
inherit: "default" 0.0;
image {
- normal:"B03_connection_download.png";
+ normal:"b03_connection_download.png";
}
visible: 1;
}
state: "updownload" 0.0;
inherit: "default" 0.0;
image {
- normal:"B03_conection_UPdownload.png";
+ normal:"b03_connection_updownload.png";
}
visible: 1;
}
[LEVEL_3G_PLUS] = "Connection/b03_connection_3g+.png",
[LEVEL_LTE] = "Connection/b03_connection_lte.png",
[LEVEL_4G] = "Connection/b03_connection_4g.png",
- [LEVEL_BT_TETHERING] = "Bluetooth, NFC, GPS/b03_BT_tethering_network.png"
+ [LEVEL_BT_TETHERING] = "Bluetooth, NFC, GPS/b03_bt_tethering_network.png"
};
static void set_app_state(void *data)
};
static const char *icon_path[TETHERING_MAX] = {
- [TETHERING_MULTI_ON_CONNECTED] = "Tethering/b03_All_connected.png",
- [TETHERING_MULTI_ON_NOT_CONNECTED] = "Tethering/b03_All_no_connected.png",
- [TETHERING_BT_ON_CONNECTED] = "Tethering/b03_BT_connected.png",
- [TETHERING_BT_ON_NOT_CONNECTED] = "Tethering/b03_BT_no_connected.png",
- [TETHERING_USB_ON_CONNECTED] = "Tethering/b03_USB_connected.png",
- [TETHERING_USB_ON_NOT_CONNECTED] = "Tethering/b03_USB_no_connected.png",
- [TETHERING_WIFI_ON_CONNECTED] = "Tethering/b03_Wi_Fi_connected.png",
- [TETHERING_WIFI_ON_NOT_CONNECTED] = "Tethering/b03_Wi_Fi_no_connected.png",
+ [TETHERING_MULTI_ON_CONNECTED] = "Tethering/b03_all_connected.png",
+ [TETHERING_MULTI_ON_NOT_CONNECTED] = "Tethering/b03_all_no_connected.png",
+ [TETHERING_BT_ON_CONNECTED] = "Tethering/b03_bt_connected.png",
+ [TETHERING_BT_ON_NOT_CONNECTED] = "Tethering/b03_bt_no_connected.png",
+ [TETHERING_USB_ON_CONNECTED] = "Tethering/b03_usb_connected.png",
+ [TETHERING_USB_ON_NOT_CONNECTED] = "Tethering/b03_usb_no_connected.png",
+ [TETHERING_WIFI_ON_CONNECTED] = "Tethering/b03_wi_fi_connected.png",
+ [TETHERING_WIFI_ON_NOT_CONNECTED] = "Tethering/b03_wi_fi_no_connected.png",
};
static int updated_while_lcd_off = 0;
};
static const char *icon_path[LEVEL_WIFI_MAX] = {
- [LEVEL_WIFI_01] = "Connection/b03_data_downloading_Wifi_01.png",
- [LEVEL_WIFI_02] = "Connection/b03_data_downloading_Wifi_02.png",
- [LEVEL_WIFI_03] = "Connection/b03_data_downloading_Wifi_03.png",
- [LEVEL_WIFI_04] = "Connection/b03_data_downloading_Wifi_04.png",
+ [LEVEL_WIFI_01] = "Connection/b03_data_downloading_wifi_01.png",
+ [LEVEL_WIFI_02] = "Connection/b03_data_downloading_wifi_02.png",
+ [LEVEL_WIFI_03] = "Connection/b03_data_downloading_wifi_03.png",
+ [LEVEL_WIFI_04] = "Connection/b03_data_downloading_wifi_04.png",
};
static int transfer_state = -1;
.priority = ICON_PRIORITY,
.always_top = EINA_FALSE,
.exist_in_view = EINA_FALSE,
- .img_obj = {0,},
+ .img_obj.data = "Call divert/b03_call_divert_default.png",
.obj_exist = EINA_FALSE,
.init = register_call_divert_module,
.fini = unregister_call_divert_module,
};
static telephony_handle_list_s list;
-static const char *icon_path = "Call divert/b03_call_divert_default.png";
-
static void set_app_state(void *data)
{
static void _show_image_icon()
{
- call_divert.img_obj.data = icon_path;
icon_show(&call_divert);
}
static int transfer_type = -1;
static const char *icon_path[TRANSFER_MAX] = {
- [TRANSFER_NONE] = "Connection/b03_conection_not_updownload.png",
+ [TRANSFER_NONE] = "Connection/b03_connection_not_updownload.png",
[TRANSFER_UP] = "Connection/b03_connection_upload.png",
[TRANSFER_DOWN] = "Connection/b03_connection_download.png",
- [TRANSFER_UPDOWN] = "Connection/b03_conection_updownload.png"
+ [TRANSFER_UPDOWN] = "Connection/b03_connection_updownload.png"
};
icon_s transfer = {
};
static const char *icon_path[LEVEL_MAX] = {
- [LEVEL_BT_NOT_CONNECTED] = "Bluetooth, NFC, GPS/b03_bt_on_connected.png",
- [LEVEL_BT_CONNECTED] = "Bluetooth, NFC, GPS/b03_bt_activated_on.png",
+ [LEVEL_BT_NOT_CONNECTED] = "Bluetooth, NFC, GPS/b03_bt_on_notconnected.png",
+ [LEVEL_BT_CONNECTED] = "Bluetooth, NFC, GPS/b03_bt_on_connected.png",
[LEVEL_BT_HEADSET] = "Bluetooth, NFC, GPS/b03_bt_on_connected&headset.png",
};
.priority = ICON_PRIORITY,
.always_top = EINA_FALSE,
.exist_in_view = EINA_FALSE,
- .img_obj = {0,},
.img_obj.data = "Bluetooth, NFC, GPS/b03_gps_on.png",
.obj_exist = EINA_FALSE,
.area = INDICATOR_ICON_AREA_SYSTEM,
if(prevIndex == index)
return;
- gps.img_obj.data = "Bluetooth, NFC, GPS/b03_gps_on.png";
icon_show(&gps);
prevIndex = index;
static int wifi_init_cnt = 0;
const reserved_t reserved_paths[] = {
- {MSG_NORMAL_STATUS_ICON, "/Notify/b03_notify_message.png"},
- {MSG_FAILED_STATUS_ICON, "/Notify/b03_notify_message_failed.png"},
- {MSG_DELIVER_REPORT_STATUS_ICON, "/Event/b03_event_delivery_report_message.png"},
- {MSG_READ_REPORT_STATUS_ICON, "/Event/b03_event_read_report_message.png"},
- {MSG_VOICE_MSG_STATUS_ICON, "/Event/b03_Event_voicemail.png"},
- {MSG_SIM_FULL_STATUS_ICON, "/SIM/b03_sim_card_full.png"}
+ {MSG_NORMAL_STATUS_ICON, "Notify/b03_notify_message.png"},
+ {MSG_FAILED_STATUS_ICON, "Notify/b03_notify_message_failed.png"},
+ {MSG_DELIVER_REPORT_STATUS_ICON, "Event/b03_event_delivery_report_message.png"},
+ {MSG_READ_REPORT_STATUS_ICON, "Event/b03_event_read_report_message.png"},
+ {MSG_VOICE_MSG_STATUS_ICON, "Event/b03_event_voicemail.png"},
+ {MSG_SIM_FULL_STATUS_ICON, "SIM/b03_sim_card_full.png"}
};
retvm_if(!special_path, 0, "path:%s", special_path);
char *real_path = NULL;
-
+ int size;
int i;
+
for (i = 0; i < ARRAY_SIZE(reserved_paths); ++i) {
+
if (!strcmp(special_path, reserved_paths[i].path)) {
- real_path = calloc(
- strlen(util_get_icon_dir())
- + strlen(reserved_paths[i].icon)
- + 1,
- sizeof(char));
+ size = strlen(util_get_icon_dir()) + strlen(reserved_paths[i].icon) + 2; /* +2 is for '/' and NULL*/
+ real_path = calloc(size, sizeof(char));
if (!real_path)
return NULL;
- snprintf(real_path,
- strlen(util_get_icon_dir()) + strlen(reserved_paths[i].icon) + 1,
- "%s%s", util_get_icon_dir(), reserved_paths[i].icon);
+ snprintf(real_path, size, "%s/%s", util_get_icon_dir(), reserved_paths[i].icon);
return real_path;
}