aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2007-05-10 04:14:47 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2007-05-10 04:14:47 +0800
commitc8af87e2c62a9fcd9e3ddc0836b4975fa7011622 (patch)
tree297d56e67220f53b52cac7d5b577237aec2178a9
parent653614a7d74bb9c68402dfb9cc323421c3deaef4 (diff)
downloadgsoc2013-empathy-c8af87e2c62a9fcd9e3ddc0836b4975fa7011622.tar
gsoc2013-empathy-c8af87e2c62a9fcd9e3ddc0836b4975fa7011622.tar.gz
gsoc2013-empathy-c8af87e2c62a9fcd9e3ddc0836b4975fa7011622.tar.bz2
gsoc2013-empathy-c8af87e2c62a9fcd9e3ddc0836b4975fa7011622.tar.lz
gsoc2013-empathy-c8af87e2c62a9fcd9e3ddc0836b4975fa7011622.tar.xz
gsoc2013-empathy-c8af87e2c62a9fcd9e3ddc0836b4975fa7011622.tar.zst
gsoc2013-empathy-c8af87e2c62a9fcd9e3ddc0836b4975fa7011622.zip
[darcs-to-svn @ connect to the error signal on MC]
svn path=/trunk/; revision=42
-rw-r--r--src/empathy-main.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/empathy-main.c b/src/empathy-main.c
index 0815e1216..c2cb2ec51 100644
--- a/src/empathy-main.c
+++ b/src/empathy-main.c
@@ -48,6 +48,10 @@ static void error_cb (MissionControl *mc,
gpointer data);
static void service_ended_cb (MissionControl *mc,
gpointer user_data);
+static void operation_error_cb (MissionControl *mc,
+ guint operation_id,
+ guint error_code,
+ gpointer user_data);
static void start_mission_control (MissionControl *mc);
static void destroy_cb (GtkWidget *window,
MissionControl *mc);
@@ -72,6 +76,17 @@ service_ended_cb (MissionControl *mc,
}
static void
+operation_error_cb (MissionControl *mc,
+ guint operation_id,
+ guint error_code,
+ gpointer user_data)
+{
+ gossip_debug (DEBUG_DOMAIN, "Error code %d during operation %d",
+ error_code,
+ operation_id);
+}
+
+static void
account_enabled_cb (McAccountMonitor *monitor,
gchar *unique_name,
MissionControl *mc)
@@ -162,6 +177,9 @@ main (int argc, char *argv[])
g_signal_connect (mc, "ServiceEnded",
G_CALLBACK (service_ended_cb),
NULL);
+ g_signal_connect (mc, "Error",
+ G_CALLBACK (operation_error_cb),
+ NULL);
start_mission_control (mc);
/* Setting up the main window */