diff options
author | 2009-08-11 19:02:27 +0200 | |
---|---|---|
committer | 2009-08-11 19:02:36 +0200 | |
commit | 36718c29869e13707d9b9bde7eb66418e5747494 (patch) | |
tree | 1f59141cf8d91d9c719146d12963a3039cc4d473 /gtkplaylist.c | |
parent | 06a93606f6599e87c2522a2a8feca44efff2bdb0 (diff) |
fixed some scrolling issues
removed voice muting buttons
Diffstat (limited to 'gtkplaylist.c')
-rw-r--r-- | gtkplaylist.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtkplaylist.c b/gtkplaylist.c index 41624580..4b5fc43b 100644 --- a/gtkplaylist.c +++ b/gtkplaylist.c @@ -125,6 +125,11 @@ gtkpl_setup_scrollbar (gtkplaylist_t *ps) { size = 0; } GtkWidget *scroll = ps->scrollbar; + if (ps->scrollpos > (*ps->pcount)-ps->nvisiblerows+1) { + int n = (*ps->pcount) - ps->nvisiblerows + 1; + ps->scrollpos = max (0, n); + gtk_range_set_value (GTK_RANGE (scroll), ps->scrollpos); + } if (size == 0) { gtk_widget_hide (scroll); } |