Mercurial > audlegacy
changeset 3188:3e008205a777 trunk
Don't display the seek bar if length is -1. There is probably a more efficient way of doing this, but I'm lazy. desowin@ can always fix this later.
author | William Pitcock <nenolod@atheme-project.org> |
---|---|
date | Fri, 27 Jul 2007 19:41:25 -0500 |
parents | 06d89ea93859 |
children | 1745c9063286 |
files | src/audacious/ui_main.c |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/audacious/ui_main.c Fri Jul 27 15:28:34 2007 -0500 +++ b/src/audacious/ui_main.c Fri Jul 27 19:41:25 2007 -0500 @@ -2958,6 +2958,17 @@ g_free(time_str); } + if (length == -1) { + gtk_widget_hide(mainwin_position); + gtk_widget_hide(mainwin_sposition); + return TRUE; + } else { + gtk_widget_show(mainwin_position); + if (cfg.player_shaded) + gtk_widget_show(mainwin_sposition); + return TRUE; + } + time /= 1000; length /= 1000; if (length > 0) {