[gimp/metadata-browser] app (widgets): Init child_allocation, or garbage is added to action_allocation.y
- From: Roman Joost <romanofski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-browser] app (widgets): Init child_allocation, or garbage is added to action_allocation.y
- Date: Fri, 2 Dec 2011 02:21:56 +0000 (UTC)
commit f4560cc34510c4414df99c5a155cf7cc5f89add6
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]