Commit 8772d8e4 authored by Pierre Wieser's avatar Pierre Wieser

NAPivot: call parent_class::constructed() method at the beginning of the function

parent 3d450eda
......@@ -3,6 +3,7 @@
Rather call parent_class::instance_constructed() method before executing
the derived class one.
* src/core/na-pivot.c (instance_constructed):
* src/nact/nact-assistant-export.c (instance_constructed):
* src/nact/nact-main-window.c (instance_constructed):
* src/nact/nact-tree-view.c (instance_constructed):
......
......@@ -228,26 +228,27 @@ static void
instance_constructed( GObject *object )
{
static const gchar *thisfn = "na_pivot_instance_constructed";
NAPivot *self;
NAPivotPrivate *priv;
g_return_if_fail( NA_IS_PIVOT( object ));
self = NA_PIVOT( object );
if( !self->private->dispose_has_run ){
priv = NA_PIVOT( object )->private;
g_debug( "%s: object=%p", thisfn, ( void * ) object );
if( !priv->dispose_has_run ){
self->private->modules = na_module_load_modules();
/* chain up to the parent class */
if( G_OBJECT_CLASS( st_parent_class )->constructed ){
G_OBJECT_CLASS( st_parent_class )->constructed( object );
}
g_debug( "%s: object=%p (%s)", thisfn, ( void * ) object, G_OBJECT_TYPE_NAME( object ));
priv->modules = na_module_load_modules();
/* force class initialization and io-factory registration
*/
g_object_unref( na_object_action_new_with_profile());
g_object_unref( na_object_menu_new());
/* chain up to the parent class */
if( G_OBJECT_CLASS( st_parent_class )->constructed ){
G_OBJECT_CLASS( st_parent_class )->constructed( object );
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment