[gimp] Use gtk_adjustment_get_value() instead of adjustment->value



commit 104fc1cd45dca92a693e12c37ea59e837d6a3b08
Author: Michael Natterer <mitch gimp org>
Date:   Fri Oct 9 21:17:42 2009 +0200

    Use gtk_adjustment_get_value() instead of adjustment->value

 plug-ins/ifs-compose/ifs-compose.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/plug-ins/ifs-compose/ifs-compose.c b/plug-ins/ifs-compose/ifs-compose.c
index 997b284..972a5a3 100644
--- a/plug-ins/ifs-compose/ifs-compose.c
+++ b/plug-ins/ifs-compose/ifs-compose.c
@@ -2160,18 +2160,18 @@ value_pair_scale_callback (GtkAdjustment *adjustment,
 
   if (value_pair->type == VALUE_PAIR_DOUBLE)
     {
-      if ((gdouble) *value_pair->data.d != adjustment->value)
+      if ((gdouble) *value_pair->data.d != gtk_adjustment_get_value (adjustment))
         {
           changed = TRUE;
-          *value_pair->data.d = adjustment->value;
+          *value_pair->data.d = gtk_adjustment_get_value (adjustment);
         }
     }
   else
     {
-      if (*value_pair->data.i != (gint) adjustment->value)
+      if (*value_pair->data.i != (gint) gtk_adjustment_get_value (adjustment))
         {
           changed = TRUE;
-          *value_pair->data.i = adjustment->value;
+          *value_pair->data.i = gtk_adjustment_get_value (adjustment);
         }
     }
 



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