[darcs-to-svn @ connect to the error signal on MC]
[empathy.git] / src / empathy-main.c
index 0815e12..c2cb2ec 100644 (file)
@@ -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);
@@ -71,6 +75,17 @@ service_ended_cb (MissionControl *mc,
        gossip_debug (DEBUG_DOMAIN, "Mission Control stopped");
 }
 
+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,
@@ -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 */