[nautilus-actions] NAIOption: set the initialization flag after the weak ref on the instance
- From: Pierre Wieser <pwieser src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-actions] NAIOption: set the initialization flag after the weak ref on the instance
- Date: Fri, 13 Jan 2012 10:12:54 +0000 (UTC)
commit bc21018a0350048bd48143848fd7cd8e842d1b83
Author: Pierre Wieser <pwieser trychlos org>
Date: Fri Jan 13 08:52:18 2012 +0100
NAIOption: set the initialization flag after the weak ref on the instance
ChangeLog | 3 +++
src/core/na-ioption.c | 4 ++++
2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 59d77a8..0185808 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2012-01-13 Pierre Wieser <pwieser trychlos org>
+ * src/core/na-ioption.c (get_ioption_data):
+ Set the initialization flag after the weak ref on the instance.
+
* src/core/na-ioption.h:
* src/core/na-import-mode.c:
* src/core/na-export-format.c:
diff --git a/src/core/na-ioption.c b/src/core/na-ioption.c
index 1a568e1..924326d 100644
--- a/src/core/na-ioption.c
+++ b/src/core/na-ioption.c
@@ -41,6 +41,8 @@ struct _NAIOptionInterfacePrivate {
};
/* data set against the instance
+ *
+ * Initialization here mainly means setting the weak ref against the instance.
*/
typedef struct {
gboolean initialized;
@@ -158,6 +160,8 @@ get_ioption_data( NAIOption *instance )
g_object_set_data( G_OBJECT( instance ), IOPTION_PROP_DATA, data );
g_object_weak_ref( G_OBJECT( instance ), ( GWeakNotify ) on_instance_finalized, NULL );
+
+ data->initialized = TRUE;
}
return( data );
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]