[gimp] app: no need to move that assignment
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: no need to move that assignment
- Date: Thu, 13 Oct 2011 09:30:48 +0000 (UTC)
commit 16aae588b90f65267e145a489c62b84f44b74691
Author: Michael Natterer <mitch gimp org>
Date: Thu Oct 13 11:30:02 2011 +0200
app: no need to move that assignment
and no need to initialize the entire struct explicitly.
app/widgets/gimpoverlaydialog.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/app/widgets/gimpoverlaydialog.c b/app/widgets/gimpoverlaydialog.c
index 764b63f..063426b 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;
+ GtkWidget *child = gtk_bin_get_child (GTK_BIN (widget));
GtkRequisition action_requisition;
- GtkAllocation child_allocation = {0, 0, 0, 0};
+ GtkAllocation child_allocation = { 0, };
GtkAllocation action_allocation;
gint border_width;
@@ -191,7 +191,6 @@ 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]