Enlightenment CVS committal
Author : tsauerbeck
Project : e17
Module : apps/euphoria
Dir : e17/apps/euphoria/bin
Modified Files:
euphoria
Log Message:
support recursive directory selection in the file dialog \o/. sorting needs to
be fixed though
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/euphoria/bin/euphoria,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -3 -r1.17 -r1.18
--- euphoria 2 May 2005 17:49:13 -0000 1.17
+++ euphoria 2 May 2005 20:26:04 -0000 1.18
@@ -1,6 +1,6 @@
#!/usr/bin/ruby -w
-# $Id: euphoria,v 1.17 2005/05/02 17:49:13 tsauerbeck Exp $
+# $Id: euphoria,v 1.18 2005/05/02 20:26:04 tsauerbeck Exp $
require "ecore"
require "ecore_x"
@@ -12,6 +12,7 @@
require "xmmsclient"
require "singleton"
require "yaml"
+require "find"
require "euphoria/playlist"
require "euphoria/playlist_item"
@@ -216,7 +217,15 @@
@edje.on_signal("file_dialog.open") do
fd =
File.expand_path("~/.xmms2/clients/euphoria/themes/fd.eet")
- FileDialog.open(fd) { |file|
@xmms.playlist_add(file).wait }
+ FileDialog.open(fd) do |sel|
+ if File.directory?(sel)
+ Find.find(sel) do |f|
+ @xmms.playlist_add("file://" +
f).wait
+ end
+ elsif File.exists?(sel)
+ @xmms.playlist_add("file://" +
file).wait
+ end
+ end
end
@edje.on_signal("TOGGLE_REPEAT_MODE") do |sig, source|
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs