edje_object_scale_set(wd->base, elm_widget_scale_get(obj) * _elm_config->scale);
EINA_LIST_FOREACH(wd->stack, list, it)
{
- const char *text = NULL;
- Evas_Object *ic = NULL;
if(it->fn_btn1)
- {
- text = elm_button_label_get(it->fn_btn1);
- ic = elm_button_icon_get(it->fn_btn1);
- if(text)
- {
- snprintf(buf_fn, sizeof(buf_fn), "navigationbar_functionbutton/text_only/%s", elm_widget_style_get(obj));
- elm_object_style_set(it->fn_btn1, buf_fn);
- }
- else if(ic)
- {
- snprintf(buf_fn, sizeof(buf_fn), "navigationbar_functionbutton/icon_only/%s", elm_widget_style_get(obj));
- elm_object_style_set(it->fn_btn1, buf_fn);
- }
+ {
+ snprintf(buf_fn, sizeof(buf_fn), "navigationbar_functionbutton/%s", elm_widget_style_get(obj));
+ elm_object_style_set(it->fn_btn1, buf_fn);
}
if(it->fn_btn2)
- {
- text = elm_button_label_get(it->fn_btn2);
- ic = elm_button_icon_get(it->fn_btn2);
- if(text)
- {
- snprintf(buf_fn, sizeof(buf_fn), "navigationbar_functionbutton/text_only/%s", elm_widget_style_get(obj));
- elm_object_style_set(it->fn_btn2, buf_fn);
- }
- else if(ic)
- {
- snprintf(buf_fn, sizeof(buf_fn), "navigationbar_functionbutton/icon_only/%s", elm_widget_style_get(obj));
- elm_object_style_set(it->fn_btn2, buf_fn);
- }
+ {
+ snprintf(buf_fn, sizeof(buf_fn), "navigationbar_functionbutton/%s", elm_widget_style_get(obj));
+ elm_object_style_set(it->fn_btn2, buf_fn);
}
if(it->fn_btn3)
{
- text = elm_button_label_get(it->fn_btn3);
- ic = elm_button_icon_get(it->fn_btn3);
- if(text)
- {
- snprintf(buf_fn, sizeof(buf_fn), "navigationbar_functionbutton/text_only/%s", elm_widget_style_get(obj));
- elm_object_style_set(it->fn_btn3, buf_fn);
- }
- else if(ic)
- {
- snprintf(buf_fn, sizeof(buf_fn), "navigationbar_functionbutton/icon_only/%s", elm_widget_style_get(obj));
- elm_object_style_set(it->fn_btn3, buf_fn);
- }
+ snprintf(buf_fn, sizeof(buf_fn), "navigationbar_functionbutton/%s", elm_widget_style_get(obj));
+ elm_object_style_set(it->fn_btn3, buf_fn);
}
snprintf(buf_bk, sizeof(buf_bk), "navigationbar_backbutton/%s", elm_widget_style_get(obj));
elm_object_style_set(it->back_btn, buf_bk);
elm_object_style_set(new_btn, buf);
}
else
- {
- const char *text = NULL;
- Evas_Object *ic = NULL;
- text = elm_button_label_get(new_btn);
- ic = elm_button_icon_get(new_btn);
- if (text)
- {
- snprintf(buf, sizeof(buf), "navigationbar_functionbutton/text_only/%s", elm_widget_style_get(obj));
- elm_object_style_set(new_btn, buf);
- }
- else if (ic)
- {
- snprintf(buf, sizeof(buf), "navigationbar_functionbutton/icon_only/%s", elm_widget_style_get(obj));
- elm_object_style_set(new_btn, buf);
- }
+ {
+ snprintf(buf, sizeof(buf), "navigationbar_functionbutton/%s", elm_widget_style_get(obj));
+ elm_object_style_set(new_btn, buf);
}
elm_widget_sub_object_add(obj, new_btn);
changed = TRUE;
Evas_Object *content,
const char *subtitle)
{
- ELM_CHECK_WIDTYPE(obj, widtype);
+ ELM_CHECK_WIDTYPE(obj, widtype) NULL;
Widget_Data *wd = elm_widget_data_get(obj);
Eina_List *ll;
Item *it;
- if (!wd) return;
+ if (!wd) return NULL;
EINA_LIST_FOREACH(wd->stack, ll, it)
{