[gimp] Use GtkAdjustment's accessors



commit f5115e06ec00a098df280f3cdf50adc2b42a9897
Author: Michael Natterer <mitch gimp org>
Date:   Fri Oct 9 12:02:55 2009 +0200

    Use GtkAdjustment's accessors

 plug-ins/script-fu/script-fu-console.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/script-fu/script-fu-console.c b/plug-ins/script-fu/script-fu-console.c
index 456a54b..f44dd62 100644
--- a/plug-ins/script-fu/script-fu-console.c
+++ b/plug-ins/script-fu/script-fu-console.c
@@ -484,7 +484,9 @@ script_fu_console_idle_scroll_end (GtkWidget *view)
 {
   GtkAdjustment *adj = GTK_TEXT_VIEW (view)->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));
 
   g_object_unref (view);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]