[goobox] print the playlist after creating a new one



commit c816a07be3c65335748befb9a96a19d5b11db8c1
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Mon Mar 18 20:33:45 2013 +0100

    print the playlist after creating a new one

 src/goo-window.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/goo-window.c b/src/goo-window.c
index afee0ff..c585ffa 100644
--- a/src/goo-window.c
+++ b/src/goo-window.c
@@ -626,12 +626,14 @@ add_columns (GooWindow   *window,
 static void
 print_playlist (GooWindow *window)
 {
+#ifdef DEBUG
        GList *scan;
 
        debug (DEBUG_INFO, "PLAYLIST: ");
        for (scan = window->priv->playlist; scan; scan = scan->next)
                debug (DEBUG_INFO, "%d, ", GPOINTER_TO_INT (scan->data));
        debug (DEBUG_INFO, "\n");
+#endif
 }
 
 
@@ -815,6 +817,8 @@ create_playlist (GooWindow *window,
        }
 
        window->priv->playlist = playlist;
+
+       print_playlist (window);
 }
 
 
@@ -888,8 +892,6 @@ play_next_track_in_playlist (GooWindow *window)
                next = window->priv->playlist;
        }
 
-       print_playlist (window);
-
        if (next != NULL) {
                int pos;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]