Enlightenment CVS committal

Author  : atmosphere
Project : e17
Module  : apps/entice

Dir     : e17/apps/entice/src/bin


Modified Files:
        entice.c 


Log Message:
support EnticeFileShortName
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/entice/src/bin/entice.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -3 -r1.36 -r1.37
--- entice.c    1 Mar 2004 05:52:22 -0000       1.36
+++ entice.c    2 Mar 2004 22:07:58 -0000       1.37
@@ -219,6 +219,7 @@
 void
 _entice_thumb_load(void *_data, Evas * _e, Evas_Object * _o, void *_ev)
 {
+   const char *tmpstr = NULL;
    Evas_Object *o = NULL;
    Evas_Object *tmp = NULL;
    Evas_Object *new_current = NULL, *new_scroller;
@@ -229,7 +230,6 @@
       int iw, ih;
       Evas_Coord w, h;
       int should_fit = 0;
-      int cache;
       char buf[PATH_MAX];
 
       if ((entice->current) && entice_image_file_get(entice->current)
@@ -293,7 +293,12 @@
          edje_object_part_text_set(entice->edje, "EnticeFileDimensions", buf);
          edje_object_part_text_set(entice->edje, "EnticeFileName",
                                    e_thumb_file_get(o));
-         snprintf(buf, PATH_MAX, "Entice: %s", e_thumb_file_get(o));
+       if((tmpstr = strrchr(e_thumb_file_get(o), '/')))
+           edje_object_part_text_set(entice->edje, "EnticeFileShortName",
+                                       tmpstr + 1);
+         /* FIXME: Support FileSize also */
+
+        snprintf(buf, PATH_MAX, "Entice: %s", e_thumb_file_get(o));
          ecore_evas_title_set(entice->ee, buf);
 
          entice->thumb.current =




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to