]> git.0d.be Git - empathy.git/blobdiff - libempathy-gtk/empathy-theme-adium.c
Merge commit 'upstream/master' into mc5
[empathy.git] / libempathy-gtk / empathy-theme-adium.c
index 3fd4932a7acc6a30f49034b247a2108ceeffca86..e04771597bd56692fbf5271b361a0e8c362cffe6 100644 (file)
@@ -31,7 +31,6 @@
 
 #include <libempathy/empathy-time.h>
 #include <libempathy/empathy-utils.h>
-#include <libmissioncontrol/mc-profile.h>
 
 #include "empathy-theme-adium.h"
 #include "empathy-smiley-manager.h"
@@ -472,7 +471,6 @@ theme_adium_append_html (EmpathyThemeAdium *theme,
                } else if (theme_adium_match (&cur, "%time")) {
                        gchar *format = NULL;
                        gchar *end;
-
                        /* Time can be in 2 formats:
                         * %time% or %time{strftime format}%
                         * Extract the time format if provided. */
@@ -517,7 +515,6 @@ theme_adium_append_message (EmpathyChatView *view,
        EmpathyThemeAdiumPriv *priv = GET_PRIV (theme);
        EmpathyContact        *sender;
        EmpathyAccount        *account;
-       McProfile             *account_profile;
        gchar                 *dup_body = NULL;
        const gchar           *body;
        const gchar           *name;
@@ -541,8 +538,7 @@ theme_adium_append_message (EmpathyChatView *view,
        /* Get information */
        sender = empathy_message_get_sender (msg);
        account = empathy_contact_get_account (sender);
-       account_profile = empathy_account_get_profile (account);
-       service_name = mc_profile_get_display_name (account_profile);
+       service_name = empathy_account_get_protocol (account);
        timestamp = empathy_message_get_timestamp (msg);
        body = empathy_message_get_body (msg);
        dup_body = theme_adium_parse_body (theme, body);