Commit a89e8d59 authored by Michael Natterer's avatar Michael Natterer Committed by Michael Natterer

use GtkAdjustment's accessors.

2009-03-23  Michael Natterer  <mitch@gimp.org>

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


svn path=/trunk/; revision=28208
parent ee8e1b2a
2009-03-23 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpcontainertreeview-dnd.c: use GtkAdjustment's
accessors.
2009-03-23 Michael Natterer <mitch@gimp.org> 2009-03-23 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpcontainergridview.c: use GtkAdjustment's accessors. * app/widgets/gimpcontainergridview.c: use GtkAdjustment's accessors.
......
...@@ -189,7 +189,10 @@ gimp_container_tree_view_scroll_timeout (gpointer data) ...@@ -189,7 +189,10 @@ gimp_container_tree_view_scroll_timeout (gpointer data)
else else
new_value = gtk_adjustment_get_value (adj) + SCROLL_STEP; 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); gtk_adjustment_set_value (adj, new_value);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment