aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-04-10 11:05:52 -0500
committerCharles Kerr <charles.kerr@canonical.com>2012-04-10 11:05:52 -0500
commit4b0ee3d54ebf03ba125144217fb6d8e3325b942f (patch)
treeb38c8e15c363611a13ecb61995e8d7ef08ff3320
parenteee824d43799faa05bd3414675f6b7987d430d42 (diff)
downloadlibdbusmenu-4b0ee3d54ebf03ba125144217fb6d8e3325b942f.tar.gz
libdbusmenu-4b0ee3d54ebf03ba125144217fb6d8e3325b942f.tar.bz2
libdbusmenu-4b0ee3d54ebf03ba125144217fb6d8e3325b942f.zip
switch the smoke test to a g_debug statement
-rw-r--r--libdbusmenu-gtk/parser.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/libdbusmenu-gtk/parser.c b/libdbusmenu-gtk/parser.c
index 7c4aeb5..2f7277c 100644
--- a/libdbusmenu-gtk/parser.c
+++ b/libdbusmenu-gtk/parser.c
@@ -179,13 +179,14 @@ ensure_interned_strings_loaded (void)
static void
dbusmenu_gtk_clear_signal_handler (gpointer instance, gulong *handler_id)
{
- if (handler_id && *handler_id)
- {
+ if (handler_id && *handler_id) {
/* complain if we thought we were connected but aren't */
- g_return_if_fail (g_signal_handler_is_connected (instance, *handler_id));
-
- g_signal_handler_disconnect (instance, *handler_id);
- *handler_id = 0;
+ if (!g_signal_handler_is_connected (instance, *handler_id)) {
+ g_debug ("%s tried to disconnect signal handler %lu from disconnected %p", G_STRLOC, *handler_id, instance);
+ } else {
+ g_signal_handler_disconnect (instance, *handler_id);
+ *handler_id = 0;
+ }
}
}