[gtk+] flowbox: Compute view box from correct variables
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] flowbox: Compute view box from correct variables
- Date: Sat, 11 Nov 2017 01:51:15 +0000 (UTC)
commit e9dd5f327ff4754ab1c5bf64aaea09a288b7748a
Author: Benjamin Otte <otte redhat com>
Date: Fri Nov 10 15:33:24 2017 +0100
flowbox: Compute view box from correct variables
gtk/gtkflowbox.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkflowbox.c b/gtk/gtkflowbox.c
index cdd4cb8..1fbdca0 100644
--- a/gtk/gtkflowbox.c
+++ b/gtk/gtkflowbox.c
@@ -2545,8 +2545,8 @@ get_view_rect (GtkFlowBox *box,
{
rect->x = gtk_adjustment_get_value (priv->hadjustment);
rect->y = gtk_adjustment_get_value (priv->vadjustment);
- rect->width = gtk_widget_get_allocated_width (parent);
- rect->height = gtk_widget_get_allocated_height (parent);
+ rect->width = gtk_widget_get_width (parent);
+ rect->height = gtk_widget_get_height (parent);
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]