aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-chat-text-view.c
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2009-06-21 00:27:06 +0800
committerJonny Lamb <jonny.lamb@collabora.co.uk>2009-07-10 20:13:24 +0800
commit7deb4ea20b08eab10473f2620c90f6b896d5af10 (patch)
tree0658af67eae180a741bd65a3e92ffe92e8faf497 /libempathy-gtk/empathy-chat-text-view.c
parentfb43069972c8eccefcf1beb28251d1ed23c4a20c (diff)
downloadgsoc2013-empathy-7deb4ea20b08eab10473f2620c90f6b896d5af10.tar
gsoc2013-empathy-7deb4ea20b08eab10473f2620c90f6b896d5af10.tar.gz
gsoc2013-empathy-7deb4ea20b08eab10473f2620c90f6b896d5af10.tar.bz2
gsoc2013-empathy-7deb4ea20b08eab10473f2620c90f6b896d5af10.tar.lz
gsoc2013-empathy-7deb4ea20b08eab10473f2620c90f6b896d5af10.tar.xz
gsoc2013-empathy-7deb4ea20b08eab10473f2620c90f6b896d5af10.tar.zst
gsoc2013-empathy-7deb4ea20b08eab10473f2620c90f6b896d5af10.zip
Use accessor functions instead direct access (Fixes #586476)
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
Diffstat (limited to 'libempathy-gtk/empathy-chat-text-view.c')
-rw-r--r--libempathy-gtk/empathy-chat-text-view.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-chat-text-view.c b/libempathy-gtk/empathy-chat-text-view.c
index abe1fc1f3..d7ebda647 100644
--- a/libempathy-gtk/empathy-chat-text-view.c
+++ b/libempathy-gtk/empathy-chat-text-view.c
@@ -495,7 +495,9 @@ chat_text_view_size_allocate (GtkWidget *widget,
GtkAdjustment *adj;
adj = GTK_TEXT_VIEW (widget)->vadjustment;
- gtk_adjustment_set_value (adj, adj->upper - adj->page_size);
+ gtk_adjustment_set_value (adj,
+ gtk_adjustment_get_upper (adj) -
+ gtk_adjustment_get_page_size (adj));
}
}
@@ -652,7 +654,7 @@ chat_text_view_scroll_cb (EmpathyChatTextView *view)
priv = GET_PRIV (view);
adj = GTK_TEXT_VIEW (view)->vadjustment;
- max_val = adj->upper - adj->page_size;
+ max_val = gtk_adjustment_get_upper (adj) - gtk_adjustment_get_page_size (adj);
g_return_val_if_fail (priv->scroll_time != NULL, FALSE);