2006-08-19 20:51:54 -07:00
|
|
|
#include "e.h"
|
|
|
|
|
2012-07-02 01:09:17 -07:00
|
|
|
static void *_create_data(E_Config_Dialog *cfd);
|
|
|
|
static void _free_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata);
|
|
|
|
static int _basic_check_changed(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata);
|
|
|
|
static int _basic_apply(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata);
|
2010-07-27 08:12:40 -07:00
|
|
|
static Evas_Object *_basic_create(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata);
|
2012-07-02 01:09:17 -07:00
|
|
|
static int _sort_icon_themes(const void *data1, const void *data2);
|
2010-03-08 18:46:07 -08:00
|
|
|
static Evas_Object *_icon_new(Evas *evas, const char *theme, const char *icon, unsigned int size);
|
2006-08-19 20:51:54 -07:00
|
|
|
|
|
|
|
struct _E_Config_Dialog_Data
|
|
|
|
{
|
|
|
|
E_Config_Dialog *cfd;
|
2012-07-02 01:09:17 -07:00
|
|
|
Eina_List *icon_themes;
|
|
|
|
const char *themename;
|
|
|
|
int overrides;
|
|
|
|
int enable_icon_theme;
|
|
|
|
int match_e17_icon_theme;
|
|
|
|
int populating;
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
Evas_Object *list;
|
|
|
|
Evas_Object *preview[4]; /* same size as _icon_previews */
|
|
|
|
} gui;
|
|
|
|
Ecore_Idler *fill_icon_themes_delayed;
|
2006-08-19 20:51:54 -07:00
|
|
|
};
|
|
|
|
|
2012-07-02 01:09:17 -07:00
|
|
|
static const char *_icon_previews[4] =
|
2010-07-27 08:12:40 -07:00
|
|
|
{
|
|
|
|
"system-run",
|
|
|
|
"system-file-manager",
|
|
|
|
"preferences-desktop-theme",
|
|
|
|
"text-x-generic"
|
2010-03-08 18:46:07 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
#define PREVIEW_SIZE (48)
|
|
|
|
|
2010-01-22 12:28:39 -08:00
|
|
|
E_Config_Dialog *
|
2007-07-24 11:47:26 -07:00
|
|
|
e_int_config_icon_themes(E_Container *con, const char *params __UNUSED__)
|
2006-08-19 20:51:54 -07:00
|
|
|
{
|
|
|
|
E_Config_Dialog *cfd;
|
|
|
|
E_Config_Dialog_View *v;
|
|
|
|
|
2009-12-04 14:37:18 -08:00
|
|
|
if (e_config_dialog_find("E", "appearance/icon_theme")) return NULL;
|
2006-08-19 20:51:54 -07:00
|
|
|
v = E_NEW(E_Config_Dialog_View, 1);
|
2009-03-03 17:51:16 -08:00
|
|
|
|
2009-12-01 00:44:36 -08:00
|
|
|
v->create_cfdata = _create_data;
|
|
|
|
v->free_cfdata = _free_data;
|
2010-07-27 08:12:40 -07:00
|
|
|
v->basic.create_widgets = _basic_create;
|
|
|
|
v->basic.apply_cfdata = _basic_apply;
|
2009-12-01 00:44:36 -08:00
|
|
|
v->basic.check_changed = _basic_check_changed;
|
2009-03-03 17:51:16 -08:00
|
|
|
|
2012-07-02 01:09:17 -07:00
|
|
|
cfd = e_config_dialog_new(con, _("Icon Theme Settings"),
|
2010-07-27 08:12:40 -07:00
|
|
|
"E", "appearance/icon_theme",
|
2012-07-02 01:09:17 -07:00
|
|
|
"preferences-icon-theme", 0, v, NULL);
|
2006-08-19 20:51:54 -07:00
|
|
|
return cfd;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
_fill_data(E_Config_Dialog_Data *cfdata)
|
|
|
|
{
|
2009-03-03 17:51:16 -08:00
|
|
|
cfdata->icon_themes = efreet_icon_theme_list_get();
|
2012-07-02 01:09:17 -07:00
|
|
|
cfdata->icon_themes = eina_list_sort(cfdata->icon_themes,
|
2010-07-27 08:12:40 -07:00
|
|
|
eina_list_count(cfdata->icon_themes),
|
|
|
|
_sort_icon_themes);
|
2006-08-19 20:51:54 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
static void *
|
|
|
|
_create_data(E_Config_Dialog *cfd)
|
|
|
|
{
|
|
|
|
E_Config_Dialog_Data *cfdata;
|
|
|
|
|
|
|
|
cfdata = E_NEW(E_Config_Dialog_Data, 1);
|
|
|
|
cfdata->cfd = cfd;
|
2009-03-11 08:13:42 -07:00
|
|
|
cfdata->themename = eina_stringshare_add(e_config->icon_theme);
|
2009-03-03 18:56:27 -08:00
|
|
|
cfdata->overrides = e_config->icon_theme_overrides;
|
2011-09-24 15:05:15 -07:00
|
|
|
cfdata->match_e17_icon_theme = e_config->xsettings.match_e17_icon_theme;
|
2012-07-02 01:09:17 -07:00
|
|
|
cfdata->enable_icon_theme = !!(e_config->icon_theme);
|
2006-08-19 20:51:54 -07:00
|
|
|
return cfdata;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2009-03-03 17:51:16 -08:00
|
|
|
_free_data(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *cfdata)
|
2006-08-19 20:51:54 -07:00
|
|
|
{
|
2009-03-03 17:51:16 -08:00
|
|
|
if (cfdata->fill_icon_themes_delayed)
|
|
|
|
free(ecore_idler_del(cfdata->fill_icon_themes_delayed));
|
|
|
|
|
2008-10-22 04:49:33 -07:00
|
|
|
eina_list_free(cfdata->icon_themes);
|
2009-03-11 08:13:42 -07:00
|
|
|
eina_stringshare_del(cfdata->themename);
|
2007-01-15 09:43:19 -08:00
|
|
|
E_FREE(cfdata);
|
2006-08-19 20:51:54 -07:00
|
|
|
}
|
|
|
|
|
2008-10-18 10:11:38 -07:00
|
|
|
static int
|
2009-03-03 17:51:16 -08:00
|
|
|
_basic_check_changed(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *cfdata)
|
2008-10-18 10:11:38 -07:00
|
|
|
{
|
2011-02-18 03:38:37 -08:00
|
|
|
if (cfdata->overrides != e_config->icon_theme_overrides)
|
|
|
|
return 1;
|
|
|
|
|
2011-09-24 15:05:15 -07:00
|
|
|
if (cfdata->match_e17_icon_theme != e_config->xsettings.match_e17_icon_theme)
|
|
|
|
return 1;
|
|
|
|
|
2011-02-18 03:38:37 -08:00
|
|
|
if (cfdata->enable_icon_theme != !!(e_config->icon_theme))
|
2009-03-03 18:56:27 -08:00
|
|
|
return 1;
|
|
|
|
|
2009-03-03 17:51:16 -08:00
|
|
|
if ((!cfdata->themename) && (!e_config->icon_theme))
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
if ((!cfdata->themename) || (!e_config->icon_theme))
|
|
|
|
return 1;
|
|
|
|
|
|
|
|
return strcmp(cfdata->themename, e_config->icon_theme) != 0;
|
2008-10-18 10:11:38 -07:00
|
|
|
}
|
|
|
|
|
2006-08-19 20:51:54 -07:00
|
|
|
static int
|
2010-07-27 08:12:40 -07:00
|
|
|
_basic_apply(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata)
|
2006-08-19 20:51:54 -07:00
|
|
|
{
|
2007-04-05 10:20:09 -07:00
|
|
|
E_Event_Config_Icon_Theme *ev;
|
2009-03-03 17:51:16 -08:00
|
|
|
|
2010-07-27 08:12:40 -07:00
|
|
|
if (!_basic_check_changed(cfd, cfdata)) return 1;
|
2009-03-03 17:51:16 -08:00
|
|
|
|
|
|
|
eina_stringshare_del(e_config->icon_theme);
|
2011-02-18 03:38:37 -08:00
|
|
|
if (cfdata->enable_icon_theme)
|
|
|
|
e_config->icon_theme = eina_stringshare_ref(cfdata->themename);
|
|
|
|
else
|
|
|
|
e_config->icon_theme = NULL;
|
2012-07-02 01:09:17 -07:00
|
|
|
|
2009-03-03 18:56:27 -08:00
|
|
|
e_config->icon_theme_overrides = !!cfdata->overrides;
|
2011-09-24 15:05:15 -07:00
|
|
|
e_config->xsettings.match_e17_icon_theme = cfdata->match_e17_icon_theme;
|
2006-08-20 19:30:10 -07:00
|
|
|
e_config_save_queue();
|
|
|
|
|
2010-08-03 19:01:38 -07:00
|
|
|
e_util_env_set("E_ICON_THEME", e_config->icon_theme);
|
|
|
|
|
2007-04-05 10:20:09 -07:00
|
|
|
ev = E_NEW(E_Event_Config_Icon_Theme, 1);
|
|
|
|
if (ev)
|
|
|
|
{
|
2012-07-02 01:09:17 -07:00
|
|
|
ev->icon_theme = e_config->icon_theme;
|
|
|
|
ecore_event_add(E_EVENT_CONFIG_ICON_THEME, ev, NULL, NULL);
|
2007-04-05 10:20:09 -07:00
|
|
|
}
|
2009-03-03 17:51:16 -08:00
|
|
|
return 1;
|
2006-08-19 20:51:54 -07:00
|
|
|
}
|
|
|
|
|
2010-03-08 18:46:07 -08:00
|
|
|
static void
|
|
|
|
_populate_preview(E_Config_Dialog_Data *cfdata)
|
|
|
|
{
|
|
|
|
const char *t = cfdata->themename;
|
|
|
|
unsigned int i;
|
2010-07-27 08:12:40 -07:00
|
|
|
|
2012-07-02 01:09:17 -07:00
|
|
|
for (i = 0; i < sizeof(_icon_previews) / sizeof(_icon_previews[0]); i++)
|
2010-03-08 18:46:07 -08:00
|
|
|
{
|
2012-07-02 01:09:17 -07:00
|
|
|
const char *path;
|
2010-07-27 08:12:40 -07:00
|
|
|
|
|
|
|
if (!(path = efreet_icon_path_find(t, _icon_previews[i], PREVIEW_SIZE)))
|
|
|
|
continue;
|
2012-07-02 01:09:17 -07:00
|
|
|
if (e_icon_file_set(cfdata->gui.preview[i], path))
|
|
|
|
e_icon_fill_inside_set(cfdata->gui.preview[i], EINA_TRUE);
|
2010-03-08 18:46:07 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2009-03-03 17:51:16 -08:00
|
|
|
struct _fill_icon_themes_data
|
2006-08-19 20:51:54 -07:00
|
|
|
{
|
2012-07-02 01:09:17 -07:00
|
|
|
Eina_List *l;
|
|
|
|
int i;
|
|
|
|
Evas *evas;
|
2006-08-19 20:51:54 -07:00
|
|
|
E_Config_Dialog_Data *cfdata;
|
2012-07-02 01:09:17 -07:00
|
|
|
Eina_Bool themes_loaded;
|
2009-03-03 17:51:16 -08:00
|
|
|
};
|
2006-08-19 20:51:54 -07:00
|
|
|
|
2010-06-24 09:19:12 -07:00
|
|
|
static Eina_Bool
|
2009-03-03 17:51:16 -08:00
|
|
|
_fill_icon_themes(void *data)
|
2006-08-19 20:51:54 -07:00
|
|
|
{
|
2009-03-03 17:51:16 -08:00
|
|
|
struct _fill_icon_themes_data *d = data;
|
|
|
|
Efreet_Icon_Theme *theme;
|
|
|
|
Evas_Object *oc = NULL;
|
2012-07-02 01:09:17 -07:00
|
|
|
const char **example_icon, *example_icons[] =
|
|
|
|
{
|
|
|
|
NULL,
|
|
|
|
"folder",
|
|
|
|
"user-home",
|
|
|
|
"text-x-generic",
|
|
|
|
"system-run",
|
|
|
|
"preferences-system",
|
|
|
|
NULL,
|
|
|
|
};
|
2009-03-03 17:51:16 -08:00
|
|
|
|
|
|
|
if (!d->themes_loaded)
|
2006-08-19 20:51:54 -07:00
|
|
|
{
|
2012-07-02 01:09:17 -07:00
|
|
|
d->cfdata->icon_themes = eina_list_free(d->cfdata->icon_themes);
|
|
|
|
_fill_data(d->cfdata);
|
|
|
|
d->l = d->cfdata->icon_themes;
|
|
|
|
d->i = 0;
|
|
|
|
d->themes_loaded = 1;
|
|
|
|
return ECORE_CALLBACK_RENEW;
|
2006-08-19 20:51:54 -07:00
|
|
|
}
|
2009-03-03 17:51:16 -08:00
|
|
|
|
|
|
|
if (!d->l)
|
2006-08-19 20:51:54 -07:00
|
|
|
{
|
2010-07-27 08:12:40 -07:00
|
|
|
int mw, mh;
|
|
|
|
|
2012-07-02 01:09:17 -07:00
|
|
|
e_widget_ilist_go(d->cfdata->gui.list);
|
2010-07-27 08:12:40 -07:00
|
|
|
|
|
|
|
e_widget_size_min_get(d->cfdata->gui.list, &mw, &mh);
|
2010-07-30 14:11:03 -07:00
|
|
|
e_widget_size_min_set(d->cfdata->gui.list, mw, 100);
|
2010-07-27 08:12:40 -07:00
|
|
|
|
2012-07-02 01:09:17 -07:00
|
|
|
d->cfdata->fill_icon_themes_delayed = NULL;
|
|
|
|
d->cfdata->populating = EINA_FALSE;
|
|
|
|
_populate_preview(d->cfdata);
|
|
|
|
free(d);
|
|
|
|
return ECORE_CALLBACK_CANCEL;
|
2006-08-19 20:51:54 -07:00
|
|
|
}
|
|
|
|
|
2009-03-03 17:51:16 -08:00
|
|
|
theme = d->l->data;
|
|
|
|
if (theme->example_icon)
|
2006-08-19 20:51:54 -07:00
|
|
|
{
|
2012-07-02 01:09:17 -07:00
|
|
|
example_icons[0] = theme->example_icon;
|
|
|
|
example_icon = example_icons;
|
2010-03-08 18:46:07 -08:00
|
|
|
}
|
|
|
|
else
|
2010-07-27 08:12:40 -07:00
|
|
|
example_icon = example_icons + 1;
|
2010-03-08 18:46:07 -08:00
|
|
|
|
|
|
|
for (; (*example_icon) && (!oc); example_icon++)
|
|
|
|
oc = _icon_new(d->evas, theme->name.internal, *example_icon, 24);
|
|
|
|
|
|
|
|
if (oc)
|
|
|
|
{
|
2012-07-02 01:09:17 -07:00
|
|
|
e_widget_ilist_append(d->cfdata->gui.list, oc, theme->name.name,
|
|
|
|
NULL, NULL, theme->name.internal);
|
|
|
|
if ((d->cfdata->themename) && (theme->name.internal) &&
|
|
|
|
(strcmp(d->cfdata->themename, theme->name.internal) == 0))
|
|
|
|
e_widget_ilist_selected_set(d->cfdata->gui.list, d->i);
|
2006-08-19 20:51:54 -07:00
|
|
|
}
|
|
|
|
|
2009-03-03 17:51:16 -08:00
|
|
|
d->i++;
|
|
|
|
d->l = d->l->next;
|
2010-06-24 09:19:12 -07:00
|
|
|
return ECORE_CALLBACK_RENEW;
|
2006-08-19 20:51:54 -07:00
|
|
|
}
|
|
|
|
|
2010-03-08 18:46:07 -08:00
|
|
|
static void
|
|
|
|
_icon_theme_changed(void *data, Evas_Object *o __UNUSED__)
|
|
|
|
{
|
2010-07-27 08:12:40 -07:00
|
|
|
E_Config_Dialog_Data *cfdata;
|
|
|
|
|
|
|
|
cfdata = data;
|
2010-03-08 18:46:07 -08:00
|
|
|
if (cfdata->populating) return;
|
|
|
|
_populate_preview(cfdata);
|
|
|
|
}
|
|
|
|
|
2006-08-29 23:39:24 -07:00
|
|
|
static Evas_Object *
|
2010-07-27 08:12:40 -07:00
|
|
|
_basic_create(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata)
|
2006-08-29 23:39:24 -07:00
|
|
|
{
|
2010-03-08 18:46:07 -08:00
|
|
|
Evas_Object *o, *ilist, *checkbox, *ol;
|
2009-03-03 17:51:16 -08:00
|
|
|
struct _fill_icon_themes_data *d;
|
2010-03-08 18:46:07 -08:00
|
|
|
unsigned int i;
|
2006-08-29 23:39:24 -07:00
|
|
|
|
2007-04-17 02:14:18 -07:00
|
|
|
o = e_widget_list_add(evas, 0, 0);
|
2006-08-29 23:39:24 -07:00
|
|
|
ilist = e_widget_ilist_add(evas, 24, 24, &(cfdata->themename));
|
|
|
|
cfdata->gui.list = ilist;
|
2010-07-30 14:11:03 -07:00
|
|
|
e_widget_size_min_set(cfdata->gui.list, 100, 100);
|
2006-08-29 23:39:24 -07:00
|
|
|
|
2010-03-08 18:46:07 -08:00
|
|
|
cfdata->populating = EINA_TRUE;
|
|
|
|
e_widget_on_change_hook_set(ilist, _icon_theme_changed, cfdata);
|
|
|
|
e_widget_list_object_append(o, ilist, 1, 1, 0.5);
|
2006-11-28 03:54:03 -08:00
|
|
|
|
2010-03-08 18:46:07 -08:00
|
|
|
ol = e_widget_framelist_add(evas, _("Preview"), 1);
|
2012-07-02 01:09:17 -07:00
|
|
|
for (i = 0; i < sizeof(_icon_previews) / sizeof(_icon_previews[0]); i++)
|
2010-03-08 18:46:07 -08:00
|
|
|
{
|
2012-07-02 01:09:17 -07:00
|
|
|
cfdata->gui.preview[i] = e_icon_add(evas);
|
|
|
|
e_icon_preload_set(cfdata->gui.preview[i], EINA_TRUE);
|
|
|
|
e_icon_scale_size_set(cfdata->gui.preview[i], PREVIEW_SIZE);
|
|
|
|
e_widget_framelist_object_append_full(ol, cfdata->gui.preview[i],
|
2010-07-27 08:12:40 -07:00
|
|
|
0, 0, 0, 0, 0.5, 0.5,
|
2012-07-02 01:09:17 -07:00
|
|
|
PREVIEW_SIZE, PREVIEW_SIZE,
|
2010-07-27 08:12:40 -07:00
|
|
|
PREVIEW_SIZE, PREVIEW_SIZE);
|
2010-03-08 18:46:07 -08:00
|
|
|
}
|
|
|
|
e_widget_list_object_append(o, ol, 0, 0, 0.5);
|
2009-03-03 18:56:27 -08:00
|
|
|
|
2012-07-02 01:09:17 -07:00
|
|
|
checkbox = e_widget_check_add(evas, _("Enable icon theme"),
|
2011-02-18 03:38:37 -08:00
|
|
|
&(cfdata->enable_icon_theme));
|
|
|
|
e_widget_on_change_hook_set(checkbox, _icon_theme_changed, cfdata);
|
|
|
|
e_widget_list_object_append(o, checkbox, 0, 0, 0.0);
|
|
|
|
|
2012-07-02 01:09:17 -07:00
|
|
|
checkbox = e_widget_check_add(evas, _("Use icon theme for applications"),
|
2011-09-24 15:05:15 -07:00
|
|
|
&(cfdata->match_e17_icon_theme));
|
|
|
|
e_widget_list_object_append(o, checkbox, 0, 0, 0.0);
|
|
|
|
|
2012-07-02 01:09:17 -07:00
|
|
|
checkbox = e_widget_check_add(evas, _("Icons override general theme"),
|
2010-07-27 08:12:40 -07:00
|
|
|
&(cfdata->overrides));
|
2010-03-08 18:46:07 -08:00
|
|
|
e_widget_list_object_append(o, checkbox, 0, 0, 0.0);
|
|
|
|
|
2006-08-29 23:39:24 -07:00
|
|
|
e_dialog_resizable_set(cfd->dia, 1);
|
|
|
|
|
2009-03-03 17:51:16 -08:00
|
|
|
if (cfdata->fill_icon_themes_delayed)
|
|
|
|
free(ecore_idler_del(cfdata->fill_icon_themes_delayed));
|
2006-08-19 20:51:54 -07:00
|
|
|
|
2009-03-03 17:51:16 -08:00
|
|
|
d = malloc(sizeof(*d));
|
|
|
|
d->l = NULL;
|
|
|
|
d->cfdata = cfdata;
|
|
|
|
d->themes_loaded = 0;
|
|
|
|
d->evas = evas;
|
|
|
|
cfdata->fill_icon_themes_delayed = ecore_idler_add(_fill_icon_themes, d);
|
* estickies,
* etk,
* PROTO/exalt,
* E-MODULES-EXTRA/diskio,
* E-MODULES-EXTRA/drawer,
* E-MODULES-EXTRA/penguins,
* E-MODULES-EXTRA/slideshow,
* E-MODULES-EXTRA/mail,
* E-MODULES-EXTRA/forecasts,
* E-MODULES-EXTRA/iiirk,
* E-MODULES-EXTRA/places,
* e,
* ewl,
* ecore,
* elitaire,
* entrance,
* e_dbus,
* efreet: Here we go, move from Ecore_List to Eina_List.
NOTE: This patch is huge, I did test it a lot, and I hope nothing is
broken. But if you think something change after this commit, please
contact me ASAP.
SVN revision: 39200
2009-02-25 03:03:47 -08:00
|
|
|
|
2009-03-03 17:51:16 -08:00
|
|
|
return o;
|
2006-08-19 20:51:54 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
static int
|
2008-10-27 03:46:43 -07:00
|
|
|
_sort_icon_themes(const void *data1, const void *data2)
|
2006-08-19 20:51:54 -07:00
|
|
|
{
|
2008-10-27 03:46:43 -07:00
|
|
|
const Efreet_Icon_Theme *m1, *m2;
|
2006-08-19 20:51:54 -07:00
|
|
|
|
|
|
|
if (!data2) return -1;
|
|
|
|
|
|
|
|
m1 = data1;
|
|
|
|
m2 = data2;
|
2006-08-19 22:30:42 -07:00
|
|
|
|
2007-03-24 04:26:47 -07:00
|
|
|
if (!m1->name.name) return 1;
|
|
|
|
if (!m2->name.name) return -1;
|
2006-08-19 22:30:42 -07:00
|
|
|
|
2012-07-02 01:09:17 -07:00
|
|
|
return strcmp(m1->name.name, m2->name.name);
|
2006-08-19 20:51:54 -07:00
|
|
|
}
|
2010-03-08 18:46:07 -08:00
|
|
|
|
|
|
|
static Evas_Object *
|
|
|
|
_icon_new(Evas *evas, const char *theme, const char *icon, unsigned int size)
|
|
|
|
{
|
|
|
|
Evas_Object *o;
|
2010-11-09 12:15:55 -08:00
|
|
|
const char *path;
|
2010-03-08 18:46:07 -08:00
|
|
|
|
2010-07-27 08:12:40 -07:00
|
|
|
if (!(path = efreet_icon_path_find(theme, icon, size))) return NULL;
|
2010-03-08 18:46:07 -08:00
|
|
|
o = e_icon_add(evas);
|
|
|
|
if (e_icon_file_set(o, path))
|
|
|
|
e_icon_fill_inside_set(o, 1);
|
|
|
|
else
|
|
|
|
{
|
2012-07-02 01:09:17 -07:00
|
|
|
evas_object_del(o);
|
|
|
|
o = NULL;
|
2010-03-08 18:46:07 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
return o;
|
|
|
|
}
|
2012-07-02 01:09:17 -07:00
|
|
|
|