From 53ef8f9b779e5f97f71c6fead1078c7bd4961637 Mon Sep 17 00:00:00 2001 From: Felix Kaser Date: Tue, 10 Nov 2009 09:54:14 +0100 Subject: removed double code removed one of two identical lines of code --- src/empathy-main-window.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/empathy-main-window.c b/src/empathy-main-window.c index 04142ad08..915ca40d6 100644 --- a/src/empathy-main-window.c +++ b/src/empathy-main-window.c @@ -339,14 +339,15 @@ main_window_error_display (EmpathyMainWindow *window, gchar *str; const gchar *icon_name; + str = g_markup_printf_escaped ("%s - %s", + empathy_account_get_display_name (account), + message); + info_bar = g_hash_table_lookup (window->errors, account); if (info_bar) { label = g_object_get_data (G_OBJECT (info_bar), "label"); /* Just set the latest error and return */ - str = g_markup_printf_escaped ("%s - %s", - tp_account_get_display_name (account), - message); gtk_label_set_markup (GTK_LABEL (label), str); g_free (str); @@ -367,9 +368,6 @@ main_window_error_display (EmpathyMainWindow *window, image = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_SMALL_TOOLBAR); gtk_widget_show (image); - str = g_markup_printf_escaped ("%s - %s", - tp_account_get_display_name (account), - message); label = gtk_label_new (str); gtk_label_set_use_markup (GTK_LABEL (label), TRUE); gtk_widget_show (label); -- cgit v1.2.3