aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFelix Kaser <f.kaser@gmx.net>2009-11-10 16:54:14 +0800
committerFelix Kaser <f.kaser@gmx.net>2009-11-10 22:26:18 +0800
commit53ef8f9b779e5f97f71c6fead1078c7bd4961637 (patch)
tree60b61e4e58bb6e377d3ed68f08756c1d8381c193 /src
parent1cccce497a62d381c69a20c116739d39b93eeea3 (diff)
downloadgsoc2013-empathy-53ef8f9b779e5f97f71c6fead1078c7bd4961637.tar
gsoc2013-empathy-53ef8f9b779e5f97f71c6fead1078c7bd4961637.tar.gz
gsoc2013-empathy-53ef8f9b779e5f97f71c6fead1078c7bd4961637.tar.bz2
gsoc2013-empathy-53ef8f9b779e5f97f71c6fead1078c7bd4961637.tar.lz
gsoc2013-empathy-53ef8f9b779e5f97f71c6fead1078c7bd4961637.tar.xz
gsoc2013-empathy-53ef8f9b779e5f97f71c6fead1078c7bd4961637.tar.zst
gsoc2013-empathy-53ef8f9b779e5f97f71c6fead1078c7bd4961637.zip
removed double code
removed one of two identical lines of code
Diffstat (limited to 'src')
-rw-r--r--src/empathy-main-window.c10
1 files changed, 4 insertions, 6 deletions
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 ("<b>%s</b> - %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 ("<b>%s</b> - %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 ("<b>%s</b> - %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);