{
char buf[1024];
if (!strcmp(g_genlist_info[WIFI_GENLIST_1LINE_STYLE].text_part, part)) {
- if ((int) data != 0) {
- snprintf(buf, 1023, "%s", sc(PACKAGE, (int) data));
+ int i18type = GPOINTER_TO_INT(data);
+ if (i18type != 0) {
+ snprintf(buf, 1023, "%s", sc(PACKAGE, i18type));
return strdup(buf);
}
} else if (!strcmp(g_genlist_info[WIFI_GENLIST_1LINE_STYLE].sub_text_part, part)) {
{
char buf[1024];
if (!strcmp(g_genlist_info[WIFI_GENLIST_1LINE_STYLE].text_part, part)) {
- if ((int) data != 0) {
- snprintf(buf, 1023, "%s", sc(PACKAGE, (int) data));
+ int i18type = GPOINTER_TO_INT(data);
+ if (i18type != 0) {
+ snprintf(buf, 1023, "%s", sc(PACKAGE, i18type));
return strdup(buf);
}
}
{
char buf[1024];
if (!strcmp(g_genlist_info[WIFI_GENLIST_1LINE_STYLE].text_part, part)) {
- if ((int) data != 0) {
- snprintf(buf, 1023, "%s", sc(PACKAGE, (int) data));
+ int i18type = GPOINTER_TO_INT(data);
+ if (i18type != 0) {
+ snprintf(buf, 1023, "%s", sc(PACKAGE, i18type));
return strdup(buf);
}
}
return;
}
- value = _convert_wifi_keep_value_to_vconf((int) data);
+ value = _convert_wifi_keep_value_to_vconf(GPOINTER_TO_INT(data));
if (value >= 0)
common_util_set_system_registry(VCONF_SLEEP_POLICY, value);
if (g_strcmp0(object_type, "elm_genlist") == 0)
- elm_radio_value_set(g_pd.keep_wifi_radio_group, (int) data);
+ elm_radio_value_set(g_pd.keep_wifi_radio_group, GPOINTER_TO_INT(data));
if (item != NULL) {
elm_genlist_item_update(item);
#ifdef ACCESSIBLITY_FEATURE
elm_access_object_unregister(radio);
#endif
- elm_radio_state_value_set(radio, (int) data);
+ elm_radio_state_value_set(radio, GPOINTER_TO_INT(data));
elm_radio_group_add(radio, g_pd.keep_wifi_radio_group);
elm_layout_content_set(content, "elm.swallow.content", radio);
value = _convert_vconf_to_wifi_keep_value(
common_util_get_system_registry(VCONF_SLEEP_POLICY));
- if (value == (int) data)
- elm_radio_value_set(g_pd.keep_wifi_radio_group, (int) data);
+ if (value == GPOINTER_TO_INT(data))
+ elm_radio_value_set(g_pd.keep_wifi_radio_group, GPOINTER_TO_INT(data));
evas_object_smart_callback_add(radio, "changed", _gl_changed_keep_wifi_sub, data);
}
return;
}
- value = _convert_sort_by_value_to_vconf((int) data);
+ value = _convert_sort_by_value_to_vconf(GPOINTER_TO_INT(data));
if (value >= 0)
common_util_set_system_registry(VCONF_SORT_BY, value);
if (g_strcmp0(object_type, "elm_genlist") == 0)
- elm_radio_value_set(g_pd.sort_by_radio_group, (int) data);
+ elm_radio_value_set(g_pd.sort_by_radio_group, GPOINTER_TO_INT(data));
if (item != NULL) {
elm_genlist_item_update(item);
#ifdef ACCESSIBLITY_FEATURE
elm_access_object_unregister(radio);
#endif
- elm_radio_state_value_set(radio, (int) data);
+ elm_radio_state_value_set(radio, GPOINTER_TO_INT(data));
elm_radio_group_add(radio, g_pd.sort_by_radio_group);
elm_layout_content_set(content, "elm.swallow.content", radio);
value = _convert_vconf_to_sort_by_value(
common_util_get_system_registry(VCONF_SORT_BY));
- if (value == (int) data)
- elm_radio_value_set(g_pd.sort_by_radio_group, (int) data);
+ if (value == GPOINTER_TO_INT(data))
+ elm_radio_value_set(g_pd.sort_by_radio_group, GPOINTER_TO_INT(data));
evas_object_smart_callback_add(radio, "changed",
_gl_changed_sort_by_sub, data);
static char *_gl_wifi_onoff_text_get(void *data, Evas_Object *obj, const char *part)
{
char *det = NULL;
- int ug_type = (int) data;
+ int ug_type = GPOINTER_TO_INT(data);
retvm_if(NULL == manager_object, NULL);
return NULL;
Evas_Object *c = NULL;
- int ug_type = (int) data;
+ int ug_type = GPOINTER_TO_INT(data);
const char *style;
// On&Off toggle button
wifi_onoff_itc.func.del = NULL;
manager_object->item_wifi_onoff = elm_genlist_item_append(genlist,
- &wifi_onoff_itc, (void *)ug_type, NULL, ELM_GENLIST_ITEM_NONE,
+ &wifi_onoff_itc, GINT_TO_POINTER(ug_type), NULL, ELM_GENLIST_ITEM_NONE,
NULL, NULL);
elm_genlist_item_select_mode_set(manager_object->item_wifi_onoff, ELM_OBJECT_SELECT_MODE_NONE);
if (first_item == NULL || last_item == NULL)
return;
- int index = (int)elm_genlist_item_index_get(item);
- int first_item_index = (int)elm_genlist_item_index_get(first_item);
- int last_item_index = (int)elm_genlist_item_index_get(last_item);
+ int index = elm_genlist_item_index_get(item);
+ int first_item_index = elm_genlist_item_index_get(first_item);
+ int last_item_index = elm_genlist_item_index_get(last_item);
char buf[100] = "";
if (first_item_index == -1) {
- int group_index = (int)elm_genlist_item_index_get(grouptitle);
+ int group_index = elm_genlist_item_index_get(grouptitle);
first_item_index = group_index + 1;
}
if (first_item == NULL)
return;
- int first_item_index = (int)elm_genlist_item_index_get(first_item);
+ int first_item_index = elm_genlist_item_index_get(first_item);
if (first_item_index == -1) {
- int group_index = (int)elm_genlist_item_index_get(grouptitle);
+ int group_index = elm_genlist_item_index_get(grouptitle);
first_item_index = group_index + 1;
}
#endif