Enlightenment CVS committal

Author  : rephorm
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_thumb.c e_thumb.h e_widget_desk_preview.c 


Log Message:
add e_thumb_icon_rethumb() - allows re-thumbing after changing e.g. the size to 
thumb at
use rethumb in desk preview

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_thumb.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -3 -r1.37 -r1.38
--- e_thumb.c   28 Jul 2006 11:27:59 -0000      1.37
+++ e_thumb.c   18 Oct 2006 03:31:45 -0000      1.38
@@ -180,6 +180,20 @@
 }
 
 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)
 {
    int objid;
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_thumb.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- e_thumb.h   28 Jul 2006 11:27:59 -0000      1.7
+++ e_thumb.h   18 Oct 2006 03:31:45 -0000      1.8
@@ -16,6 +16,7 @@
 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);
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_widget_desk_preview.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- e_widget_desk_preview.c     16 Oct 2006 23:45:16 -0000      1.3
+++ e_widget_desk_preview.c     18 Oct 2006 03:31:45 -0000      1.4
@@ -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_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
          {



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to