[evolution] Avoid gtk_tree_view_get_vadjustment().
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Avoid gtk_tree_view_get_vadjustment().
- Date: Thu, 29 Nov 2012 14:12:39 +0000 (UTC)
commit 953c9d8adff83f0fe6e605c4ce54b306572be046
Author: Matthew Barnes <mbarnes redhat com>
Date: Wed Nov 28 20:20:10 2012 -0500
Avoid gtk_tree_view_get_vadjustment().
Use gtk_scrollable_get_vadjustment() instead.
calendar/gui/e-meeting-time-sel.c | 6 +++---
mail/em-folder-tree.c | 4 +++-
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 3747a7b..44f4f65 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 8061356..4226d56 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));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]