if (p->label)
elm_object_text_set(obj, p->label);
- if (p->icon) elm_fileselector_entry_button_icon_set(obj, p->icon);
+ if (p->icon) elm_object_part_content_set(obj, "button icon", p->icon);
if (p->fs.path) elm_fileselector_entry_selected_set(obj, p->fs.path);
if (p->fs.is_save_set)
elm_fileselector_entry_is_save_set(obj, p->fs.is_save);
{
if (!strcmp(param->name, "label"))
{
- if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING)
- {
- elm_object_text_set(obj, param->s);
- return EINA_TRUE;
- }
+ if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING)
+ {
+ elm_object_text_set(obj, param->s);
+ return EINA_TRUE;
+ }
}
else if (!strcmp(param->name, "icon"))
{
- if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING)
- {
- Evas_Object *icon = external_common_param_icon_get(obj, param);
- if ((strcmp(param->s, "")) && (!icon)) return EINA_FALSE;
- elm_fileselector_entry_button_icon_set(obj, icon);
- return EINA_TRUE;
- }
+ if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING)
+ {
+ Evas_Object *icon = external_common_param_icon_get(obj, param);
+ if ((strcmp(param->s, "")) && (!icon)) return EINA_FALSE;
+ elm_object_part_content_set(obj, "button icon", icon);
+ return EINA_TRUE;
+ }
}
else if (!strcmp(param->name, "path"))
{
- if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING)
- {
- elm_fileselector_entry_selected_set(obj, param->s);
- return EINA_TRUE;
- }
+ if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING)
+ {
+ elm_fileselector_entry_selected_set(obj, param->s);
+ return EINA_TRUE;
+ }
}
else if (!strcmp(param->name, "save"))
{
- if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
- {
- elm_fileselector_entry_is_save_set(obj, param->i);
- return EINA_TRUE;
- }
+ if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
+ {
+ elm_fileselector_entry_is_save_set(obj, param->i);
+ return EINA_TRUE;
+ }
}
else if (!strcmp(param->name, "folder only"))
{
- if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
- {
- elm_fileselector_entry_folder_only_set(obj, param->i);
- return EINA_TRUE;
- }
+ if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
+ {
+ elm_fileselector_entry_folder_only_set(obj, param->i);
+ return EINA_TRUE;
+ }
}
else if (!strcmp(param->name, "expandable"))
{
- if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
- {
- elm_fileselector_entry_expandable_set(obj, param->i);
- return EINA_TRUE;
- }
+ if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
+ {
+ elm_fileselector_entry_expandable_set(obj, param->i);
+ return EINA_TRUE;
+ }
}
else if (!strcmp(param->name, "inwin mode"))
{
- if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
- {
- elm_fileselector_entry_inwin_mode_set(obj, param->i);
- return EINA_TRUE;
- }
+ if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
+ {
+ elm_fileselector_entry_inwin_mode_set(obj, param->i);
+ return EINA_TRUE;
+ }
}
ERR("unknown parameter '%s' of type '%s'",
{
if (!strcmp(param->name, "label"))
{
- if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING)
- {
- param->s = elm_object_text_get(obj);
- return EINA_TRUE;
- }
+ if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING)
+ {
+ param->s = elm_object_text_get(obj);
+ return EINA_TRUE;
+ }
}
else if (!strcmp(param->name, "icon"))
{
- /* not easy to get icon name back from live object */
- return EINA_FALSE;
+ /* not easy to get icon name back from live object */
+ return EINA_FALSE;
}
else if (!strcmp(param->name, "path"))
{
- if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING)
- {
- param->s = elm_fileselector_entry_selected_get(obj);
- return EINA_TRUE;
- }
+ if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING)
+ {
+ param->s = elm_fileselector_entry_selected_get(obj);
+ return EINA_TRUE;
+ }
}
else if (!strcmp(param->name, "save"))
{
- if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
- {
- param->i = elm_fileselector_entry_is_save_get(obj);
- return EINA_TRUE;
- }
+ if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
+ {
+ param->i = elm_fileselector_entry_is_save_get(obj);
+ return EINA_TRUE;
+ }
}
else if (!strcmp(param->name, "folder only"))
{
- if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
- {
- param->i = elm_fileselector_entry_folder_only_get(obj);
- return EINA_TRUE;
- }
+ if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
+ {
+ param->i = elm_fileselector_entry_folder_only_get(obj);
+ return EINA_TRUE;
+ }
}
else if (!strcmp(param->name, "expandable"))
{
- if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
- {
- param->i = elm_fileselector_entry_expandable_get(obj);
- return EINA_TRUE;
- }
+ if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
+ {
+ param->i = elm_fileselector_entry_expandable_get(obj);
+ return EINA_TRUE;
+ }
}
else if (!strcmp(param->name, "inwin mode"))
{
- if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
- {
- param->i = elm_fileselector_entry_inwin_mode_get(obj);
- return EINA_TRUE;
- }
+ if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
+ {
+ param->i = elm_fileselector_entry_inwin_mode_get(obj);
+ return EINA_TRUE;
+ }
}
ERR("unknown parameter '%s' of type '%s'",
EINA_LIST_FOREACH(params, l, param)
{
- if (!strcmp(param->name, "path"))
- mem->fs.path = eina_stringshare_add(param->s);
- else if (!strcmp(param->name, "save"))
- {
- mem->fs.is_save = !!param->i;
- mem->fs.is_save_set = EINA_TRUE;
- }
- else if (!strcmp(param->name, "folder only"))
- {
- mem->fs.folder_only = !!param->i;
- mem->fs.folder_only_set = EINA_TRUE;
- }
- else if (!strcmp(param->name, "expandable"))
- {
- mem->fs.expandable = !!param->i;
- mem->fs.expandable_set = EINA_TRUE;
- }
- else if (!strcmp(param->name, "inwin mode"))
- {
- mem->fs.inwin_mode = !!param->i;
- mem->fs.inwin_mode_set = EINA_TRUE;
- }
- else if (!strcmp(param->name, "label"))
- mem->label = eina_stringshare_add(param->s);
+ if (!strcmp(param->name, "path"))
+ mem->fs.path = eina_stringshare_add(param->s);
+ else if (!strcmp(param->name, "save"))
+ {
+ mem->fs.is_save = !!param->i;
+ mem->fs.is_save_set = EINA_TRUE;
+ }
+ else if (!strcmp(param->name, "folder only"))
+ {
+ mem->fs.folder_only = !!param->i;
+ mem->fs.folder_only_set = EINA_TRUE;
+ }
+ else if (!strcmp(param->name, "expandable"))
+ {
+ mem->fs.expandable = !!param->i;
+ mem->fs.expandable_set = EINA_TRUE;
+ }
+ else if (!strcmp(param->name, "inwin mode"))
+ {
+ mem->fs.inwin_mode = !!param->i;
+ mem->fs.inwin_mode_set = EINA_TRUE;
+ }
+ else if (!strcmp(param->name, "label"))
+ mem->label = eina_stringshare_add(param->s);
}
return mem;
}
static Evas_Object *external_fileselector_entry_content_get(void *data __UNUSED__,
- const Evas_Object *obj __UNUSED__, const char *content __UNUSED__)
+ const Evas_Object *obj __UNUSED__, const char *content __UNUSED__)
{
- ERR("No content.");
- return NULL;
+ ERR("No content.");
+ return NULL;
}
- static void
+static void
external_fileselector_entry_params_free(void *params)
{
Elm_Params_fileselector_entry *mem = params;