[gimp/metadata-browser] app: no need to move that assignment



commit b45ce414dd9be88d3b9281e137d2865ba955bae3
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]