Enlightenment CVS committal

Author  : tsauerbeck
Project : e17
Module  : apps/euphoria

Dir     : e17/apps/euphoria/src


Modified Files:
        callbacks.c interface.c playlist.c 


Log Message:
when an item is added to an empty playlist, make the new item the current item. 
sanitized ui_zero_track_info(). indentation fixes.
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/euphoria/src/callbacks.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -3 -r1.19 -r1.20
--- callbacks.c 9 Mar 2004 18:45:06 -0000       1.19
+++ callbacks.c 14 Mar 2004 13:27:31 -0000      1.20
@@ -1,5 +1,5 @@
 /*
- * $Id: callbacks.c,v 1.19 2004/03/09 18:45:06 tsauerbeck Exp $
+ * $Id: callbacks.c,v 1.20 2004/03/14 13:27:31 tsauerbeck Exp $
  * vim:noexpandtab:sw=4:sts=4:ts=4
  */
 
@@ -619,15 +619,14 @@
        int i, *ids = NULL;
        PlayListItem *pli = NULL;
 
-       if ((ids = xmmscs_playlist_list(e->xmms))) {
-           for(i = 0; ids[i]; i++) {
-               if((pli = playlist_item_find_by_id(e->playlist, ids[i]))) {
-                   e_container_element_remove(pli->container, pli->edje);
-                   e_container_element_append(pli->container, pli->edje);
-               }
-               else {
-                   fprintf(stderr, "Unable to find %d: %d\n", i, ids[i]);
-               }
-           }
+       if (!(ids = xmmscs_playlist_list(e->xmms)))
+               return;
+
+       for (i = 0; ids[i]; i++) {
+               if ((pli = playlist_item_find_by_id(e->playlist, ids[i]))) {
+                       e_container_element_remove(pli->container, pli->edje);
+                       e_container_element_append(pli->container, pli->edje);
+               } else
+                       fprintf(stderr, "Unable to find %d: %d\n", i, ids[i]);
        }
 }
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/euphoria/src/interface.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- interface.c 1 Mar 2004 22:45:36 -0000       1.9
+++ interface.c 14 Mar 2004 13:27:31 -0000      1.10
@@ -1,5 +1,5 @@
 /*
- * $Id: interface.c,v 1.9 2004/03/01 22:45:36 atmosphere Exp $
+ * $Id: interface.c,v 1.10 2004/03/14 13:27:31 tsauerbeck Exp $
  * vim:noexpandtab:sw=4:sts=4:ts=4
  */
 
@@ -376,7 +376,7 @@
        edje_object_part_text_set(e->gui.edje, "song_name", "");
        edje_object_part_text_set(e->gui.edje, "artist_name", "");
        edje_object_part_text_set(e->gui.edje, "album_name", "");
-       edje_object_part_text_set(e->gui.edje, "track_samplerate", "44.1");
-       edje_object_part_text_set(e->gui.edje, "track_bitrate", "192");
+       edje_object_part_text_set(e->gui.edje, "track_samplerate", "---");
+       edje_object_part_text_set(e->gui.edje, "track_bitrate", "---");
        edje_object_part_text_set(e->gui.edje, "time_text", "0:00");
 }
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/euphoria/src/playlist.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- playlist.c  28 Feb 2004 08:40:05 -0000      1.7
+++ playlist.c  14 Mar 2004 13:27:31 -0000      1.8
@@ -1,5 +1,5 @@
 /*
- * $Id: playlist.c,v 1.7 2004/02/28 08:40:05 tsauerbeck Exp $
+ * $Id: playlist.c,v 1.8 2004/03/14 13:27:31 tsauerbeck Exp $
  * vim:noexpandtab:sw=4:sts=4:ts=4
  */
 
@@ -122,6 +122,9 @@
 
        pl->items = evas_list_append(pl->items, pli);
 
+       if (!pl->current_item)
+               pl->current_item = pli;
+
        return pli;
 }
 




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to