#define SETTING_TRACE_SECURE_DEBUG(fmt, arg...) \
do {\
SECURE_LOGD("\033[0;32mDEBUG[%ld]: " fmt "\033[0m\n", _timens(), ##args));\
- }while(0);
+ } while (0);
#define SETTING_TRACE_DEBUG(fmt, arg...) \
do {\
SECURE_LOGD("\033[0;32mDEBUG[%ld]:: " fmt "\033[0m\n", _timens(), ##arg);\
- }while(0);
+ } while (0);
#define SETTING_TRACE(fmt, arg...) \
do {\
SECURE_LOGI("\033[0;36m[%ld]:" fmt "\033[0m\n", _timens(), ##arg);\
- }while(0);
+ } while (0);
#define SETTING_TRACE_WARNING(fmt, arg...) \
do {\
SECURE_LOGI("\033[0;33mWARRING[%ld]: " fmt "\033[0m\n", _timens(), ##arg);\
- }while(0);
+ } while (0);
#define SETTING_TRACE_ERROR(fmt, arg...) \
do {\
SECURE_LOGE("\033[0;31mERROR[%ld]: " fmt "\033[0m\n", _timens(), ##arg);\
- }while(0);
+ } while (0);
#define SETTING_TRACE_BEGIN do {\
SECURE_LOGD("\033[0;35mENTER FUNCTION[%ld]: %s. \033[0m\n", _timens(), __FUNCTION__);\
- }while(0);
+ } while (0);
#define SETTING_TRACE_END do {\
SECURE_LOGD("\033[0;35mEXIT FUNCTION[%ld]: %s. \033[0m\n", _timens(), __FUNCTION__);\
- }while(0);
+ } while (0);
#else
#define SETTING_TRACE(fmt, arg...)
#define SETTING_TRACE_SECURE_DEBUG(fmt, arg...)
char *(*text_get)(void *data, Evas_Object *obj, const char *part);
Evas_Object *(*content_get)(void *data, Evas_Object *obj,
const char *part);
- Eina_Bool (*state_get)(void *data, Evas_Object *obj, const char *part);
+ Eina_Bool(*state_get)(void *data, Evas_Object *obj, const char *part);
void (*del)(void *data, Evas_Object *obj);
};
const char *part);
/**
- * @brief Set next focused object to the list (grid) in specified direction.
- * @param[in] listmgr List manager handle
- * @param[in] list_id ID of list
- * @param[in] obj_to_focus Object which should be focused in specified direction to list.
- * If set to NULL no next object will be focused in specified direction (focus is
- * set back to the list)
- * @param[in] dir Direction
- * @param[in] add_reverse_link Should reverse direction be added?
- * @param[in] reverse_dir Reverse direction
- */
+* @brief Set next focused object to the list (grid) in specified direction.
+* @param[in] listmgr List manager handle
+* @param[in] list_id ID of list
+* @param[in] obj_to_focus Object which should be focused in specified direction to list.
+* If set to NULL no next object will be focused in specified direction (focus is
+* set back to the list)
+* @param[in] dir Direction
+* @param[in] add_reverse_link Should reverse direction be added?
+* @param[in] reverse_dir Reverse direction
+*/
void listmgr_set_list_next_focus(struct listmgr *listmgr, const char *list_id,
Evas_Object *obj_to_focus, Elm_Focus_Direction dir,
Eina_Bool add_reverse_link, Elm_Focus_Direction reverse_dir);
* @param listmgr A list manager pointer.
* @param list_id Unique existing list identifier.
*
-* @return
+* @return
*/
bool listmgr_update_grid(struct listmgr *listmgr, const char *list_id);
};
/**
-* @brief
+* @brief
*
* @param data
*
-* @return
+* @return
*/
int get_wired_network_status(struct _connection_data *data);
/**
-* @brief
+* @brief
*
* @param data
*
-* @return
+* @return
*/
bool get_ethernet_profile(struct _connection_data *data);
/**
-* @brief
+* @brief
*
* @param data
*
-* @return
+* @return
*/
bool update_ethernet_profile_dhcp(struct _connection_data *data);
/**
-* @brief
+* @brief
*
* @param data
*
-* @return
+* @return
*/
bool update_ethernet_profile_manual(struct _connection_data *data);
/**
-* @brief
+* @brief
*
* @param data
* @param event_cb
* @param cb_data
*
-* @return
+* @return
*/
bool wired_connection_init(struct _connection_data **data,
void (*event_cb)(enum event_type type, void *data), void *cb_data);
/**
-* @brief
+* @brief
*
* @param data
*/
/**
* @brief Available types of generic popups.
*/
-typedef enum
-{
+typedef enum {
POPUP_TYPE_BUTTONS_LIST = 0
} popup_type_t;
it = elm_gengrid_item_append(gitem->obj, gitem->ic, data,
NULL, NULL);
elm_object_item_data_set(it, data);
- if (item_found && data == item_data_to_find) {
+ if (item_found && data == item_data_to_find)
*item_found = it;
- }
}
return true;
elm_object_focus_next_object_set(linfo->grid, obj_to_focus, dir);
- if (add_reverse_link) {
+ if (add_reverse_link)
elm_object_focus_next_object_set(obj_to_focus, linfo->grid, reverse_dir);
- }
}
bool listmgr_hide_grid(struct listmgr *listmgr, const char *list_id,
m->info[id]->selected(m->data, id);
if ((!strcmp(ev->keyname, KEY_MENU) || !strcmp(ev->keyname, KEY_MENU_WAY)
- ||!strcmp(ev->keyname, KEY_MENU_EMULATOR)) &&
+ || !strcmp(ev->keyname, KEY_MENU_EMULATOR)) &&
m->info[id]->selected_menu)
m->info[id]->selected_menu(m->data, id);
}
} else {
str_copy = strdup(str);
token = strtok_r(str, delimiters, &save_ptr);
- if(token) {
+ if (token) {
strncpy(value_str, token, sizeof(value_str)-1);
token = strtok_r(NULL, delimiters, &save_ptr);
- if(token) {
+ if (token) {
elm_object_part_text_set(m->btn[i], PART_MENU_MIN_VALUE, value_str);
strncpy(value_str, token, sizeof(value_str)-1);
elm_object_part_text_set(m->btn[i], PART_MENU_MAX_VALUE, value_str);
if (info[i].progress_value) {
info[i].progress_evas = utils_add_progressbar(btn, PART_MENU_PROGRESS, STYLE_IMAGE_PROGRESS_BAR);
- if (!info[i].progress_evas) {
+ if (!info[i].progress_evas)
_ERR("Add progress bar failed.");
- } else {
+ else
elm_progressbar_value_set(info[i].progress_evas, info[i].progress_value());
- }
}
inputmgr_add_callback(btn, info[i].id, &_handler, m);
return m;
}
-
void menumgr_destroy(struct menumgr *m)
{
SETTING_TRACE_BEGIN;
#include "define.h"
-long int _timens() {
+long int _timens()
+{
struct timespec start;
- clock_gettime( CLOCK_REALTIME, &start);
+ clock_gettime(CLOCK_REALTIME, &start);
return start.tv_nsec;
}
void settings_picture_set_contrast_update_callbacks(void *data)
{
- if (data) {
+ /*
+ if (data)
//@TODO: set needed callbacks
- } else {
+ else
//@TODO: unset previously set callbacks
- }
+ */
}
void settings_picture_set_brightness_update_callbacks(void *data)
{
- if (data) {
+ /*
+ if (data)
//@TODO: set needed callbacks
- } else {
+ else
//@TODO: unset previously set callbacks
- }
+ */
}
void settings_picture_set_color_update_callbacks(void *data)
{
- if (data) {
+ /*
+ if (data)
//@TODO: set needed callbacks
- } else {
+ else
//@TODO: unset previously set callbacks
- }
+ */
}
void settings_picture_set_tint_update_callbacks(void *data)
{
- if (data) {
+ /*
+ if (data)
//@TODO: set needed callbacks
- } else {
+ else
//@TODO: unset previously set callbacks
- }
+ */
}
connection_profile_h profile;
int rv;
- if (!data || !data->conn ||!data->profile)
+ if (!data || !data->conn || !data->profile)
return false;
profile = data->profile;
char *address = NULL;
int rv;
- if (!data || !data->conn ||!data->profile)
+ if (!data || !data->conn || !data->profile)
return false;
profile = data->profile;
} else {
rv = connection_profile_set_state_changed_cb(conn->profile,
_profile_changed_cb, conn);
- if (CONNECTION_ERROR_NONE != rv) {
+ if (CONNECTION_ERROR_NONE != rv)
_ERR("Failed to set profile state callback !");
- }
}
rv = connection_set_ethernet_cable_state_chaged_cb(conn->conn,
_ethernet_cable_changed_cb, conn);
- if (CONNECTION_ERROR_NONE != rv) {
+ if (CONNECTION_ERROR_NONE != rv)
_ERR("Failed to set ethernet cable state callback !");
- }
conn->event_cb = event_cb;
conn->cb_data = cb_data;
bool settings_clock_set_24h(bool h24)
{
- if (h24) {
+ if (h24)
return (0 == vconf_set_int(VCONFKEY_REGIONFORMAT_TIME1224, VCONFKEY_TIME_FORMAT_24));
- } else {
+ else
return (0 == vconf_set_int(VCONFKEY_REGIONFORMAT_TIME1224, VCONFKEY_TIME_FORMAT_12));
- }
}
bool settings_clock_is_time_automatic(bool *automatic)
if (locale[0] != '\0') {
p = strstr(locale, ".UTF-8");
- if (p) {
+ if (p)
*p = 0;
- }
}
char *ret_str = NULL;
if (!settings_clock_is_time_automatic(&automatic))
return NULL;
- if (automatic) {
+ if (automatic)
return strdup(STR_AUTO);
- }
- if (!settings_clock_is_24h_set(&is24h)) {
+ if (!settings_clock_is_24h_set(&is24h))
_ERR("Cannot get 24h setting");
- }
if (is24h) {
_DBG("is24h is TRUE");
return _get_str_from_icu("dd/MM/y HH:mm");
- }
+ }
_DBG("is24h is FALSE");
return _get_str_from_icu("dd/MM/y hh:mm a");
bool is24h = false;
time_t timer;
char str_buffer[MAX_DATETIME_LENGTH];
- struct tm* tm_info,time_info;
+ struct tm* tm_info, time_info;
if (!settings_clock_is_time_automatic(&automatic))
return NULL;
return strdup(STR_AUTO);
} else {
time(&timer);
-
- tm_info = localtime_r(&timer,&time_info);
- if (!settings_clock_is_24h_set(&is24h)) {
+ tm_info = localtime_r(&timer, &time_info);
+
+ if (!settings_clock_is_24h_set(&is24h))
_ERR("Cannot get 24h setting");
- }
#if 0
- if (is24h) {
+ if (is24h)
strftime(str_buffer, MAX_DATETIME_LENGTH, "%x %H:%M", tm_info);
- } else {
+ else
strftime(str_buffer, MAX_DATETIME_LENGTH, "%x %I:%M %p", tm_info);
- }
#else
if (is24h) {
_DBG("is24h is TRUE");
} else {
_DBG("is24h is FALSE");
strftime(str_buffer, MAX_DATETIME_LENGTH, "%d/%m/%Y %I:%M", tm_info);
- strncat(str_buffer, (tm_info->tm_hour>=12)? " pm":" am",3);
+ strncat(str_buffer, (tm_info->tm_hour >= 12) ? " pm" : " am", 3);
}
#endif
int ret = VC_ERROR_NONE;
bool on_off = false;
- if (!vc_initialised)
- {
+ if (!vc_initialised) {
ret = vc_setting_initialize();
if (VC_ERROR_NONE != ret) {
_ERR("VC init error: %s", get_error_message(ret));
return strdup("");
}
- if (on_off) {
+ if (on_off)
return strdup(_("IDS_ST_BODY_ON"));
- } else {
+ else
return strdup(_("IDS_ST_BODY_OFF"));
- }
}
static void _voice_control_changed_cb(bool enabled, void *data)
}
ret = vc_setting_set_auto_language(true);
- if (VC_ERROR_NONE != ret) {
+ if (VC_ERROR_NONE != ret)
_DBG("VC set auto language error: %s", get_error_message(ret));
- }
ret = vc_setting_set_enabled_changed_cb(_voice_control_changed_cb , priv);
if (VC_ERROR_NONE != ret) {
return false;
ret = vc_setting_unset_enabled_changed_cb();
- if (VC_ERROR_NONE != ret) {
+ if (VC_ERROR_NONE != ret)
_ERR("VC unset callback error: %s", get_error_message(ret));
- }
priv->voice_control_is_on = eina_list_free(priv->voice_control_is_on);
free(priv);
priv = data;
if (!strcmp(ev->keyname, KEY_BACK) || !strcmp(ev->keyname, KEY_BACK_WAY)
- ||!strcmp(ev->keyname, KEY_ESC) || !strcmp(ev->keyname, KEY_ESC_WAY)
+ || !strcmp(ev->keyname, KEY_ESC) || !strcmp(ev->keyname, KEY_ESC_WAY)
)
_destroy_network_type_popup(priv);
else if (!strcmp(ev->keyname, KEY_ENTER))
STR_WIRED_PROGRESS);
/* If custom option is set, update connection profile */
- _DBG("Update status : [%s]", (data->result)?"True":"False");
+ _DBG("Update status : [%s]", (data->result) ? "True" : "False");
_DBG(" type : [%d]", data->network_type);
if (data->result) {
if (data->network_type == WIRED_TYPE_AUTOMATIC) {
ap_info = (struct wifi_manager_ap_info*)elm_object_item_data_get(item);
if (ap_info) {
- switch(ap_info->signal_level) {
+ switch (ap_info->signal_level) {
case SIGNAL_LEVEL_1:
elm_object_item_signal_emit(item, "wifi_signal_level,1", SRC_ELM);
break;
return;
len = strlen(str);
- if (len >= MIN_WIRELESS_LEN) {
+ if (len >= MIN_WIRELESS_LEN)
elm_object_disabled_set(priv->popup_btn2, EINA_FALSE);
- } else {
+ else
elm_object_disabled_set(priv->popup_btn2, EINA_TRUE);
- }
}
static void _imf_commit_event_cb(void *data, Ecore_IMF_Context *ctx, void *event_info)
return;
len = strlen(buf);
- if (len >= MIN_WIRELESS_LEN) {
+ if (len >= MIN_WIRELESS_LEN)
elm_object_disabled_set(priv->popup_btn2, EINA_FALSE);
- } else {
+ else
elm_object_disabled_set(priv->popup_btn2, EINA_TRUE);
- }
}
static void _imf_delete_event_cb(void *data, Ecore_IMF_Context *ctx, void *event_info)
listmgr_add_inner_grid_cb(priv->listmgr, LIST_WIRELESS,
&_grid_input_handler, priv);
- if(data) {
+ if (data) {
listmgr_set_list_next_focus(priv->listmgr, LIST_WIRELESS,
(Evas_Object *)data, ELM_FOCUS_UP, EINA_FALSE, ELM_FOCUS_DOWN);
}
switch (update_type) {
- case UPDATE_DISABLE:
- elm_object_disabled_set(priv->ly, EINA_TRUE);
- break;
- case UPDATE_ENABLE:
- elm_object_disabled_set(priv->ly, EINA_FALSE);
- break;
- default:
- break;
+ case UPDATE_DISABLE:
+ elm_object_disabled_set(priv->ly, EINA_TRUE);
+ break;
+ case UPDATE_ENABLE:
+ elm_object_disabled_set(priv->ly, EINA_FALSE);
+ break;
+ default:
+ break;
}
}
static void _selected(void *data, int id)
{
- switch (id)
- {
+ switch (id) {
case MENU_CONTRAST:
if (!viewmgr_push_view(VIEW_PICTURE_CONTRAST))
_ERR("Push Picture contrast view failed.");
}
switch (update_type) {
- case UPDATE_DISABLE:
- elm_object_disabled_set(priv->ly, EINA_TRUE);
- break;
- case UPDATE_ENABLE:
- elm_object_disabled_set(priv->ly, EINA_FALSE);
- break;
- case UPDATE_CONTENT:
- menumgr_update(priv->menu);
- break;
- default:
- break;
+ case UPDATE_DISABLE:
+ elm_object_disabled_set(priv->ly, EINA_TRUE);
+ break;
+ case UPDATE_ENABLE:
+ elm_object_disabled_set(priv->ly, EINA_FALSE);
+ break;
+ case UPDATE_CONTENT:
+ menumgr_update(priv->menu);
+ break;
+ default:
+ break;
}
}
void set_callback_for_system_location_change(void *data)
{
- if (data) {
+ /*
+ if (data)
//@TODO: set needed callbacks
- } else {
+ else
//@TODO: unset previously set callbacks
- }
+ */
}
static void _selected(void *data, int id)
}
switch (update_type) {
- case UPDATE_DISABLE:
- elm_object_disabled_set(priv->ly, EINA_TRUE);
- break;
- case UPDATE_ENABLE:
- elm_object_disabled_set(priv->ly, EINA_FALSE);
- break;
- case UPDATE_CONTENT:
+ case UPDATE_DISABLE:
+ elm_object_disabled_set(priv->ly, EINA_TRUE);
+ break;
+ case UPDATE_ENABLE:
+ elm_object_disabled_set(priv->ly, EINA_FALSE);
+ break;
+ case UPDATE_CONTENT:
menumgr_update(priv->menu);
- break;
- default:
- break;
+ break;
+ default:
+ break;
}
}
res = app_control_get_extra_data(control, "subview", &subview);
if (APP_CONTROL_ERROR_NONE == res && subview) {
- for(i = 0; i < ARRAY_SIZE(appctl_subview_values); i++) {
+ for (i = 0; i < ARRAY_SIZE(appctl_subview_values); i++) {
if (!strcmp(appctl_subview_values[i].subview, subview)) {
v_class = appctl_subview_values[i].class_getter();
viewmgr_pop_all_views();
elm_object_part_text_set(priv->popup, PART_POPUP_TITLE, g_data->popup_title);
- if (g_data->items_count != 0) {
+ if (g_data->items_count != 0)
_fill_items(priv, priv->popup, g_data->items_count, g_data->item_texts, g_data->handler);
- }
inputmgr_add_callback(priv->popup, 0, &_input_handler, NULL);
g_data->generic_popup_data = priv;
SETTING_TRACE_END;
}
-inline static void _focus_link_set(Evas_Object *prev, Evas_Object *next,
+static inline void _focus_link_set(Evas_Object *prev, Evas_Object *next,
Elm_Focus_Direction *next_dirs, Elm_Focus_Direction *prev_dirs,
int count)
{
elm_object_part_text_set(priv->base, PART_TEXT, attr->slider_title);
- if(attr->slider_min_str) {
+ if (attr->slider_min_str)
elm_object_part_text_set(priv->base, PART_VIEW_SLIDER_MIN, attr->slider_min_str);
- } else {
+ else {
char slider_min_val_str[SLIDER_VAL_STR_L] = {0, };
snprintf(slider_min_val_str, SLIDER_VAL_STR_L, "%d", attr->slider_min_val);
elm_object_part_text_set(priv->base, PART_VIEW_SLIDER_MIN, slider_min_val_str);
}
- if(attr->slider_max_str) {
+ if (attr->slider_max_str)
elm_object_part_text_set(priv->base, PART_VIEW_SLIDER_MAX, attr->slider_max_str);
- } else {
+ else {
char slider_max_val_str[SLIDER_VAL_STR_L] = {0, };
snprintf(slider_max_val_str, SLIDER_VAL_STR_L, "%d", attr->slider_max_val);
elm_object_part_text_set(priv->base, PART_VIEW_SLIDER_MAX, slider_max_val_str);
msg.val = priv->slider_val;
edje_object_message_send(elm_layout_edje_get(priv->base), EDJE_MESSAGE_INT, PIC_SLIDER_UPDATE_VAL, &msg);
- if (priv->settings_get_str) {
+ if (priv->settings_get_str)
priv->settings_get_str(priv->slider_val, val_str);
- } else {
+ else
snprintf(val_str, SLIDER_VAL_STR_L, "%d", priv->slider_val);
- }
-
elm_object_part_text_set(priv->base, PART_VIEW_SLIDER_CUR, val_str);
}
_destroy_setup_type_popup(priv);
switch (id) {
- case TYPE_AUTO:
- _disable_manual_settings(true, priv);
- break;
- case TYPE_MANUAL:
- _disable_manual_settings(false, priv);
- break;
- default:
- _ERR("Unhandled setup type.");
- return;
+ case TYPE_AUTO:
+ _disable_manual_settings(true, priv);
+ break;
+ case TYPE_MANUAL:
+ _disable_manual_settings(false, priv);
+ break;
+ default:
+ _ERR("Unhandled setup type.");
+ return;
}
priv->cur_type = id;
{
elm_object_focus_next_object_set(obj, neighbour, dir);
- if(allow_reverse)
+ if (allow_reverse)
elm_object_focus_next_object_set(neighbour, obj, reverse);
}
elm_object_scale_set(priv->check_24, 1.0 / APP_BASE_SCALE);
bool is24h;
- if(settings_clock_is_24h_set(&is24h))
+ if (settings_clock_is_24h_set(&is24h))
elm_check_state_set(priv->check_24, is24h);
*/
evas_object_smart_callback_add(priv->conformant, "virtualkeypad,state,on", _keypad_up_cb, priv);
evas_object_smart_callback_add(priv->conformant, "virtualkeypad,state,off", _keypad_down_cb, priv);
-
+
if (!_add_clock_setting(priv)) {
_ERR("failed to add clock setting layout");
if (!strcmp(ev->keyname, KEY_BACK) || !strcmp(ev->keyname, KEY_BACK_WAY)
|| !strcmp(ev->keyname, KEY_ESC) || !strcmp(ev->keyname, KEY_ESC_WAY)
|| !strcmp(ev->keyname, KEY_UP)) {
- if(priv->setup_type_popup) {
+ if (priv->setup_type_popup)
_destroy_setup_type_popup(priv);
- } else {
+ else
viewmgr_pop_view();
- }
} else {
if (!strcmp(ev->keyname, KEY_ENTER))
_draw_setup_type_popup(priv);
) {
_destroy_setup_type_popup(priv);
} else {
- if(!strcmp(ev->keyname, KEY_ENTER))
+ if (!strcmp(ev->keyname, KEY_ENTER))
_setup_type_option_selected(priv, id, obj);
}
}
SETTING_TRACE("result->tm_hour: %d", result->tm_hour);
SETTING_TRACE("result->tm_min: %d", result->tm_min);
SETTING_TRACE("result->tm_sec: %d", result->tm_sec);
-
+
}
static void _focused(int id, void *data, Evas_Object *obj, Elm_Object_Item *item)
g_data->generic_popup_data = NULL;
int i;
- for(i = 0; i < sizeof(str_setup_type_opt) / sizeof(str_setup_type_opt[0]); ++i) {
+ for (i = 0; i < sizeof(str_setup_type_opt) / sizeof(str_setup_type_opt[0]); ++i)
g_data->item_texts[i] = str_setup_type_opt[i];
- }
if (!viewmgr_set_view_data(VIEW_CLOCK_MODE, g_data)) {
free(g_data);
Evas_Object *btn = NULL;
int i;
- for(i = 0; i < btn_count; i++) {
+ for (i = 0; i < btn_count; i++) {
char part_name[PART_POPUP_BUTTON_STR_MAX_L] = {0, };
snprintf(part_name, sizeof(part_name), btn_part_x, i);
/* Set Focus */
lang_id = settings_language_get_language_id();
- if(lang_id != LANG_TYPE_MAX)
+ if (lang_id != LANG_TYPE_MAX)
elm_object_focus_set(priv->popup_btn[lang_id], EINA_TRUE);
}
return;
}
- if (eina_list_data_get(node)) {
+ if (eina_list_data_get(node))
elm_object_focus_set(priv->on_button, EINA_TRUE);
- } else {
+ else
elm_object_focus_set(priv->off_button, EINA_TRUE);
- }
evas_object_show(priv->base);
}
return;
}
- if (eina_list_data_get(node)) {
+ if (eina_list_data_get(node))
elm_object_focus_set(priv->on_button, EINA_TRUE);
- } else {
+ else
elm_object_focus_set(priv->off_button, EINA_TRUE);
- }
evas_object_show(priv->base);
}
Evas_Object *layout = NULL;
static Evas_Object *popup = NULL;
- if (popup) {
+ if (popup)
evas_object_del(popup);
- }
popup = elm_notify_add(parent);
if (!popup) {
}
/* Send event to network layout */
- if (priv->conn->event_cb) {
+ if (priv->conn->event_cb)
priv->conn->event_cb(EVENT_DATA_RETRY_WIRED, priv->conn->cb_data);
- }
}
static void _button_clicked(struct _priv *priv, int id, Evas_Object *obj)
}
priv = data;
- if (!strcmp(ev->keyname, KEY_ENTER)) {
+ if (!strcmp(ev->keyname, KEY_ENTER))
_button_clicked(priv, id, obj);
- }
}
static input_handler _base_input_handler = {
if (priv == NULL ||
priv->content_manual == NULL ||
priv->content_automatic == NULL)
- {
return false;
- }
if (priv->cur_menu == EO_BTN_AUTOMATIC) {
if (elm_radio_value_get(priv->content_automatic->radio1) == 2) {
return;
/* Check focus change key */
- if (!strcmp(".", *text)) {
+ if (!strcmp(".", *text))
ignore = true;
- } else if (!strcmp("<tab/>", *text)) {
+ else if (!strcmp("<tab/>", *text))
ignore = true;
- } else if (!strcmp("<br/>", *text)) {
+ else if (!strcmp("<br/>", *text))
ignore = true;
- }
if (ignore) {
/* TODO: Move focus to next item */