forked from enlightenment/enlightenment
add e_thumb_icon_rethumb() - allows re-thumbing after changing e.g. the size to thumb at
use rethumb in desk preview SVN revision: 26679
This commit is contained in:
parent
f780a2408e
commit
71fcf80be5
|
@ -179,6 +179,20 @@ e_thumb_icon_end(Evas_Object *obj)
|
|||
}
|
||||
}
|
||||
|
||||
EAPI void
|
||||
e_thumb_icon_rethumb(Evas_Object *obj)
|
||||
{
|
||||
E_Thumb *eth;
|
||||
eth = evas_object_data_get(obj, "e_thumbdata");
|
||||
if (!eth) return;
|
||||
|
||||
if (eth->done) eth->done = 0;
|
||||
else e_thumb_icon_end(obj);
|
||||
|
||||
e_thumb_icon_begin(obj);
|
||||
}
|
||||
|
||||
|
||||
EAPI void
|
||||
e_thumb_client_data(Ecore_Ipc_Event_Client_Data *e)
|
||||
{
|
||||
|
|
|
@ -16,6 +16,7 @@ EAPI void e_thumb_icon_file_set(Evas_Object *obj, const char *f
|
|||
EAPI void e_thumb_icon_size_set(Evas_Object *obj, int w, int h);
|
||||
EAPI void e_thumb_icon_begin(Evas_Object *obj);
|
||||
EAPI void e_thumb_icon_end(Evas_Object *obj);
|
||||
EAPI void e_thumb_icon_rethumb(Evas_Object *obj);
|
||||
|
||||
EAPI void e_thumb_client_data(Ecore_Ipc_Event_Client_Data *e);
|
||||
EAPI void e_thumb_client_del(Ecore_Ipc_Event_Client_Del *e);
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
|
||||
/*
|
||||
* XXX need to detect when bg's change and update
|
||||
* XXX thumb doesn't properly change size
|
||||
*/
|
||||
#include "e.h"
|
||||
|
||||
|
@ -164,7 +163,7 @@ _e_wid_reconfigure(E_Widget_Data *wd)
|
|||
e_widget_min_size_set(dw, mw, mh);
|
||||
e_widget_table_object_repack(wd->table, dw, dd->x, dd->y, 1, 1, 1, 1, 1, 1);
|
||||
e_thumb_icon_size_set(dd->thumb, tw, th);
|
||||
e_thumb_icon_begin(dd->thumb); /* XXX this isn't working - never ggetting new thumb */
|
||||
e_thumb_icon_rethumb(dd->thumb);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue