From dc12c373dcaaab57440569716ce0a3ecd3d7aa3d Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Wed, 11 May 2011 22:07:01 +0200 Subject: [PATCH] Improve error messages of signal monitor --- gtk/tests/filtermodel.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/gtk/tests/filtermodel.c b/gtk/tests/filtermodel.c index 59ff9681e6..6d12cf21bb 100644 --- a/gtk/tests/filtermodel.c +++ b/gtk/tests/filtermodel.c @@ -182,7 +182,13 @@ signal_monitor_generic_handler (SignalMonitor *m, if (g_queue_is_empty (m->queue)) { - g_error ("Signal queue empty\n"); + gchar *path_str; + + path_str = gtk_tree_path_to_string (path); + g_error ("Signal queue empty, got signal %s path %s\n", + signal_name_to_string (signal), path_str); + g_free (path_str); + g_assert_not_reached (); } @@ -197,7 +203,8 @@ signal_monitor_generic_handler (SignalMonitor *m, #if 0 /* For debugging: output signals that are coming in. Leaks memory. */ - g_print ("signal=%d path=%s\n", signal, gtk_tree_path_to_string (path)); + g_print ("signal=%s path=%s\n", signal_name_to_string (signal), + gtk_tree_path_to_string (path)); #endif if (s->signal != signal