[gtk+/native-layout] Fixed computation of sizegroups when no explicit request is set.
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/native-layout] Fixed computation of sizegroups when no explicit request is set.
- Date: Mon, 19 Apr 2010 18:47:48 +0000 (UTC)
commit 3783a0a54fce6faa47d89939bef8f4f83f1aeac2
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Mon Apr 19 14:46:28 2010 -0400
Fixed computation of sizegroups when no explicit request is set.
My previous commit to GtkSizeGroup made sure that when
gtk_widget_set_size_request() is set on a widget, it will be
taken into account when computing the widget's own request,
this commit fixes the case where there is no explicit size
request.
gtk/gtksizegroup.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtksizegroup.c b/gtk/gtksizegroup.c
index 56965aa..aaf826d 100644
--- a/gtk/gtksizegroup.c
+++ b/gtk/gtksizegroup.c
@@ -767,6 +767,8 @@ _gtk_size_group_bump_requisition (GtkWidget *widget,
else
result = compute_dimension (widget, mode, MAX (aux_info->height, widget_requisition));
}
+ else
+ result = compute_dimension (widget, mode, widget_requisition);
}
else if (aux_info)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]