[gtk+/wip/baedert/gtkimageview: 263/275] 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: 263/275] imageview: Always set adjustment upper to bounding box size
- Date: Sat, 16 Apr 2016 13:27:13 +0000 (UTC)
commit eb9913391570b925c91eac5989bcb1cd41e5550a
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]