[gtk+/wip/baedert/gtkimageview] 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] imageview: Always set adjustment upper to bounding box size
- Date: Sat, 19 Mar 2016 11:08:05 +0000 (UTC)
commit d10b6ebd06d4520e545562d7a9da7d9bbd91c25c
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]