summaryrefslogtreecommitdiff
path: root/gtk/gtksizegroup.c
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.van.berkom@gmail.com>2010-04-04 16:38:36 -0400
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2010-04-04 16:38:36 -0400
commit4b1315cedce54d5af15ddef456e460b887f0e96e (patch)
tree0a3243f4a7acce082480f9857699729c9b890513 /gtk/gtksizegroup.c
parent75b8f7d3ae093dfdd8a41a66a9ec1cac65870ded (diff)
downloadgtk+-4b1315cedce54d5af15ddef456e460b887f0e96e.tar.gz
Changed initial values for requisition from -1 to 0.
When doing size-requests and get_natural_size() calls, use 0 as the base value instead of -1, because size_request code assumes that widget->requesition is initialized at 0.
Diffstat (limited to 'gtk/gtksizegroup.c')
-rw-r--r--gtk/gtksizegroup.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtksizegroup.c b/gtk/gtksizegroup.c
index 2dcde99702..96772eec88 100644
--- a/gtk/gtksizegroup.c
+++ b/gtk/gtksizegroup.c
@@ -670,9 +670,9 @@ do_size_request (GtkWidget *widget)
* Note here that there is no convention of filling the argument or widget->requisition,
* so we have no choice but to fire size request with this pointer.
*/
- g_signal_emit_by_name (widget,
- "size-request",
- &widget->requisition);
+ widget->requisition.width = 0;
+ widget->requisition.height = 0;
+ g_signal_emit_by_name (widget, "size-request", &widget->requisition);
/* Now get the extended layout minimum and natural size
*/