[gimp] app: Only do necessary init in gimp_dock_window_init()



commit cb854e6ad7be72ea8d7244e17926bbe1a8b436ab
Author: Martin Nordholts <martinn src gnome org>
Date:   Sat Dec 5 12:38:55 2009 +0100

    app: Only do necessary init in gimp_dock_window_init()
    
    The private instance data struct is zeroed out for us so we don't need
    to assign NULL, FALSE and 0 to private instance data members in
    gimp_dock_window_init().

 app/widgets/gimpdockwindow.c |   11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)
---
diff --git a/app/widgets/gimpdockwindow.c b/app/widgets/gimpdockwindow.c
index e034483..fe193a0 100644
--- a/app/widgets/gimpdockwindow.c
+++ b/app/widgets/gimpdockwindow.c
@@ -179,15 +179,8 @@ gimp_dock_window_init (GimpDockWindow *dock_window)
   dock_window->p = G_TYPE_INSTANCE_GET_PRIVATE (dock_window,
                                                 GIMP_TYPE_DOCK_WINDOW,
                                                 GimpDockWindowPrivate);
-  dock_window->p->context                = NULL;
-  dock_window->p->dialog_factory         = NULL;
-  dock_window->p->ui_manager_name        = NULL;
-  dock_window->p->ui_manager             = NULL;
-  dock_window->p->image_flush_handler_id = 0;
-  dock_window->p->ID                     = dock_window_ID++;
-  dock_window->p->update_title_idle_id   = 0;
-  dock_window->p->dock_columns           = g_object_new (GIMP_TYPE_DOCK_COLUMNS,
-                                                         NULL);
+  dock_window->p->ID           = dock_window_ID++;
+  dock_window->p->dock_columns = g_object_new (GIMP_TYPE_DOCK_COLUMNS, NULL);
 
   /* Some common initialization for all dock windows */
   gtk_container_add (GTK_CONTAINER (dock_window),



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]