aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2007-05-10 04:14:47 +0800
committerxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2007-05-10 04:14:47 +0800
commit924a1ae0f4338effc29bda9df3b3825d7818ae57 (patch)
tree297d56e67220f53b52cac7d5b577237aec2178a9 /src
parent0a2de85a4c4ec4bd16360591bf105a67320f5009 (diff)
downloadgsoc2013-empathy-924a1ae0f4338effc29bda9df3b3825d7818ae57.tar
gsoc2013-empathy-924a1ae0f4338effc29bda9df3b3825d7818ae57.tar.gz
gsoc2013-empathy-924a1ae0f4338effc29bda9df3b3825d7818ae57.tar.bz2
gsoc2013-empathy-924a1ae0f4338effc29bda9df3b3825d7818ae57.tar.lz
gsoc2013-empathy-924a1ae0f4338effc29bda9df3b3825d7818ae57.tar.xz
gsoc2013-empathy-924a1ae0f4338effc29bda9df3b3825d7818ae57.tar.zst
gsoc2013-empathy-924a1ae0f4338effc29bda9df3b3825d7818ae57.zip
[darcs-to-svn @ connect to the error signal on MC]
git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@42 4ee84921-47dd-4033-b63a-18d7a039a3e4
Diffstat (limited to 'src')
-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 */