Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/bin/tests/combo


Modified Files:
        ewl_combo.c 


Log Message:
shorten the label text a bit

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/combo/ewl_combo.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -3 -r1.12 -r1.13
--- ewl_combo.c 29 Mar 2007 23:16:00 -0000      1.12
+++ ewl_combo.c 29 Mar 2007 23:41:30 -0000      1.13
@@ -347,12 +347,12 @@
        ewl_object_alignment_set(EWL_OBJECT(w), EWL_FLAG_ALIGN_LEFT);
 
        o = ewl_image_new();
-       ewl_image_file_path_set(EWL_IMAGE(o), (char *)data);
+       ewl_image_file_path_set(EWL_IMAGE(o), (const char *)data);
        ewl_container_child_append(EWL_CONTAINER(w), o);
        ewl_widget_show(o);
 
        o = ewl_label_new();
-       ewl_label_text_set(EWL_LABEL(o), (char *)data);
+       ewl_label_text_set(EWL_LABEL(o), strrchr((const char *)data, '/') + 1);
        ewl_container_child_append(EWL_CONTAINER(w), o);
        ewl_widget_show(o);
 



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to