[gimp] app (widgets): Init child_allocation, or garbage is added to action_allocation.y
- From: Mukund Sivaraman <muks src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app (widgets): Init child_allocation, or garbage is added to action_allocation.y
- Date: Thu, 13 Oct 2011 05:02:41 +0000 (UTC)
commit d047b1ca41bc22444c4323fabc5c472316df6247
Author: Mukund Sivaraman <muks banu com>
Date: Thu Oct 13 10:32:12 2011 +0530
app (widgets): Init child_allocation, or garbage is added to action_allocation.y
app/widgets/gimpoverlaydialog.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/app/widgets/gimpoverlaydialog.c b/app/widgets/gimpoverlaydialog.c
index 5c9404b..764b63f 100644
--- a/app/widgets/gimpoverlaydialog.c
+++ b/app/widgets/gimpoverlaydialog.c
@@ -179,9 +179,9 @@ gimp_overlay_dialog_size_allocate (GtkWidget *widget,
{
GtkContainer *container = GTK_CONTAINER (widget);
GimpOverlayDialog *dialog = GIMP_OVERLAY_DIALOG (widget);
- GtkWidget *child = gtk_bin_get_child (GTK_BIN (widget));
+ GtkWidget *child;
GtkRequisition action_requisition;
- GtkAllocation child_allocation;
+ GtkAllocation child_allocation = {0, 0, 0, 0};
GtkAllocation action_allocation;
gint border_width;
@@ -191,6 +191,7 @@ gimp_overlay_dialog_size_allocate (GtkWidget *widget,
gtk_widget_size_request (dialog->action_area, &action_requisition);
+ child = gtk_bin_get_child (GTK_BIN (widget));
if (child && gtk_widget_get_visible (child))
{
child_allocation.x = allocation->x + border_width;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]