diff options
author | Jonny Lamb <jonnylamb@gnome.org> | 2010-02-17 00:38:21 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-02-17 01:47:13 +0800 |
commit | 37aabc6b1e5b97747da6bb1b3070fa2fdaffa530 (patch) | |
tree | 1f37308a4e39967ca2d970f7e7fe5c6b8295d107 /src/empathy-debug-window.c | |
parent | fd49fd64d74d56ae4e1cf514edfb1aec348832a4 (diff) | |
download | gsoc2013-empathy-37aabc6b1e5b97747da6bb1b3070fa2fdaffa530.tar gsoc2013-empathy-37aabc6b1e5b97747da6bb1b3070fa2fdaffa530.tar.gz gsoc2013-empathy-37aabc6b1e5b97747da6bb1b3070fa2fdaffa530.tar.bz2 gsoc2013-empathy-37aabc6b1e5b97747da6bb1b3070fa2fdaffa530.tar.lz gsoc2013-empathy-37aabc6b1e5b97747da6bb1b3070fa2fdaffa530.tar.xz gsoc2013-empathy-37aabc6b1e5b97747da6bb1b3070fa2fdaffa530.tar.zst gsoc2013-empathy-37aabc6b1e5b97747da6bb1b3070fa2fdaffa530.zip |
Use TpDebugSender to publish debug messages (#607330)
Diffstat (limited to 'src/empathy-debug-window.c')
-rw-r--r-- | src/empathy-debug-window.c | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/src/empathy-debug-window.c b/src/empathy-debug-window.c index da2c0e079..b8b34b273 100644 --- a/src/empathy-debug-window.c +++ b/src/empathy-debug-window.c @@ -34,6 +34,7 @@ #include <libempathy-gtk/empathy-geometry.h> #include <telepathy-glib/dbus.h> +#include <telepathy-glib/interfaces.h> #include <telepathy-glib/util.h> #include <telepathy-glib/proxy-subclass.h> @@ -115,22 +116,22 @@ log_level_to_string (guint level) { switch (level) { - case EMP_DEBUG_LEVEL_ERROR: + case TP_DEBUG_LEVEL_ERROR: return "Error"; break; - case EMP_DEBUG_LEVEL_CRITICAL: + case TP_DEBUG_LEVEL_CRITICAL: return "Critical"; break; - case EMP_DEBUG_LEVEL_WARNING: + case TP_DEBUG_LEVEL_WARNING: return "Warning"; break; - case EMP_DEBUG_LEVEL_MESSAGE: + case TP_DEBUG_LEVEL_MESSAGE: return "Message"; break; - case EMP_DEBUG_LEVEL_INFO: + case TP_DEBUG_LEVEL_INFO: return "Info"; break; - case EMP_DEBUG_LEVEL_DEBUG: + case TP_DEBUG_LEVEL_DEBUG: return "Debug"; break; default: @@ -281,7 +282,7 @@ debug_window_set_enabled (EmpathyDebugWindow *debug_window, val = tp_g_value_slice_new_boolean (enabled); - tp_cli_dbus_properties_call_set (priv->proxy, -1, EMP_IFACE_DEBUG, + tp_cli_dbus_properties_call_set (priv->proxy, -1, TP_IFACE_DEBUG, "Enabled", val, NULL, NULL, NULL, NULL); tp_g_value_slice_free (val); @@ -1297,37 +1298,37 @@ debug_window_constructor (GType type, gtk_list_store_append (level_store, &iter); gtk_list_store_set (level_store, &iter, COL_LEVEL_NAME, _("Debug"), - COL_LEVEL_VALUE, EMP_DEBUG_LEVEL_DEBUG, + COL_LEVEL_VALUE, TP_DEBUG_LEVEL_DEBUG, -1); gtk_list_store_append (level_store, &iter); gtk_list_store_set (level_store, &iter, COL_LEVEL_NAME, _("Info"), - COL_LEVEL_VALUE, EMP_DEBUG_LEVEL_INFO, + COL_LEVEL_VALUE, TP_DEBUG_LEVEL_INFO, -1); gtk_list_store_append (level_store, &iter); gtk_list_store_set (level_store, &iter, COL_LEVEL_NAME, _("Message"), - COL_LEVEL_VALUE, EMP_DEBUG_LEVEL_MESSAGE, + COL_LEVEL_VALUE, TP_DEBUG_LEVEL_MESSAGE, -1); gtk_list_store_append (level_store, &iter); gtk_list_store_set (level_store, &iter, COL_LEVEL_NAME, _("Warning"), - COL_LEVEL_VALUE, EMP_DEBUG_LEVEL_WARNING, + COL_LEVEL_VALUE, TP_DEBUG_LEVEL_WARNING, -1); gtk_list_store_append (level_store, &iter); gtk_list_store_set (level_store, &iter, COL_LEVEL_NAME, _("Critical"), - COL_LEVEL_VALUE, EMP_DEBUG_LEVEL_CRITICAL, + COL_LEVEL_VALUE, TP_DEBUG_LEVEL_CRITICAL, -1); gtk_list_store_append (level_store, &iter); gtk_list_store_set (level_store, &iter, COL_LEVEL_NAME, _("Error"), - COL_LEVEL_VALUE, EMP_DEBUG_LEVEL_ERROR, + COL_LEVEL_VALUE, TP_DEBUG_LEVEL_ERROR, -1); gtk_combo_box_set_active (GTK_COMBO_BOX (priv->level_filter), 0); |