[Xfce4-commits] <ristretto:master> Add 1 to the page_size to account for possible rounding-errors
Stephan Arts
noreply at xfce.org
Mon Oct 17 21:54:01 CEST 2011
Updating branch refs/heads/master
to 6693d528944ff06d7a4273b5aa3c02fdae0957be (commit)
from c9f53be1c57b1f3d99119b26588d33bb18508de9 (commit)
commit 6693d528944ff06d7a4273b5aa3c02fdae0957be
Author: Stephan Arts <stephan at xfce.org>
Date: Mon Oct 17 21:54:16 2011 +0200
Add 1 to the page_size to account for possible rounding-errors
src/image_viewer.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/image_viewer.c b/src/image_viewer.c
index 2154f08..6772119 100644
--- a/src/image_viewer.c
+++ b/src/image_viewer.c
@@ -1510,8 +1510,8 @@ cb_rstto_image_viewer_queued_repaint (RsttoImageViewer *viewer)
g_object_freeze_notify(G_OBJECT(viewer->hadjustment));
g_object_freeze_notify(G_OBJECT(viewer->vadjustment));
- gtk_adjustment_set_page_size (viewer->hadjustment, (gdouble)(widget->allocation.width));
- gtk_adjustment_set_page_size (viewer->vadjustment, (gdouble)(widget->allocation.height));
+ gtk_adjustment_set_page_size (viewer->hadjustment, (gdouble)(widget->allocation.width+1));
+ gtk_adjustment_set_page_size (viewer->vadjustment, (gdouble)(widget->allocation.height+1));
if (viewer->priv->pixbuf)
{
More information about the Xfce4-commits
mailing list