gimp r28208 - in trunk: . app/widgets



Author: mitch
Date: Sun Mar 22 23:13:15 2009
New Revision: 28208
URL: http://svn.gnome.org/viewvc/gimp?rev=28208&view=rev

Log:
2009-03-23  Michael Natterer  <mitch gimp org>

	* app/widgets/gimpcontainertreeview-dnd.c: use GtkAdjustment's
	accessors.



Modified:
   trunk/ChangeLog
   trunk/app/widgets/gimpcontainertreeview-dnd.c

Modified: trunk/app/widgets/gimpcontainertreeview-dnd.c
==============================================================================
--- trunk/app/widgets/gimpcontainertreeview-dnd.c	(original)
+++ trunk/app/widgets/gimpcontainertreeview-dnd.c	Sun Mar 22 23:13:15 2009
@@ -189,7 +189,10 @@
   else
     new_value = gtk_adjustment_get_value (adj) + SCROLL_STEP;
 
-  new_value = CLAMP (new_value, adj->lower, adj->upper - adj->page_size);
+  new_value = CLAMP (new_value,
+                     gtk_adjustment_get_lower (adj),
+                     gtk_adjustment_get_upper (adj) -
+                     gtk_adjustment_get_page_size (adj));
 
   gtk_adjustment_set_value (adj, new_value);
 



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