Enlightenment CVS committal
Author : devilhorns
Project : e_modules
Module : mount
Dir : e_modules/mount
Modified Files:
e_mod_main.c
Log Message:
Patch from Fredrik Elestedt to shorten device labels
===================================================================
RCS file: /cvsroot/enlightenment/e_modules/mount/e_mod_main.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- e_mod_main.c 21 Dec 2005 10:36:30 -0000 1.3
+++ e_mod_main.c 21 Dec 2005 16:09:03 -0000 1.4
@@ -693,7 +693,17 @@
mnticon->txt_object = o;
edje_object_file_set(o, strdup(buffer), "modules/mount/icon");
evas_object_show(o);
- edje_object_part_text_set (o, "label", point->device);
+
+ char *strip = strrchr(point->device, '/');
+ if (!strip)
+ {
+ strip = point->device;
+ }
+ else
+ {
+ strip++;
+ }
+ edje_object_part_text_set (o, "label", strip);
if (mntbox->mnt->conf->show_labels)
{
edje_object_signal_emit(o, "show_label", "");
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs