Enlightenment CVS committal Author : tsauerbeck Project : e17 Module : apps/euphoria
Dir : e17/apps/euphoria/bin Modified Files: euphoria Log Message: added a simple file dialog, based on the one from esmart. needs lots of tweaking yet =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/euphoria/bin/euphoria,v retrieving revision 1.16 retrieving revision 1.17 diff -u -3 -r1.16 -r1.17 --- euphoria 29 Apr 2005 16:34:05 -0000 1.16 +++ euphoria 2 May 2005 17:49:13 -0000 1.17 @@ -1,6 +1,6 @@ #!/usr/bin/ruby -w -# $Id: euphoria,v 1.16 2005/04/29 16:34:05 tsauerbeck Exp $ +# $Id: euphoria,v 1.17 2005/05/02 17:49:13 tsauerbeck Exp $ require "ecore" require "ecore_x" @@ -18,6 +18,7 @@ require "euphoria/slider" require "euphoria/playtime_updater" require "euphoria/playback_status_handler" +require "euphoria/file_dialog" Config = Struct.new("Config", :ipc_path, :theme, :time_display_elapsed) @@ -213,6 +214,11 @@ @edje.on_signal("playlist.open") { @playlist.show(@theme, true) } + @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 } + end + @edje.on_signal("TOGGLE_REPEAT_MODE") do |sig, source| # don't react on our own emission next if source == "Euphoria" ------------------------------------------------------- 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 enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs