[gtk+/native-layout] Fixed missing return from get_desired_width/height in GtkViewport (causing testgtk to have a small w
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/native-layout] Fixed missing return from get_desired_width/height in GtkViewport (causing testgtk to have a small w
- Date: Tue, 20 Apr 2010 05:31:48 +0000 (UTC)
commit b7a05d1832560e7c114c35f1833d0bc22e4cd8ce
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Tue Apr 20 01:27:32 2010 -0400
Fixed missing return from get_desired_width/height in GtkViewport (causing testgtk to have a small width).
gtk/gtkviewport.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkviewport.c b/gtk/gtkviewport.c
index 103a857..e57f756 100644
--- a/gtk/gtkviewport.c
+++ b/gtk/gtkviewport.c
@@ -881,6 +881,12 @@ gtk_viewport_get_desired_size (GtkExtendedLayout *layout,
minimum += child_min;
natural += child_nat;
}
+
+ if (minimum_size)
+ *minimum_size = minimum;
+
+ if (natural_size)
+ *natural_size = natural;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]