aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/gui/e-meeting-time-sel.c6
-rw-r--r--mail/em-folder-tree.c4
2 files changed, 6 insertions, 4 deletions
diff --git a/calendar/gui/e-meeting-time-sel.c b/calendar/gui/e-meeting-time-sel.c
index 3747a7be1d..44f4f6521a 100644
--- a/calendar/gui/e-meeting-time-sel.c
+++ b/calendar/gui/e-meeting-time-sel.c
@@ -1343,11 +1343,11 @@ e_meeting_time_selector_vadjustment_changed (GtkAdjustment *adjustment,
EMeetingTimeSelector *mts)
{
GtkAdjustment *vadjustment;
- GtkTreeView *tree_view;
+ GtkScrollable *scrollable;
gdouble value;
- tree_view = GTK_TREE_VIEW (mts->list_view);
- vadjustment = gtk_tree_view_get_vadjustment (tree_view);
+ scrollable = GTK_SCROLLABLE (mts->list_view);
+ vadjustment = gtk_scrollable_get_vadjustment (scrollable);
value = gtk_adjustment_get_value (adjustment);
gtk_adjustment_set_value (vadjustment, value);
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c
index 8061356ba4..4226d5663a 100644
--- a/mail/em-folder-tree.c
+++ b/mail/em-folder-tree.c
@@ -2651,6 +2651,7 @@ tree_autoscroll (EMFolderTree *folder_tree)
{
GtkAdjustment *adjustment;
GtkTreeView *tree_view;
+ GtkScrollable *scrollable;
GdkRectangle rect;
GdkWindow *window;
gdouble value;
@@ -2677,7 +2678,8 @@ tree_autoscroll (EMFolderTree *folder_tree)
return TRUE;
}
- adjustment = gtk_tree_view_get_vadjustment (tree_view);
+ scrollable = GTK_SCROLLABLE (folder_tree);
+ adjustment = gtk_scrollable_get_vadjustment (scrollable);
value = gtk_adjustment_get_value (adjustment);
gtk_adjustment_set_value (adjustment, MAX (value + offset, 0.0));