changeset 632:6bc44654ebba trunk

[svn] Do not show 00:00 when stopped in shaded mode, closes bug #390.
author chainsaw
date Sun, 12 Feb 2006 07:12:26 -0800
parents 67c15526400a
children bf9bc9a514ba
files audacious/mainwin.c
diffstat 1 files changed, 20 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/audacious/mainwin.c	Sat Feb 11 09:10:33 2006 -0800
+++ b/audacious/mainwin.c	Sun Feb 12 07:12:26 2006 -0800
@@ -531,14 +531,21 @@
         widget_show(WIDGET(mainwin_sfwd));
         widget_show(WIDGET(mainwin_seject));
 
-        widget_show(WIDGET(mainwin_stime_min));
-        widget_show(WIDGET(mainwin_stime_sec));
-
         textbox_set_scroll(mainwin_info, FALSE);
         if (bmp_playback_get_playing()
             && playlist_get_current_length() != -1)
-            widget_show(WIDGET(mainwin_sposition));
-
+		{
+            	widget_show(WIDGET(mainwin_sposition));
+	        widget_show(WIDGET(mainwin_stime_min));
+        	widget_show(WIDGET(mainwin_stime_sec));
+		}
+	else
+		{
+            	widget_hide(WIDGET(mainwin_sposition));
+	        widget_hide(WIDGET(mainwin_stime_min));
+        	widget_hide(WIDGET(mainwin_stime_sec));
+		}
+	
         mainwin_shade->pb_ny = mainwin_shade->pb_py = 27;
     }
     else {
@@ -825,6 +832,12 @@
 
     monostereo_set_num_channels(mainwin_monostereo, n_channels);
 
+    if (cfg.player_shaded)
+    {
+	widget_show(WIDGET(mainwin_stime_min));
+	widget_show(WIDGET(mainwin_stime_sec));
+    }
+
     widget_show(WIDGET(mainwin_minus_num));
     widget_show(WIDGET(mainwin_10min_num));
     widget_show(WIDGET(mainwin_min_num));
@@ -882,8 +895,8 @@
     widget_hide(WIDGET(mainwin_10sec_num));
     widget_hide(WIDGET(mainwin_sec_num));
 
-    textbox_set_text(mainwin_stime_min, "   ");
-    textbox_set_text(mainwin_stime_sec, "  ");
+    widget_hide(WIDGET(mainwin_stime_min));
+    widget_hide(WIDGET(mainwin_stime_sec));
 
     widget_hide(WIDGET(mainwin_position));
     widget_hide(WIDGET(mainwin_sposition));