[nautilus-actions] NAIOProvider: call parent_class::constructed() method at the beginning of the function
- From: Pierre Wieser <pwieser src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-actions] NAIOProvider: call parent_class::constructed() method at the beginning of the function
- Date: Wed, 11 Jan 2012 22:09:44 +0000 (UTC)
commit 3f8fdee6dec9e08a6c360f5494342d68d994b4e2
Author: Pierre Wieser <pwieser trychlos org>
Date: Sun Jan 8 12:55:46 2012 +0100
NAIOProvider: call parent_class::constructed() method at the beginning of the function
ChangeLog | 1 +
src/core/na-io-provider.c | 13 ++++++++-----
2 files changed, 9 insertions(+), 5 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 97f902c..e70ca88 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,7 @@
Rather call parent_class::instance_constructed() method before executing
the derived class one.
+ * src/core/na-io-provider.c (instance_constructed):
* src/core/na-pivot.c (instance_constructed):
* src/nact/nact-assistant-export.c (instance_constructed):
* src/nact/nact-main-window.c (instance_constructed):
diff --git a/src/core/na-io-provider.c b/src/core/na-io-provider.c
index 445ac2b..47941a3 100644
--- a/src/core/na-io-provider.c
+++ b/src/core/na-io-provider.c
@@ -194,20 +194,23 @@ static void
instance_constructed( GObject *object )
{
static const gchar *thisfn = "na_io_provider_instance_constructed";
- NAIOProvider *self;
+ NAIOProviderPrivate *priv;
g_return_if_fail( NA_IS_IO_PROVIDER( object ));
- self = NA_IO_PROVIDER( object );
+ priv = NA_IO_PROVIDER( object )->private;
- if( !self->private->dispose_has_run ){
-
- g_debug( "%s: object=%p, id=%s", thisfn, ( void * ) object, self->private->id );
+ if( !priv->dispose_has_run ){
/* 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), id=%s",
+ thisfn,
+ ( void * ) object, G_OBJECT_TYPE_NAME( object ),
+ priv->id );
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]