else if (from_params) p = from_params;
else return;
- if(p->disable_animation_exists) elm_navigationbar_animation_disable_set(obj, p->disable_animation);
+ if(p->disable_animation_exists) elm_navigationbar_animation_disabled_set(obj, p->disable_animation);
if(p->hidden_exists) elm_navigationbar_hidden_set(obj, p->hidden);
}
{
if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
{
- elm_navigationbar_animation_disable_set(obj, param->i);
+ elm_navigationbar_animation_disabled_set(obj, param->i);
return EINA_TRUE;
}
}
Evas_Object *end_icon;
Eina_Bool indicator_show:1;
Eina_Bool indicator_show_exists:1;
- double value_animated;
- Eina_Bool value_animated_exists:1;
- const char *end_label;
} Elm_Params_Slider;
static void
elm_slider_icon_set(obj, p->end_icon);
if (p->indicator_show_exists)
elm_slider_horizontal_set(obj, p->indicator_show);
- if (p->value_animated_exists)
- elm_slider_value_animated_set(obj, p->value_animated);
- if (p->end_label)
- elm_slider_end_label_set(obj, p->end_label);
}
static Eina_Bool
return EINA_TRUE;
}
}
- else if (!strcmp(param->name, "value animated"))
- {
- if (param->type == EDJE_EXTERNAL_PARAM_TYPE_DOUBLE)
- {
- elm_slider_value_animated_set(obj, param->d);
- return EINA_TRUE;
- }
- }
- if (!strcmp(param->name, "end label"))
- {
- if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING)
- {
- elm_slider_end_label_set(obj, param->s);
- return EINA_TRUE;
- }
- }
ERR("unknown parameter '%s' of type '%s'",
param->name, edje_external_param_type_str(param->type));
return EINA_FALSE;
}
}
- else if (!strcmp(param->name, "value animated"))
- {
- if (param->type == EDJE_EXTERNAL_PARAM_TYPE_DOUBLE)
- {
- return EINA_FALSE;
- }
- }
- else if (!strcmp(param->name, "end label"))
- {
- if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING)
- {
- param->s = elm_slider_end_label_get(obj);
- return EINA_TRUE;
- }
- }
ERR("unknown parameter '%s' of type '%s'",
param->name, edje_external_param_type_str(param->type));
mem->indicator_show = param->i;
mem->indicator_show_exists = EINA_TRUE;
}
- else if (!strcmp(param->name, "value animated"))
- {
- mem->value_animated = param->d;
- mem->value_animated_exists = EINA_TRUE;
- }
- else if (!strcmp(param->name, "end label"))
- mem->end_label = eina_stringshare_add(param->s);
}
return mem;
eina_stringshare_del(mem->unit);
if (mem->indicator)
eina_stringshare_del(mem->indicator);
- if (mem->end_label)
- eina_stringshare_del(mem->end_label);
external_common_params_free(params);
}
EDJE_EXTERNAL_PARAM_INFO_STRING_DEFAULT("indicator format", "%1.2f"),
EDJE_EXTERNAL_PARAM_INFO_STRING("end icon"),
EDJE_EXTERNAL_PARAM_INFO_BOOL("indicator show"),
- EDJE_EXTERNAL_PARAM_INFO_DOUBLE("value animated"),
- EDJE_EXTERNAL_PARAM_INFO_STRING("end label"),
EDJE_EXTERNAL_PARAM_INFO_SENTINEL
};