[gthumb] grid view: do not use the adjustment values as it may not be configured yet
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] grid view: do not use the adjustment values as it may not be configured yet
- Date: Sat, 24 Mar 2012 16:18:23 +0000 (UTC)
commit bd575ae8ba2fa162d0ae5c75486dfbd1add6b789
Author: Paolo Bacchilega <paobac src gnome org>
Date: Fri Mar 23 21:36:08 2012 +0100
grid view: do not use the adjustment values as it may not be configured yet
gthumb/gth-grid-view.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gthumb/gth-grid-view.c b/gthumb/gth-grid-view.c
index b8fbf59..1b8520d 100644
--- a/gthumb/gth-grid-view.c
+++ b/gthumb/gth-grid-view.c
@@ -508,9 +508,9 @@ gth_grid_view_scroll_to (GthFileView *file_view,
double value;
h = gtk_widget_get_allocated_height (GTK_WIDGET (self)) - GTH_GRID_VIEW_LINE (line->data)->height - self->priv->cell_spacing;
- value = CLAMP ((y - (h * yalign) - (1.0 - yalign) * self->priv->cell_spacing),
+ value = CLAMP ((y - (h * yalign) - ((1.0 - yalign) * self->priv->cell_spacing)),
0.0,
- gtk_adjustment_get_upper (self->priv->vadjustment) - gtk_adjustment_get_page_size (self->priv->vadjustment));
+ self->priv->height - gtk_widget_get_allocated_height (GTK_WIDGET (self)));
gtk_adjustment_set_value (self->priv->vadjustment, value);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]