Changeset 2100
- Timestamp:
- 08/09/05 00:01:38
- Files:
-
- branches/libgalago/glib-port/ChangeLog (modified) (1 diff)
- branches/libgalago/glib-port/libgalago/galago-account.c (modified) (6 diffs)
- branches/libgalago/glib-port/libgalago/galago-account.h (modified) (1 diff)
- branches/libgalago/glib-port/libgalago/galago-assert.h (modified) (1 diff)
- branches/libgalago/glib-port/libgalago/galago-avatar.c (modified) (1 diff)
- branches/libgalago/glib-port/libgalago/galago-avatar.h (modified) (1 diff)
- branches/libgalago/glib-port/libgalago/galago-context-base.h (modified) (1 diff)
- branches/libgalago/glib-port/libgalago/galago-context-priv.h (modified) (1 diff)
- branches/libgalago/glib-port/libgalago/galago-context.c (modified) (1 diff)
- branches/libgalago/glib-port/libgalago/galago-context.h (modified) (1 diff)
- branches/libgalago/glib-port/libgalago/galago-core.c (modified) (1 diff)
- branches/libgalago/glib-port/libgalago/galago-core.h (modified) (1 diff)
- branches/libgalago/glib-port/libgalago/galago-dbus-compat.h (modified) (1 diff)
- branches/libgalago/glib-port/libgalago/galago-dbus.c (modified) (1 diff)
- branches/libgalago/glib-port/libgalago/galago-dbus.h (modified) (1 diff)
- branches/libgalago/glib-port/libgalago/galago-image.c (modified) (1 diff)
- branches/libgalago/glib-port/libgalago/galago-image.h (modified) (1 diff)
- branches/libgalago/glib-port/libgalago/galago-log.c (modified) (1 diff)
- branches/libgalago/glib-port/libgalago/galago-log.h (modified) (1 diff)
- branches/libgalago/glib-port/libgalago/galago-object.c (modified) (6 diffs)
- branches/libgalago/glib-port/libgalago/galago-object.h (modified) (3 diffs)
- branches/libgalago/glib-port/libgalago/galago-person.c (modified) (2 diffs)
- branches/libgalago/glib-port/libgalago/galago-person.h (modified) (1 diff)
- branches/libgalago/glib-port/libgalago/galago-photo.c (modified) (1 diff)
- branches/libgalago/glib-port/libgalago/galago-photo.h (modified) (1 diff)
- branches/libgalago/glib-port/libgalago/galago-presence.c (modified) (7 diffs)
- branches/libgalago/glib-port/libgalago/galago-presence.h (modified) (1 diff)
- branches/libgalago/glib-port/libgalago/galago-private.h (modified) (1 diff)
- branches/libgalago/glib-port/libgalago/galago-service.c (modified) (1 diff)
- branches/libgalago/glib-port/libgalago/galago-service.h (modified) (1 diff)
- branches/libgalago/glib-port/libgalago/galago-status.c (modified) (1 diff)
- branches/libgalago/glib-port/libgalago/galago-status.h (modified) (1 diff)
- branches/libgalago/glib-port/libgalago/galago-value.c (modified) (1 diff)
- branches/libgalago/glib-port/libgalago/galago-value.h (modified) (1 diff)
- branches/libgalago/glib-port/libgalago/galago.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/libgalago/glib-port/ChangeLog
r2095 r2100 1 Mon Aug 08 23:59:26 PDT 2005 Christian Hammond <chipx86@chipx86.com> 2 3 * libgalago/galago-account.c: 4 * libgalago/galago-account.h: 5 * libgalago/galago-assert.h: 6 * libgalago/galago-avatar.c: 7 * libgalago/galago-avatar.h: 8 * libgalago/galago-context-base.h: 9 * libgalago/galago-context.c: 10 * libgalago/galago-context.h: 11 * libgalago/galago-context-priv.h: 12 * libgalago/galago-core.c: 13 * libgalago/galago-core.h: 14 * libgalago/galago-dbus.c: 15 * libgalago/galago-dbus-compat.h: 16 * libgalago/galago-dbus.h: 17 * libgalago/galago.h: 18 * libgalago/galago-image.c: 19 * libgalago/galago-image.h: 20 * libgalago/galago-log.c: 21 * libgalago/galago-log.h: 22 * libgalago/galago-object.c: 23 * libgalago/galago-object.h: 24 * libgalago/galago-person.c: 25 * libgalago/galago-person.h: 26 * libgalago/galago-photo.c: 27 * libgalago/galago-photo.h: 28 * libgalago/galago-presence.c: 29 * libgalago/galago-presence.h: 30 * libgalago/galago-private.h: 31 * libgalago/galago-service.c: 32 * libgalago/galago-service.h: 33 * libgalago/galago-status.c: 34 * libgalago/galago-status.h: 35 * libgalago/galago-value.c: 36 * libgalago/galago-value.h: 37 - Several fixups from on the train today. 38 1 39 Sat Jul 30 16:38:05 PDT 2005 Christian Hammond <chipx86@chipx86.com> 2 40 branches/libgalago/glib-port/libgalago/galago-account.c
r2094 r2100 4 4 * @Copyright (C) 2004-2005 Christian Hammond 5 5 * 6 * This library is g_free software; you can redistribute it and/or6 * This library is free software; you can redistribute it and/or 7 7 * modify it under the terms of the GNU Lesser General Public 8 8 * License as published by the Free Software Foundation; either … … 66 66 * Object initialization 67 67 **************************************************************************/ 68 static void galago_account_dispose(GObject *gobject); 68 69 static void galago_account_finalize(GObject *gobject); 69 70 static void galago_account_dbus_message_append(DBusMessageIter *iter, … … 87 88 object_class->dbus_interface = GALAGO_DBUS_ACCOUNT_INTERFACE; 88 89 90 gobject_class->dispose = galago_account_dispose; 89 91 gobject_class->finalize = galago_account_finalize; 90 92 … … 171 173 172 174 static void 173 galago_account_ finalize(GObject *object)175 galago_account_dispose(GObject *object) 174 176 { 175 177 GalagoAccount *account = (GalagoAccount *)object; … … 185 187 186 188 if (person != NULL) 189 { 187 190 galago_person_remove_account(person, account); 191 account->priv->person = NULL; 192 } 188 193 189 194 if (account->priv->presence != NULL) 190 195 { 196 g_object_unref(account->priv->presence); 197 account->priv->presence = NULL; 198 } 199 200 if (account->priv->avatar != NULL) 201 { 202 g_object_unref(account->priv->avatar); 203 account->priv->avatar = NULL; 204 } 205 206 G_OBJECT_CLASS(parent_class)->dispose(object); 207 } 208 209 static void 210 galago_account_finalize(GObject *object) 211 { 212 GalagoAccount *account = (GalagoAccount *)object; 213 214 g_return_if_fail(account != NULL); 215 216 #if 0 217 service = galago_account_get_service(account); 218 person = galago_account_get_person(account); 219 220 galago_service_remove_account(service, account); 221 222 if (person != NULL) 223 galago_person_remove_account(person, account); 224 225 if (account->priv->presence != NULL) 226 { 191 227 GalagoPresence *presence = account->priv->presence; 192 228 … … 204 240 g_object_unref(avatar); 205 241 } 242 #endif 206 243 207 244 g_hash_table_destroy(account->priv->contacts_table); branches/libgalago/glib-port/libgalago/galago-account.h
r1980 r2100 4 4 * @Copyright (C) 2004-2005 Christian Hammond 5 5 * 6 * This library is g_free software; you can redistribute it and/or6 * This library is free software; you can redistribute it and/or 7 7 * modify it under the terms of the GNU Lesser General Public 8 8 * License as published by the Free Software Foundation; either branches/libgalago/glib-port/libgalago/galago-assert.h
r1972 r2100 4 4 * @Copyright (C) 2004-2005 Christian Hammond. 5 5 * 6 * This library is g_free software; you can redistribute it and/or6 * This library is free software; you can redistribute it and/or 7 7 * modify it under the terms of the GNU Lesser General Public 8 8 * License as published by the Free Software Foundation; either branches/libgalago/glib-port/libgalago/galago-avatar.c
r2094 r2100 4 4 * @Copyright (C) 2004-2005 Christian Hammond 5 5 * 6 * This library is g_free software; you can redistribute it and/or6 * This library is free software; you can redistribute it and/or 7 7 * modify it under the terms of the GNU Lesser General Public 8 8 * License as published by the Free Software Foundation; either branches/libgalago/glib-port/libgalago/galago-avatar.h
r1972 r2100 4 4 * @Copyright (C) 2004-2005 Christian Hammond 5 5 * 6 * This library is g_free software; you can redistribute it and/or6 * This library is free software; you can redistribute it and/or 7 7 * modify it under the terms of the GNU Lesser General Public 8 8 * License as published by the Free Software Foundation; either branches/libgalago/glib-port/libgalago/galago-context-base.h
r1956 r2100 4 4 * @Copyright (C) 2004-2005 Christian Hammond 5 5 * 6 * This library is g_free software; you can redistribute it and/or6 * This library is free software; you can redistribute it and/or 7 7 * modify it under the terms of the GNU Lesser General Public 8 8 * License as published by the Free Software Foundation; either branches/libgalago/glib-port/libgalago/galago-context-priv.h
r1956 r2100 4 4 * @Copyright (C) 2004-2005 Christian Hammond 5 5 * 6 * This library is g_free software; you can redistribute it and/or6 * This library is free software; you can redistribute it and/or 7 7 * modify it under the terms of the GNU Lesser General Public 8 8 * License as published by the Free Software Foundation; either branches/libgalago/glib-port/libgalago/galago-context.c
r1972 r2100 4 4 * @Copyright (C) 2004-2005 Christian Hammond 5 5 * 6 * This library is g_free software; you can redistribute it and/or6 * This library is free software; you can redistribute it and/or 7 7 * modify it under the terms of the GNU Lesser General Public 8 8 * License as published by the Free Software Foundation; either branches/libgalago/glib-port/libgalago/galago-context.h
r1956 r2100 4 4 * @Copyright (C) 2004-2005 Christian Hammond 5 5 * 6 * This library is g_free software; you can redistribute it and/or6 * This library is free software; you can redistribute it and/or 7 7 * modify it under the terms of the GNU Lesser General Public 8 8 * License as published by the Free Software Foundation; either branches/libgalago/glib-port/libgalago/galago-core.c
r2094 r2100 4 4 * @Copyright (C) 2004-2005 Christian Hammond 5 5 * 6 * This library is g_free software; you can redistribute it and/or6 * This library is free software; you can redistribute it and/or 7 7 * modify it under the terms of the GNU Lesser General Public 8 8 * License as published by the Free Software Foundation; either branches/libgalago/glib-port/libgalago/galago-core.h
r1972 r2100 4 4 * @Copyright (C) 2004-2005 Christian Hammond 5 5 * 6 * This library is g_free software; you can redistribute it and/or6 * This library is free software; you can redistribute it and/or 7 7 * modify it under the terms of the GNU Lesser General Public 8 8 * License as published by the Free Software Foundation; either branches/libgalago/glib-port/libgalago/galago-dbus-compat.h
r2044 r2100 4 4 * @Copyright (C) 2005 Christian Hammond. 5 5 * 6 * This library is g_free software; you can redistribute it and/or6 * This library is free software; you can redistribute it and/or 7 7 * modify it under the terms of the GNU Lesser General Public 8 8 * License as published by the Free Software Foundation; either branches/libgalago/glib-port/libgalago/galago-dbus.c
r2095 r2100 4 4 * @Copyright (C) 2004-2005 Christian Hammond. 5 5 * 6 * This library is g_free software; you can redistribute it and/or6 * This library is free software; you can redistribute it and/or 7 7 * modify it under the terms of the GNU Lesser General Public 8 8 * License as published by the Free Software Foundation; either branches/libgalago/glib-port/libgalago/galago-dbus.h
r2094 r2100 4 4 * @Copyright (C) 2004-2005 Christian Hammond. 5 5 * 6 * This library is g_free software; you can redistribute it and/or6 * This library is free software; you can redistribute it and/or 7 7 * modify it under the terms of the GNU Lesser General Public 8 8 * License as published by the Free Software Foundation; either branches/libgalago/glib-port/libgalago/galago-image.c
r1972 r2100 4 4 * @Copyright (C) 2004-2005 Christian Hammond 5 5 * 6 * This library is g_free software; you can redistribute it and/or6 * This library is free software; you can redistribute it and/or 7 7 * modify it under the terms of the GNU Lesser General Public 8 8 * License as published by the Free Software Foundation; either branches/libgalago/glib-port/libgalago/galago-image.h
r1972 r2100 4 4 * @Copyright (C) 2004-2005 Christian Hammond 5 5 * 6 * This library is g_free software; you can redistribute it and/or6 * This library is free software; you can redistribute it and/or 7 7 * modify it under the terms of the GNU Lesser General Public 8 8 * License as published by the Free Software Foundation; either branches/libgalago/glib-port/libgalago/galago-log.c
r1972 r2100 4 4 * @Copyright (C) 2004-2005 Christian Hammond 5 5 * 6 * This library is g_free software; you can redistribute it and/or6 * This library is free software; you can redistribute it and/or 7 7 * modify it under the terms of the GNU Lesser General Public 8 8 * License as published by the Free Software Foundation; either branches/libgalago/glib-port/libgalago/galago-log.h
r1956 r2100 4 4 * @Copyright (C) 2004-2005 Christian Hammond 5 5 * 6 * This library is g_free software; you can redistribute it and/or6 * This library is free software; you can redistribute it and/or 7 7 * modify it under the terms of the GNU Lesser General Public 8 8 * License as published by the Free Software Foundation; either branches/libgalago/glib-port/libgalago/galago-object.c
r2090 r2100 4 4 * @Copyright (C) 2004-2005 Christian Hammond 5 5 * 6 * This library is g_free software; you can redistribute it and/or6 * This library is free software; you can redistribute it and/or 7 7 * modify it under the terms of the GNU Lesser General Public 8 8 * License as published by the Free Software Foundation; either … … 26 26 #include <string.h> 27 27 28 struct _GalagoObjectPrivate 29 { 30 GalagoContext *context; 31 32 char *dbus_path; 33 34 gboolean watched : 1; 35 gboolean in_destruction : 1; 36 }; 37 28 38 struct _GalagoObjectClassPrivate 29 39 { 30 40 char *dbus_iface; 31 };32 33 struct _GalagoObjectPrivate34 {35 GalagoContext *context;36 37 char *dbus_path;38 gboolean watched;39 41 }; 40 42 … … 45 47 }; 46 48 49 enum 50 { 51 DESTROY, 52 LAST_SIGNAL 53 }; 54 55 static void galago_object_dispose(GObject *gobject); 47 56 static void galago_object_finalize(GObject *gobject); 57 static void galago_object_real_destroy(GalagoObject *object); 48 58 static void galago_object_set_property(GObject *gobject, guint prop_id, 49 59 const GValue *value, GParamSpec *pspec); … … 52 62 53 63 static GObjectClass *parent_class = NULL; 64 static guint signals[LAST_SIGNAL] = {0}; 54 65 55 66 G_DEFINE_TYPE(GalagoObject, galago_object, G_TYPE_OBJECT); … … 62 73 parent_class = g_type_class_peek_parent(klass); 63 74 75 klass->destroy = galago_object_real_destroy; 76 77 gobject_class->dispose = galago_object_dispose; 64 78 gobject_class->finalize = galago_object_finalize; 65 79 gobject_class->set_property = galago_object_set_property; 66 80 gobject_class->get_property = galago_object_get_property; 81 82 signals[DESTROY] = 83 g_signal_new("destroy", 84 G_TYPE_FROM_CLASS(klass), 85 G_SIGNAL_RUN_CLEANUP | G_SIGNAL_NO_RECURSE | 86 G_SIGNAL_NO_HOOKS, 87 G_STRUCT_OFFSET(GalagoObjectClass, destroy), 88 NULL, NULL, 89 g_cclosure_marshal_VOID__VOID, 90 G_TYPE_NONE, 0); 67 91 68 92 g_object_class_install_property(gobject_class, PROP_CONTEXT, … … 80 104 81 105 static void 106 galago_object_dispose(GObject *gobject) 107 { 108 GalagoObject *object = GALAGO_OBJECT(gobject); 109 110 galago_log_info("object_dispose(%p)\n", gobject); 111 112 if (!object->priv->in_destruction) 113 { 114 object->priv->in_destruction = TRUE; 115 116 g_signal_emit(object, signals[DESTROY], 0); 117 118 object->priv->in_destruction = FALSE; 119 } 120 121 if (G_OBJECT_CLASS(parent_class)->dispose != NULL) 122 G_OBJECT_CLASS(parent_class)->dispose(gobject); 123 } 124 125 static void 82 126 galago_object_finalize(GObject *gobject) 83 127 { 84 GalagoObject *object = (GalagoObject *)gobject;128 GalagoObject *object = GALAGO_OBJECT(gobject); 85 129 86 130 if (object->priv != NULL) 87 131 g_free(object->priv); 88 132 89 G_OBJECT_CLASS(parent_class)->finalize(gobject); 133 if (G_OBJECT_CLASS(parent_class)->finalize != NULL) 134 G_OBJECT_CLASS(parent_class)->finalize(gobject); 135 } 136 137 static void 138 galago_object_real_destroy(GalagoObject *object) 139 { 140 g_signal_handlers_destroy(object); 90 141 } 91 142 branches/libgalago/glib-port/libgalago/galago-object.h
r1972 r2100 4 4 * @Copyright (C) 2004-2005 Christian Hammond 5 5 * 6 * This library is g_free software; you can redistribute it and/or6 * This library is free software; you can redistribute it and/or 7 7 * modify it under the terms of the GNU Lesser General Public 8 8 * License as published by the Free Software Foundation; either … … 35 35 #include <libgalago/galago-context-base.h> 36 36 37 38 /**39 * A class.40 */41 struct _GalagoObjectClass42 {43 GObjectClass parent_class;44 45 const char *dbus_interface;46 47 GalagoObjectClassPrivate *priv;48 49 /* vtable */50 void (*dbus_message_append)(DBusMessageIter *iter,51 const GalagoObject *object);52 void *(*dbus_message_get)(DBusMessageIter *iter);53 void (*dbus_push_full)(GalagoObject *object);54 55 void (*reserved_1)(void);56 void (*reserved_2)(void);57 void (*reserved_3)(void);58 void (*reserved_4)(void);59 };60 61 37 /** 62 38 * An object. … … 74 50 }; 75 51 52 /** 53 * A class. 54 */ 55 struct _GalagoObjectClass 56 { 57 GObjectClass parent_class; 58 59 const char *dbus_interface; 60 61 GalagoObjectClassPrivate *priv; 62 63 /* Virtual functions */ 64 void (*dbus_message_append)(DBusMessageIter *iter, 65 const GalagoObject *object); 66 void *(*dbus_message_get)(DBusMessageIter *iter); 67 void (*dbus_push_full)(GalagoObject *object); 68 69 /* Signals */ 70 void (*destroy)(GalagoObject *object); 71 72 void (*reserved_1)(void); 73 void (*reserved_2)(void); 74 void (*reserved_3)(void); 75 void (*reserved_4)(void); 76 }; 76 77 77 78 #define GALAGO_TYPE_OBJECT (galago_object_get_type()) branches/libgalago/glib-port/libgalago/galago-person.c
r2094 r2100 4 4 * @Copyright (C) 2004-2005 Christian Hammond 5 5 * 6 * This library is g_free software; you can redistribute it and/or6 * This library is free software; you can redistribute it and/or 7 7 * modify it under the terms of the GNU Lesser General Public 8 8 * License as published by the Free Software Foundation; either … … 392 392 person->priv->photo = NULL; 393 393 394 galago_log_info("Unreffing photo %p\n", old_photo); 394 395 g_object_unref(old_photo); 395 396 } branches/libgalago/glib-port/libgalago/galago-person.h
r1980 r2100 4 4 * @Copyright (C) 2004-2005 Christian Hammond 5 5 * 6 * This library is g_free software; you can redistribute it and/or6 * This library is free software; you can redistribute it and/or 7 7 * modify it under the terms of the GNU Lesser General Public 8 8 * License as published by the Free Software Foundation; either branches/libgalago/glib-port/libgalago/galago-photo.c
r2094 r2100 4 4 * @Copyright (C) 2004-2005 Christian Hammond 5 5 * 6 * This library is g_free software; you can redistribute it and/or6 * This library is free software; you can redistribute it and/or 7 7 * modify it under the terms of the GNU Lesser General Public 8 8 * License as published by the Free Software Foundation; either branches/libgalago/glib-port/libgalago/galago-photo.h
r1972 r2100 4 4 * @Copyright (C) 2004-2005 Christian Hammond 5 5 * 6 * This library is g_free software; you can redistribute it and/or6 * This library is free software; you can redistribute it and/or 7 7 * modify it under the terms of the GNU Lesser General Public 8 8 * License as published by the Free Software Foundation; either branches/libgalago/glib-port/libgalago/galago-presence.c
r2094 r2100 4 4 * @Copyright (C) 2004-2005 Christian Hammond 5 5 * 6 * This library is g_free software; you can redistribute it and/or6 * This library is free software; you can redistribute it and/or 7 7 * modify it under the terms of the GNU Lesser General Public 8 8 * License as published by the Free Software Foundation; either … … 65 65 * Object/Class support 66 66 **************************************************************************/ 67 static void galago_presence_ finalize(GObject *object);67 static void galago_presence_destroy(GalagoObject *object); 68 68 static void galago_presence_dbus_message_append(DBusMessageIter *iter, 69 69 const GalagoObject *object); … … 78 78 galago_presence_class_init(GalagoPresenceClass *klass) 79 79 { 80 GObjectClass *gobject_class= G_OBJECT_CLASS(klass);81 GalagoObjectClass *object_class = GALAGO_OBJECT_CLASS(klass);80 GObjectClass *gobject_class = G_OBJECT_CLASS(klass); 81 GalagoObjectClass *object_class = GALAGO_OBJECT_CLASS(klass); 82 82 83 83 parent_class = g_type_class_peek_parent(klass); 84 84 85 object_class->dbus_interface = GALAGO_DBUS_PHOTO_INTERFACE; 86 85 gobject_class->dispose = galago_presence_dispose; 86 gobject_class->finalize = galago_presence_finalize; 87 88 object_class->dbus_interface = GALAGO_DBUS_PRESENCE_INTERFACE; 89 90 object_class->destroy = galago_presence_destroy; 87 91 object_class->dbus_message_append = galago_presence_dbus_message_append; 88 92 object_class->dbus_message_get = galago_presence_dbus_message_get; 89 93 90 gobject_class->finalize = galago_presence_finalize;91 92 94 signals[IDLE_CHANGED] = 93 g_signal_new("idle -changed",95 g_signal_new("idle_changed", 94 96 G_TYPE_FROM_CLASS(klass), 95 97 G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, … … 102 104 103 105 signals[STATUS_ADDED] = 104 g_signal_new("status -added",106 g_signal_new("status_added", 105 107 G_TYPE_FROM_CLASS(klass), 106 108 G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, … … 112 114 113 115 signals[STATUS_REMOVED] = 114 g_signal_new("status -removed",116 g_signal_new("status_removed", 115 117 G_TYPE_FROM_CLASS(klass), 116 118 G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, … … 122 124 123 125 signals[STATUS_UPDATED] = 124 g_signal_new("status -updated",126 g_signal_new("status_updated", 125 127 G_TYPE_FROM_CLASS(klass), 126 128 G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, … … 140 142 141 143 static void 142 galago_presence_ finalize(GObject *object)143 { 144 GalagoPresence *presence = (GalagoPresence *)object;144 galago_presence_dispose(GalagoObject *object) 145 { 146 GalagoPresence *presence = GALAGO_PRESENCE(object); 145 147 GalagoAccount *account; 146 148 149 galago_log_info("presence_dispose(%p)\n", object); 150 147 151 account = galago_presence_get_account(presence); 148 152 149 if (galago_account_get_presence(account, FALSE) == presence) 153 if (account != NULL && 154 galago_account_get_presence(account, FALSE) == presence) 155 { 150 156 galago_account_set_presence(account, NULL); 157 } 151 158 152 159 if (presence->priv->statuses != NULL) 153 160 { 154 g_list_foreach(presence->priv->statuses, 155 (GFunc)g_object_unref, NULL); 161 g_list_foreach(presence->priv->statuses, (GFunc)g_object_unref, NULL); 156 162 g_list_free(presence->priv->statuses); 157 } 163 presence->priv->statuses = NULL; 164 } 165 166 if (G_OBJECT_CLASS(parent_class)->dispose != NULL) 167 G_OBJECT_CLASS(parent_class)->dispose(object); 168 } 169 170 static void 171 galago_presence_finalize(GalagoObject *object) 172 { 173 GalagoPresence *presence = GALAGO_PRESENCE(object); 174 175 galago_log_info("presence_finalize(%p)\n", object); 158 176 159 177 g_free(presence->priv); 160 178 161 G_OBJECT_CLASS(parent_class)->finalize(object); 179 if (G_OBJECT_CLASS(parent_class)->finalize != NULL) 180 G_OBJECT_CLASS(parent_class)->finalize(object); 162 181 } 163 182 branches/libgalago/glib-port/libgalago/galago-presence.h
r1979 r2100 4 4 * @Copyright (C) 2004-2005 Christian Hammond 5 5 * 6 * This library is g_free software; you can redistribute it and/or6 * This library is free software; you can redistribute it and/or 7 7 * modify it under the terms of the GNU Lesser General Public 8 8 * License as published by the Free Software Foundation; either branches/libgalago/glib-port/libgalago/galago-private.h
r1956 r2100 4 4 * @Copyright (C) 2004-2005 Christian Hammond 5 5 * 6 * This library is g_free software; you can redistribute it and/or6 * This library is free software; you can redistribute it and/or 7 7 * modify it under the terms of the GNU Lesser General Public 8 8 * License as published by the Free Software Foundation; either branches/libgalago/glib-port/libgalago/galago-service.c
r2094 r2100 4 4 * @Copyright (C) 2004-2005 Christian Hammond 5 5 * 6 * This library is g_free software; you can redistribute it and/or6 * This library is free software; you can redistribute it and/or 7 7 * modify it under the terms of the GNU Lesser General Public 8 8 * License as published by the Free Software Foundation; either branches/libgalago/glib-port/libgalago/galago-service.h
r1975 r2100 4 4 * @Copyright (C) 2004-2005 Christian Hammond 5 5 * 6 * This library is g_free software; you can redistribute it and/or6 * This library is free software; you can redistribute it and/or 7 7 * modify it under the terms of the GNU Lesser General Public 8 8 * License as published by the Free Software Foundation; either branches/libgalago/glib-port/libgalago/galago-status.c
r1977 r2100 4 4 * @Copyright (C) 2004-2005 Christian Hammond 5 5 * 6 * This library is g_free software; you can redistribute it and/or6 * This library is free software; you can redistribute it and/or 7 7 * modify it under the terms of the GNU Lesser General Public 8 8 * License as published by the Free Software Foundation; either branches/libgalago/glib-port/libgalago/galago-status.h
r1977 r2100 4 4 * @Copyright (C) 2004-2005 Christian Hammond 5 5 * 6 * This library is g_free software; you can redistribute it and/or6 * This library is free software; you can redistribute it and/or 7 7 * modify it under the terms of the GNU Lesser General Public 8 8 * License as published by the Free Software Foundation; either branches/libgalago/glib-port/libgalago/galago-value.c
r1973 r2100 4 4 * @Copyright (C) 2004-2005 Christian Hammond 5 5 * 6 * This library is g_free software; you can redistribute it and/or6 * This library is free software; you can redistribute it and/or 7 7 * modify it under the terms of the GNU Lesser General Public 8 8 * License as published by the Free Software Foundation; either branches/libgalago/glib-port/libgalago/galago-value.h
r1974 r2100 4 4 * @Copyright (C) 2004-2005 Christian Hammond 5 5 * 6 * This library is g_free software; you can redistribute it and/or6 * This library is free software; you can redistribute it and/or 7 7 * modify it under the terms of the GNU Lesser General Public 8 8 * License as published by the Free Software Foundation; either branches/libgalago/glib-port/libgalago/galago.h
r1980 r2100 4 4 * @Copyright (C) 2004-2005 Christian Hammond. 5 5 * 6 * This library is g_free software; you can redistribute it and/or6 * This library is free software; you can redistribute it and/or 7 7 * modify it under the terms of the GNU Lesser General Public 8 8 * License as published by the Free Software Foundation; either
