Enlightenment CVS committal Author : tsauerbeck Project : e17 Module : apps/euphoria
Dir : e17/apps/euphoria/bin Modified Files: euphoria Log Message: shut down euphoria gracefully when the xmms2 daemon quits. requires latest xmms2 ruby bindings =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/euphoria/bin/euphoria,v retrieving revision 1.26 retrieving revision 1.27 diff -u -3 -r1.26 -r1.27 --- euphoria 9 May 2005 16:11:10 -0000 1.26 +++ euphoria 19 May 2005 18:18:43 -0000 1.27 @@ -1,6 +1,6 @@ #!/usr/bin/ruby -w -# $Id: euphoria,v 1.26 2005/05/09 16:11:10 tsauerbeck Exp $ +# $Id: euphoria,v 1.27 2005/05/19 18:18:43 tsauerbeck Exp $ require "ecore" require "ecore_x" @@ -174,6 +174,11 @@ @xmms = XmmsClient::XmmsClient.new("Euphoria") @xmms.connect(@config.ipc_path) @xmms.add_to_ecore_mainloop + + @xmms.on_disconnect do + puts "daemon exited, shutting down" + Ecore.main_loop_quit + end end def setup_callbacks ------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs