gimp r28207 - in trunk: . app/widgets
- From: mitch svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r28207 - in trunk: . app/widgets
- Date: Sun, 22 Mar 2009 23:10:27 +0000 (UTC)
Author: mitch
Date: Sun Mar 22 23:10:26 2009
New Revision: 28207
URL: http://svn.gnome.org/viewvc/gimp?rev=28207&view=rev
Log:
2009-03-23 Michael Natterer <mitch gimp org>
* app/widgets/gimpcontainergridview.c: use GtkAdjustment's accessors.
Modified:
trunk/ChangeLog
trunk/app/widgets/gimpcontainergridview.c
Modified: trunk/app/widgets/gimpcontainergridview.c
==============================================================================
--- trunk/app/widgets/gimpcontainergridview.c (original)
+++ trunk/app/widgets/gimpcontainergridview.c Sun Mar 22 23:10:26 2009
@@ -631,14 +631,16 @@
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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]