From: <enl...@li...> - 2005-04-29 16:52:31
|
Enlightenment CVS committal Author : tsauerbeck Project : e17 Module : apps/euphoria Dir : e17/apps/euphoria/data/themes/winter/groups Modified Files: euphoria.edc Log Message: winter supports the SET_SONGNAME message now =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/euphoria/data/themes/winter/groups/euphoria.edc,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- euphoria.edc 28 Apr 2005 07:46:23 -0000 1.3 +++ euphoria.edc 29 Apr 2005 16:52:23 -0000 1.4 @@ -7,6 +7,29 @@ item, "shaped" "hell yeah"; } + script { + public message (Msg_Type:type, id, ...) + { + switch (id) { + case MSG_ID_SET_SONGNAME: { + new buf[128]; + + if (type != MSG_STRING_SET || numargs () < 5) + return; + + getsarg (2, buf, 128); + set_text (PART:"artist_name", buf); + + getsarg (3, buf, 128); + set_text (PART:"song_name", buf); + + getsarg (4, buf, 128); + set_text (PART:"album_name", buf); + } + } + } + } + parts { #include "../parts/main.edc" #include "../parts/playlist.edc" |