# HG changeset patch # User chainsaw # Date 1139757146 28800 # Node ID 6bc44654ebbaa3095aad08ac9a634276f9dc6b01 # Parent 67c15526400ad2c00cfe95f1886d020bcee29a42 [svn] Do not show 00:00 when stopped in shaded mode, closes bug #390. diff -r 67c15526400a -r 6bc44654ebba audacious/mainwin.c --- 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));