summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-04-18 21:20:26 +0200
committerGravatar waker <wakeroid@gmail.com>2011-04-18 21:20:26 +0200
commitd72d9ff569b7493b770c1f26662a4b5d30f7fa70 (patch)
treeb1e9cb57c1ec02f8cbc33b538afa4b58c936ebec /plugins
parent2eddf4d3a57a54fb75aeb622e7fd0f6eaaa6982f (diff)
call ddb_listview_groupcheck from setup_vscroll
Diffstat (limited to 'plugins')
-rw-r--r--plugins/gtkui/ddblistview.c4
-rw-r--r--plugins/gtkui/ddblistview.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/plugins/gtkui/ddblistview.c b/plugins/gtkui/ddblistview.c
index a2c4bd16..588439c6 100644
--- a/plugins/gtkui/ddblistview.c
+++ b/plugins/gtkui/ddblistview.c
@@ -1090,6 +1090,7 @@ colhdr_anim_swap (DdbListview *pl, int c1, int c2, int x1, int x2) {
void
ddb_listview_list_setup_vscroll (DdbListview *ps) {
+ ddb_listview_groupcheck (ps);
GtkWidget *list = ps->list;
GtkWidget *scroll = ps->scrollbar;
int vheight = ps->fullheight;
@@ -2960,7 +2961,8 @@ ddb_listview_build_groups (DdbListview *listview) {
}
void
-ddb_listview_set_vscroll (DdbListview *listview, gboolean scroll) {
+ddb_listview_set_vscroll (DdbListview *listview, int scroll) {
+ GtkAdjustment *adj = gtk_range_get_adjustment (GTK_RANGE (listview->scrollbar));
gtk_range_set_value (GTK_RANGE (listview->scrollbar), scroll);
}
diff --git a/plugins/gtkui/ddblistview.h b/plugins/gtkui/ddblistview.h
index ed1334e8..33677205 100644
--- a/plugins/gtkui/ddblistview.h
+++ b/plugins/gtkui/ddblistview.h
@@ -180,7 +180,7 @@ ddb_listview_set_cursor_noscroll (DdbListview *pl, int cursor);
void
ddb_listview_scroll_to (DdbListview *listview, int rowpos);
void
-ddb_listview_set_vscroll (DdbListview *listview, gboolean scroll);
+ddb_listview_set_vscroll (DdbListview *listview, int scroll);
int
ddb_listview_is_scrolling (DdbListview *listview);
int