EINA_LIST_FOREACH(list, l, obj) {
item = (struct settingitem *) obj;
- btn = utils_add_btn(m->base, SUBITEMBTN_STYLE, settingitem_get_display_name(item), EINA_FALSE);
+ btn = utils_add_btn(m->base, (char *)SUBITEMBTN_STYLE,
+ settingitem_get_display_name(item), EINA_FALSE);
if (!btn) {
_ERR("Add btn failed");
evas_object_del(m->subitem_box);
}
for (int i = 0; i < m->main_item_count; i++) {
- btn = utils_add_btn(m->base, MAINICONBTN_STYLE, NULL, EINA_FALSE);
+ btn = utils_add_btn(m->base, (char *)MAINICONBTN_STYLE, NULL, EINA_FALSE);
if (!btn) {
_ERR("Add btn failed");
return false;
if (!data || !data->base)
return NULL;
- btn = utils_add_btn(data->base, PWD_BASIC_BTN,
- utils_get_translation_str(MSGID_CANCEL), EINA_TRUE);
+ btn = utils_add_btn(data->base, (char *)PWD_BASIC_BTN,
+ utils_get_translation_str((char *)MSGID_CANCEL),
+ EINA_TRUE);
if (!btn) {
_ERR("utils add button failed.");
return NULL;
return NULL;
btn = utils_add_btn(data->base, PWD_BASIC_BTN,
- utils_get_translation_str((const char *) MSGID_CANCEL), EINA_TRUE);
+ utils_get_translation_str((char *) MSGID_CANCEL), EINA_TRUE);
if (!btn) {
_ERR("utils add button failed.");
return NULL;
#include "NetworkMainView.h"
-static char *action_button[4] = { TXT_CONNECT_BTN, TXT_REFRESH_BTN, TXT_OTHER_BTN, TXT_CLOSE_BTN };
-static char *button_swallow[4] = { PART_CONNECT_BTN, PART_REFRESH_BTN, PART_OTHER_BTN, PART_CLOSE_BTN };
-static char *popup_button[2] = { TXT_WIRELESS, TXT_WIRED };
+static const char *action_button[4] = {
+ TXT_CONNECT_BTN,
+ TXT_REFRESH_BTN,
+ TXT_OTHER_BTN,
+ TXT_CLOSE_BTN
+};
+
+static const char *button_swallow[4] = {
+ PART_CONNECT_BTN,
+ PART_REFRESH_BTN,
+ PART_OTHER_BTN,
+ PART_CLOSE_BTN
+};
+
+static const char *popup_button[2] = {
+ TXT_WIRELESS,
+ TXT_WIRED
+};
struct SNetworkMainView {
ui_gadget_h ug;
snprintf(buf, sizeof(buf), "%02d", m->date[spin_idx]);
} else if (spin_idx == DATE_DAY) {
- if (m->date[spin_idx] > days[m->date[DATE_MONTH] - 1])
+ if ((int)m->date[spin_idx] > days[m->date[DATE_MONTH] - 1])
m->date[spin_idx] = 1;
if (m->date[spin_idx] <= 0)
m->date[spin_idx] = days[m->date[DATE_MONTH] - 1];
count = eina_array_count(m->spin_array);
- for (idx = TIME_HOUR; idx < count; idx++) {
+ for (idx = TIME_HOUR; idx < (int)count; idx++) {
btn = (Evas_Object *) eina_array_data_get(m->spin_array, idx);
if (!btn) {
_ERR("there is no button. idx: %d", idx);
ELM_FOCUS_RIGHT);
elm_object_focus_next_object_set(btn, (Evas_Object *) eina_array_data_get(m->spin_array, idx + 1),
ELM_FOCUS_NEXT);
- } else if (idx == count - 1) {
+ } else if (idx == (int)count - 1) {
elm_object_focus_next_object_set(btn, btn, ELM_FOCUS_RIGHT);
elm_object_focus_next_object_set(btn, (Evas_Object *) eina_array_data_get(m->spin_array, idx - 1), ELM_FOCUS_LEFT);
} else {
#include "WifiDirectMainView.h"
-const char *action_button[] = { TXT_REFRESH_BTN, TXT_CLOSE_BTN, TXT_STOP_BTN };
-const char *popup_button_on[] = { TXT_ON_BTN, TXT_OFF_BTN };
-static char *popup_button_conn[] = { TXT_CONNECT, TXT_DISCONNECT };
-static char *popup_button_req[] = { TXT_YES, TXT_NO };
-static char *part_req[] = { PART_YES, PART_NO };
+const char *action_button[] = {
+ TXT_REFRESH_BTN,
+ TXT_CLOSE_BTN,
+ TXT_STOP_BTN
+};
+
+const char *popup_button_on[] = {
+ TXT_ON_BTN,
+ TXT_OFF_BTN
+};
+
+static const char *popup_button_conn[] = {
+ TXT_CONNECT,
+ TXT_DISCONNECT
+};
+
+static const char *popup_button_req[] = {
+ TXT_YES,
+ TXT_NO
+};
+
+static const char *part_req[] = {
+ PART_YES,
+ PART_NO
+};
enum action_btn_enum {
ACTION_BTN_REFRESH,