[gtk+/wip/baedert/gtkimageview: 183/186] imageview: Always set adjustment upper to bounding box size
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/gtkimageview: 183/186] imageview: Always set adjustment upper to bounding box size
- Date: Mon, 21 Mar 2016 10:40:46 +0000 (UTC)
commit 3253825b5aa732a80b0805eb0a41c0fd15b50862
Author: Timm Bäder <mail baedert org>
Date: Sat Mar 19 12:05:56 2016 +0100
imageview: Always set adjustment upper to bounding box size
This way, we can get the bounding box size from the adjustments.
gtk/gtkimageview.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkimageview.c b/gtk/gtkimageview.c
index 2e47f9b..8d9aaae 100644
--- a/gtk/gtkimageview.c
+++ b/gtk/gtkimageview.c
@@ -700,14 +700,14 @@ gtk_image_view_update_adjustments (GtkImageView *image_view)
* the widget allocation if fit-allocation is set */
if (priv->hadjustment)
{
- gtk_adjustment_set_upper (priv->hadjustment, MAX (width, widget_width));
+ gtk_adjustment_set_upper (priv->hadjustment, width);
gtk_adjustment_set_page_size (priv->hadjustment, widget_width);
gtk_image_view_restrict_adjustment (priv->hadjustment);
}
if (priv->vadjustment)
{
- gtk_adjustment_set_upper (priv->vadjustment, MAX (height, widget_height));
+ gtk_adjustment_set_upper (priv->vadjustment, height);
gtk_adjustment_set_page_size (priv->vadjustment, widget_height);
gtk_image_view_restrict_adjustment (priv->vadjustment);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]