diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2012-11-29 09:20:10 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2012-11-29 22:12:30 +0800 |
commit | 953c9d8adff83f0fe6e605c4ce54b306572be046 (patch) | |
tree | 69671cf91641fb13f2b66736e947c678c4cad4fa /mail/em-folder-tree.c | |
parent | c073de6c4c3fac8a724bd85e570181d7b3f4bd47 (diff) | |
download | gsoc2013-evolution-953c9d8adff83f0fe6e605c4ce54b306572be046.tar.gz gsoc2013-evolution-953c9d8adff83f0fe6e605c4ce54b306572be046.tar.zst gsoc2013-evolution-953c9d8adff83f0fe6e605c4ce54b306572be046.zip |
Avoid gtk_tree_view_get_vadjustment().
Use gtk_scrollable_get_vadjustment() instead.
Diffstat (limited to 'mail/em-folder-tree.c')
-rw-r--r-- | mail/em-folder-tree.c | 4 |
1 files changed, 3 insertions, 1 deletions
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)); |