aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-07-08 12:36:50 -0500
committerTed Gould <ted@gould.cx>2010-07-08 12:36:50 -0500
commit7412490502f6f249479c1f4d7e07ab868530dcd0 (patch)
tree2fd16b2c9f79405ccc82bd67ca82dabb95d82266
parent647f8ea91cc304a0b14a255fcd07560046735eac (diff)
downloadlibayatana-indicator-7412490502f6f249479c1f4d7e07ab868530dcd0.tar.gz
libayatana-indicator-7412490502f6f249479c1f4d7e07ab868530dcd0.tar.bz2
libayatana-indicator-7412490502f6f249479c1f4d7e07ab868530dcd0.zip
Documenting the choices of not having a nice callback func.
-rw-r--r--libindicator/indicator-service.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libindicator/indicator-service.c b/libindicator/indicator-service.c
index 7c5826e..db234e2 100644
--- a/libindicator/indicator-service.c
+++ b/libindicator/indicator-service.c
@@ -165,6 +165,10 @@ indicator_service_init (IndicatorService *self)
priv->bus = NULL;
priv->this_service_version = 0;
+ /* NOTE: We're using g_object_unref here because that's what needs to
+ happen, but you really should call watchers_remove first as well
+ since that disconnects the signals. We can't do that with a callback
+ here because there is no user data to pass the object as well. */
priv->watchers = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_object_unref);
/* Start talkin' dbus */