From: <enl...@li...> - 2004-03-01 23:04:47
|
Enlightenment CVS committal Author : atmosphere Project : e17 Module : apps/euphoria Dir : e17/apps/euphoria/src Modified Files: callbacks.c callbacks.h interface.c euphoria.c Log Message: add a CLOSE signal so you can close euphoria without stopping playback =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/euphoria/src/callbacks.c,v retrieving revision 1.17 retrieving revision 1.18 diff -u -3 -r1.17 -r1.18 --- callbacks.c 1 Mar 2004 22:21:48 -0000 1.17 +++ callbacks.c 1 Mar 2004 22:45:36 -0000 1.18 @@ -1,5 +1,5 @@ /* - * $Id: callbacks.c,v 1.17 2004/03/01 22:21:48 atmosphere Exp $ + * $Id: callbacks.c,v 1.18 2004/03/01 22:45:36 atmosphere Exp $ * vim:noexpandtab:sw=4:sts=4:ts=4 */ @@ -269,6 +269,11 @@ } EDJE_CB(euphoria_quit) { + xmmsc_playback_stop(e->xmms); + ecore_main_loop_quit(); +} + +EDJE_CB(euphoria_close) { ecore_main_loop_quit(); } =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/euphoria/src/callbacks.h,v retrieving revision 1.6 retrieving revision 1.7 diff -u -3 -r1.6 -r1.7 --- callbacks.h 1 Mar 2004 22:17:36 -0000 1.6 +++ callbacks.h 1 Mar 2004 22:45:36 -0000 1.7 @@ -2,7 +2,7 @@ #define __CALLBACKS_H /* - * $Id: callbacks.h,v 1.6 2004/03/01 22:17:36 atmosphere Exp $ + * $Id: callbacks.h,v 1.7 2004/03/01 22:45:36 atmosphere Exp $ * vim:noexpandtab:sw=4:sts=4:ts=4 */ @@ -51,6 +51,7 @@ EDJE_CB(playlist_item_selected); EDJE_CB(euphoria_quit); +EDJE_CB(euphoria_close); EDJE_CB(switch_group); EDJE_CB(update_seeker); =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/euphoria/src/interface.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -3 -r1.8 -r1.9 --- interface.c 1 Mar 2004 22:17:36 -0000 1.8 +++ interface.c 1 Mar 2004 22:45:36 -0000 1.9 @@ -1,5 +1,5 @@ /* - * $Id: interface.c,v 1.8 2004/03/01 22:17:36 atmosphere Exp $ + * $Id: interface.c,v 1.9 2004/03/01 22:45:36 atmosphere Exp $ * vim:noexpandtab:sw=4:sts=4:ts=4 */ @@ -251,6 +251,8 @@ EdjeCallback cb[] = { {"QUIT", "*", (EdjeCb) on_edje_euphoria_quit}, + {"CLOSE", "*", + (EdjeCb) on_edje_euphoria_close}, {"PLAY_PREVIOUS", "*", (EdjeCb) on_edje_track_prev}, {"PLAY_NEXT", "*", =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/euphoria/src/euphoria.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -3 -r1.8 -r1.9 --- euphoria.c 29 Feb 2004 14:52:07 -0000 1.8 +++ euphoria.c 1 Mar 2004 22:45:36 -0000 1.9 @@ -1,5 +1,5 @@ /* - * $Id: euphoria.c,v 1.8 2004/02/29 14:52:07 atmosphere Exp $ + * $Id: euphoria.c,v 1.9 2004/03/01 22:45:36 atmosphere Exp $ * vim:noexpandtab:sw=4:sts=4:ts=4 */ @@ -57,8 +57,6 @@ if (!e) return; - xmmsc_playback_stop(e->xmms); - playlist_free(e->playlist); ui_shutdown(e); |