[gtk+] Improve error messages of signal monitor
- From: Kristian Rietveld <kristian src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Improve error messages of signal monitor
- Date: Mon, 22 Aug 2011 19:39:47 +0000 (UTC)
commit dc12c373dcaaab57440569716ce0a3ecd3d7aa3d
Author: Xavier Claessens <xclaesse gmail com>
Date: Wed May 11 22:07:01 2011 +0200
Improve error messages of signal monitor
gtk/tests/filtermodel.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/gtk/tests/filtermodel.c b/gtk/tests/filtermodel.c
index 59ff968..6d12cf2 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]