[vinagre] Use debug framework in tube files, instead of g_debug
- From: Jonh Wendell <jwendell src gnome org>
- To: svn-commits-list gnome org
- Subject: [vinagre] Use debug framework in tube files, instead of g_debug
- Date: Mon, 27 Jul 2009 15:04:11 +0000 (UTC)
commit 517ada0e06af3eee53cd3f41567e80adb0b9fff7
Author: Jonh Wendell <jwendell gnome org>
Date: Mon Jul 27 12:03:20 2009 -0300
Use debug framework in tube files, instead of g_debug
vinagre/vinagre-tube-handler.c | 9 +++++----
vinagre/vinagre-tubes-manager.c | 11 ++++++-----
2 files changed, 11 insertions(+), 9 deletions(-)
---
diff --git a/vinagre/vinagre-tube-handler.c b/vinagre/vinagre-tube-handler.c
index 5b10783..72f9246 100644
--- a/vinagre/vinagre-tube-handler.c
+++ b/vinagre/vinagre-tube-handler.c
@@ -34,6 +34,7 @@
#include "vinagre-commands.h"
#include "vinagre-tab.h"
#include "vinagre-notebook.h"
+#include "vinagre-debug.h"
#define MC_DBUS_SERVICE "org.freedesktop.Telepathy.MissionControl"
#define MC_DBUS_SERVICE_PATH "/org/freedesktop/Telepathy/MissionControl"
@@ -75,7 +76,7 @@ vinagre_tube_handler_dispose (GObject *object)
{
VinagreTubeHandlerPrivate *priv = VINAGRE_TUBE_HANDLER_GET_PRIVATE(object);
- g_debug ("-- Destruction of a Tube handler --\n");
+ vinagre_debug_message (DEBUG_TUBE, "-- Destruction of a Tube handler --\n");
if (priv->channel != NULL)
{
@@ -180,7 +181,7 @@ vinagre_tube_handler_tab_disconnected_cb (GtkNotebook *notebook,
if (priv->tab == tab)
{
- g_debug ("Tab has been destroyed. Closing the tube handler.");
+ vinagre_debug_message (DEBUG_TUBE,"Tab has been destroyed. Closing the tube handler.");
vinagre_tube_handler_fire_disconnected (self);
}
}
@@ -194,7 +195,7 @@ vinagre_tube_handler_tube_invalidated (TpProxy *channel,
{
VinagreTubeHandlerPrivate *priv = VINAGRE_TUBE_HANDLER_GET_PRIVATE (self);
- g_debug ("Tube is invalidated : %s\n", message);
+ vinagre_debug_message (DEBUG_TUBE,"Tube is invalidated : %s\n", message);
g_object_unref (priv->channel);
priv->channel = NULL;
@@ -466,7 +467,7 @@ vinagre_tube_handler_constructed (GObject *object)
TpContactFeature features[] = { TP_CONTACT_FEATURE_ALIAS,
TP_CONTACT_FEATURE_AVATAR_TOKEN };
- g_debug (" -- New Tube handler --\n");
+ vinagre_debug_message (DEBUG_TUBE," -- New Tube handler --\n");
connection = tp_channel_borrow_connection (priv->channel);
diff --git a/vinagre/vinagre-tubes-manager.c b/vinagre/vinagre-tubes-manager.c
index aecb150..f982381 100644
--- a/vinagre/vinagre-tubes-manager.c
+++ b/vinagre/vinagre-tubes-manager.c
@@ -32,6 +32,7 @@
#include "vinagre-tubes-manager.h"
#include "vinagre-tube-handler.h"
+#include "vinagre-debug.h"
#define BUS_NAME "org.gnome.Empathy.StreamTubeHandler.x_vnc"
#define OBJECT_PATH "/org/gnome/Empathy/StreamTubeHandler/x_vnc"
@@ -171,7 +172,7 @@ vinagre_tubes_manager_channel_ready_cb (TpChannel *channel,
if (error != NULL)
{
- g_debug ("channel has been invalidated: %s", error->message);
+ vinagre_debug_message (DEBUG_TUBE,"channel has been invalidated: %s", error->message);
vinagre_tubes_manager_tube_ready_destroy_notify (data);
g_object_unref (channel);
return;
@@ -197,7 +198,7 @@ vinagre_tubes_manager_connection_ready_cb (TpConnection *connection,
if (error != NULL)
{
- g_debug ("connection has been invalidated: %s", error->message);
+ vinagre_debug_message (DEBUG_TUBE,"connection has been invalidated: %s", error->message);
vinagre_tubes_manager_tube_ready_destroy_notify (data);
g_object_unref (connection);
return;
@@ -217,7 +218,7 @@ vinagre_tubes_manager_handle_tube_idle_cb (gpointer data)
TpConnection *connection;
static TpDBusDaemon *daemon = NULL;
- g_debug ("New tube to be handled");
+ vinagre_debug_message (DEBUG_TUBE,"New tube to be handled");
if (!daemon)
daemon = tp_dbus_daemon_new (tp_get_bus ());
@@ -273,13 +274,13 @@ vinagre_tubes_manager_register_tube_handler (GObject *object)
G_TYPE_STRING, BUS_NAME, G_TYPE_UINT, DBUS_NAME_FLAG_DO_NOT_QUEUE,
G_TYPE_INVALID, G_TYPE_UINT, &result, G_TYPE_INVALID))
{
- g_debug ("Failed to request name: %s",
+ vinagre_debug_message (DEBUG_TUBE,"Failed to request name: %s",
error ? error->message : "No error given");
g_clear_error (&error);
goto OUT;
}
- g_debug ("Creating tube handler %s object_path:%s\n", BUS_NAME,
+ vinagre_debug_message (DEBUG_TUBE,"Creating tube handler %s object_path:%s\n", BUS_NAME,
OBJECT_PATH);
dbus_g_connection_register_g_object (tp_get_bus (), OBJECT_PATH,
G_OBJECT (object));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]