aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-10-08 16:34:13 -0400
committerTed Gould <ted@canonical.com>2009-10-08 16:34:13 -0400
commit26ced5cdf75d022c4b40cc3ef8658bf486a0dba1 (patch)
treec2bcac214476febbba2e8bad99eaaba33b52f621 /tests
parent3bf9efb38a2bd564bede8e542d5adc267056ec0a (diff)
downloadlibayatana-indicator-26ced5cdf75d022c4b40cc3ef8658bf486a0dba1.tar.gz
libayatana-indicator-26ced5cdf75d022c4b40cc3ef8658bf486a0dba1.tar.bz2
libayatana-indicator-26ced5cdf75d022c4b40cc3ef8658bf486a0dba1.zip
Using a weak ref instead of connecting to a signal that doesn't exist
Diffstat (limited to 'tests')
-rw-r--r--tests/test-loader.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-loader.c b/tests/test-loader.c
index 68bfe48..f754685 100644
--- a/tests/test-loader.c
+++ b/tests/test-loader.c
@@ -2,7 +2,7 @@
#include "libindicator/indicator-object.h"
void
-destroy_cb (gpointer data)
+destroy_cb (gpointer data, GObject * object)
{
gboolean * bob = (gboolean *)data;
*bob = TRUE;
@@ -15,7 +15,7 @@ test_loader_refunref (void)
GObject * object = g_object_new(INDICATOR_OBJECT_TYPE, NULL);
gboolean unreffed = FALSE;
- g_signal_connect(object, "destroy", G_CALLBACK(destroy_cb), &unreffed);
+ g_object_weak_ref(object, destroy_cb, &unreffed);
g_object_unref(object);