diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2012-04-10 11:05:52 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2012-04-10 11:05:52 -0500 |
commit | 4b0ee3d54ebf03ba125144217fb6d8e3325b942f (patch) | |
tree | b38c8e15c363611a13ecb61995e8d7ef08ff3320 /libdbusmenu-gtk | |
parent | eee824d43799faa05bd3414675f6b7987d430d42 (diff) | |
download | libdbusmenu-4b0ee3d54ebf03ba125144217fb6d8e3325b942f.tar.gz libdbusmenu-4b0ee3d54ebf03ba125144217fb6d8e3325b942f.tar.bz2 libdbusmenu-4b0ee3d54ebf03ba125144217fb6d8e3325b942f.zip |
switch the smoke test to a g_debug statement
Diffstat (limited to 'libdbusmenu-gtk')
-rw-r--r-- | libdbusmenu-gtk/parser.c | 13 |
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; + } } } |