Enlightenment CVS committal

Author  : tsauerbeck
Project : e17
Module  : apps/euphoria

Dir     : e17/apps/euphoria/bin


Modified Files:
        euphoria 


Log Message:
look for themes in ~/.e/apps/euphoria/themes again
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/euphoria/bin/euphoria,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- euphoria    27 Apr 2005 20:28:33 -0000      1.8
+++ euphoria    27 Apr 2005 22:44:06 -0000      1.9
@@ -1,6 +1,6 @@
 #!/usr/bin/ruby -w
 
-# $Id: euphoria,v 1.8 2005/04/27 20:28:33 tsauerbeck Exp $
+# $Id: euphoria,v 1.9 2005/04/27 22:44:06 tsauerbeck Exp $
 
 require "ecore"
 require "ecore_x"
@@ -282,7 +282,13 @@
        end
 
        def find_theme(name)
-               DATA_DIR + "/themes/#{name}.edj"
+               dirs = [File.expand_path("~/.e/apps/euphoria"), DATA_DIR]
+               dirs.each do |dir|
+                       tmp = File.join(dir, "/themes/#{name}.edj")
+                       return tmp if File.exist?(tmp)
+               end
+
+               nil
        end
 end
 




-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to