Use GInitiallyUnowned as super parent
authorPeng Huang <shawn.p.huang@gmail.com>
Fri, 11 Sep 2009 03:41:20 +0000 (11:41 +0800)
committerPeng Huang <shawn.p.huang@gmail.com>
Fri, 11 Sep 2009 03:41:20 +0000 (11:41 +0800)
src/ibusobject.c
src/ibusobject.h

index f50c21329aa8a97ed31d17ae9ce2c530a03de1cb..898802a879ad1b677fa5a9e3beb87fb485a6ba78 100644 (file)
@@ -74,7 +74,7 @@ ibus_object_get_type (void)
     };
 
     if (type == 0) {
-        type = g_type_register_static (G_TYPE_OBJECT,
+        type = g_type_register_static (G_TYPE_INITIALLY_UNOWNED,
                     "IBusObject",
                     &type_info,
                     G_TYPE_FLAG_ABSTRACT);
index a08bb5a4f2541ae9fb0ce037b29969d8d4b709de..b3d6928d88be59a6207873e3fe65cdbbfc43d51d 100644 (file)
@@ -81,7 +81,7 @@ typedef struct _IBusObjectClass IBusObjectClass;
  * private to the #IBusObject and should never be accessed directly.
  */
 struct _IBusObject {
-  GObject parent;
+  GInitiallyUnowned parent;
   /* instance members */
   guint32 flags;
 };
@@ -89,7 +89,7 @@ struct _IBusObject {
 typedef void ( *IBusObjectDestroyFunc) (IBusObject *);
 
 struct _IBusObjectClass {
-    GObjectClass parent;
+    GInitiallyUnownedClass parent;
 
     /* signals */
     void (* destroy)        (IBusObject   *object);