gthumb r2387 - in trunk: . libgthumb
- From: mjc svn gnome org
- To: svn-commits-list gnome org
- Subject: gthumb r2387 - in trunk: . libgthumb
- Date: Sat, 9 Aug 2008 09:55:39 +0000 (UTC)
Author: mjc
Date: Sat Aug 9 09:55:38 2008
New Revision: 2387
URL: http://svn.gnome.org/viewvc/gthumb?rev=2387&view=rev
Log:
2008-08-09 Michael J. Chudobiak <mjc svn gnome org>
* libgthumb/image-viewer.c: (image_viewer_size_allocate):
Make scrollbars go away in zoom-to-fit modes, regression from
bug #501512. Patch by Geoffrey Antos <dynamotwain aim com>.
Modified:
trunk/ChangeLog
trunk/libgthumb/image-viewer.c
Modified: trunk/libgthumb/image-viewer.c
==============================================================================
--- trunk/libgthumb/image-viewer.c (original)
+++ trunk/libgthumb/image-viewer.c Sat Aug 9 09:55:38 2008
@@ -983,14 +983,15 @@
priv->hadj->value = floor (off_x - gdk_width / 2);
priv->hadj->step_increment = STEP_INCREMENT;
priv->hadj->page_increment = floor (gdk_width / 2);
- priv->hadj->page_size = gdk_width;
+ priv->hadj->page_size = allocation->width;
priv->vadj->lower = floor (-height / 2 - priv->frame_border);
priv->vadj->upper = floor ( height / 2 + priv->frame_border);
priv->vadj->value = floor ( off_y - gdk_height / 2);
priv->vadj->step_increment = STEP_INCREMENT;
priv->vadj->page_increment = floor (gdk_height / 2);
- priv->vadj->page_size = gdk_height;
+ priv->vadj->page_size = allocation->height;
+
} else {
priv->hadj->lower = 0.0;
priv->hadj->upper = 1.0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]