Commit ee8e1b2a 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/gimpcontainergridview.c: use GtkAdjustment's accessors.


svn path=/trunk/; revision=28207
parent 0251d98b
2009-03-23 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpcontainergridview.c: use GtkAdjustment's accessors.
2009-03-23 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpcontainerbox.c: use accessors instead of
......
......@@ -631,14 +631,16 @@ gimp_container_grid_view_highlight_item (GimpContainerView *container_view,
row = index / grid_view->columns;
if (row * item_height < adj->value)
if (row * item_height < gtk_adjustment_get_value (adj))
{
gtk_adjustment_set_value (adj, row * item_height);
}
else if ((row + 1) * item_height > adj->value + adj->page_size)
else if ((row + 1) * item_height > (gtk_adjustment_get_value (adj) +
gtk_adjustment_get_page_size (adj)))
{
gtk_adjustment_set_value (adj,
(row + 1) * item_height - adj->page_size);
(row + 1) * item_height -
gtk_adjustment_get_page_size (adj));
}
gimp_view_renderer_set_border_type (view->renderer,
......
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