e: enable preload for edje in e_widget_preview.
SVN revision: 83720
This commit is contained in:
parent
a4ef12329e
commit
a17844935b
|
@ -1,3 +1,7 @@
|
||||||
|
2013-02-07 Cedric Bail
|
||||||
|
|
||||||
|
* enable image preloading for all e_widget_preview using edje
|
||||||
|
|
||||||
2013-02-07 Mike Blumenkrantz
|
2013-02-07 Mike Blumenkrantz
|
||||||
|
|
||||||
* added option for remembering filemanager windows globally
|
* added option for remembering filemanager windows globally
|
||||||
|
|
1
NEWS
1
NEWS
|
@ -96,6 +96,7 @@ Improvements:
|
||||||
* new tab in focus settings for pointer warping
|
* new tab in focus settings for pointer warping
|
||||||
* unify all pointer warp animators
|
* unify all pointer warp animators
|
||||||
* clock listens to /etc/timezone changes now too
|
* clock listens to /etc/timezone changes now too
|
||||||
|
* enable image preloading for all e_widget_preview using edje
|
||||||
|
|
||||||
Fixes:
|
Fixes:
|
||||||
* IBar menu didn't allow to configure different icon sources, show contents menu even on empty IBar.
|
* IBar menu didn't allow to configure different icon sources, show contents menu even on empty IBar.
|
||||||
|
|
|
@ -167,6 +167,16 @@ e_widget_preview_file_get(Evas_Object *obj, const char **file, const char **grou
|
||||||
edje_object_file_get(wd->o_thumb, file, group);
|
edje_object_file_get(wd->o_thumb, file, group);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
_e_widget_preview_edje_preloaded(void *data, Evas_Object *obj,
|
||||||
|
const char *emission EINA_UNUSED,
|
||||||
|
const char *source EINA_UNUSED)
|
||||||
|
{
|
||||||
|
E_Widget_Data *wd = data;
|
||||||
|
|
||||||
|
evas_object_show(wd->o_thumb);
|
||||||
|
}
|
||||||
|
|
||||||
EAPI int
|
EAPI int
|
||||||
e_widget_preview_edje_set(Evas_Object *obj, const char *file, const char *group)
|
e_widget_preview_edje_set(Evas_Object *obj, const char *file, const char *group)
|
||||||
{
|
{
|
||||||
|
@ -177,7 +187,9 @@ e_widget_preview_edje_set(Evas_Object *obj, const char *file, const char *group)
|
||||||
if (wd->o_thumb) evas_object_del(wd->o_thumb);
|
if (wd->o_thumb) evas_object_del(wd->o_thumb);
|
||||||
wd->o_thumb = edje_object_add(e_livethumb_evas_get(wd->img));
|
wd->o_thumb = edje_object_add(e_livethumb_evas_get(wd->img));
|
||||||
ret = edje_object_file_set(wd->o_thumb, file, group);
|
ret = edje_object_file_set(wd->o_thumb, file, group);
|
||||||
evas_object_show(wd->o_thumb);
|
edje_object_signal_callback_add(wd->o_thumb,
|
||||||
|
"preload,done", "",
|
||||||
|
_e_widget_preview_edje_preloaded, wd);
|
||||||
e_livethumb_thumb_set(wd->img, wd->o_thumb);
|
e_livethumb_thumb_set(wd->img, wd->o_thumb);
|
||||||
|
|
||||||
e_widget_change(obj);
|
e_widget_change(obj);
|
||||||
|
|
Loading…
Reference in New Issue