changeset 2634:43a07a0607da

make playlistwin_update_info and playlistwin_update_sinfo working
author Tomasz Mon <desowin@gmail.com>
date Thu, 22 May 2008 21:42:31 +0200
parents 8e4af29f7e17
children b990e7eb0c25
files src/skins/ui_playlist.c
diffstat 1 files changed, 5 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/src/skins/ui_playlist.c	Thu May 22 20:26:00 2008 +0200
+++ b/src/skins/ui_playlist.c	Thu May 22 21:42:31 2008 +0200
@@ -53,8 +53,8 @@
 #include "ui_equalizer.h"
 #if 0
 #include "ui_fileinfo.h"
+#endif
 #include "ui_fileopener.h"
-#endif
 #include "ui_main.h"
 #include "ui_manager.h"
 #include "ui_playlist_evlisteners.h"
@@ -138,7 +138,8 @@
 static void
 playlistwin_update_info(Playlist *playlist)
 {
-#if 0
+    g_return_if_fail(playlist != NULL);
+
     gchar *text, *sel_text, *tot_text;
     gulong selection, total;
     gboolean selection_more, total_more;
@@ -176,13 +177,13 @@
     g_free(text);
     g_free(tot_text);
     g_free(sel_text);
-#endif
 }
 
 static void
 playlistwin_update_sinfo(Playlist *playlist)
 {
-#if 0
+    g_return_if_fail(playlist != NULL);
+
     gchar *posstr, *timestr, *title, *info;
     gint pos, time;
 
@@ -218,7 +219,6 @@
 
     ui_skinned_textbox_set_text(playlistwin_sinfo, info ? info : "");
     g_free(info);
-#endif
 }
 
 gboolean
@@ -703,9 +703,7 @@
 static void
 playlistwin_show_filebrowser(void)
 {
-#if 0
     run_filebrowser(NO_PLAY_BUTTON);
-#endif
 }
 
 static void
@@ -1817,9 +1815,7 @@
 void
 action_playlist_add_files(void)
 {
-#if 0
     run_filebrowser(NO_PLAY_BUTTON);
-#endif
 }
 
 void