[empathy] removed double code
- From: Felix Kaser <kaserf src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy] removed double code
- Date: Tue, 10 Nov 2009 15:00:22 +0000 (UTC)
commit 53ef8f9b779e5f97f71c6fead1078c7bd4961637
Author: Felix Kaser <f kaser gmx net>
Date: Tue Nov 10 09:54:14 2009 +0100
removed double code
removed one of two identical lines of code
src/empathy-main-window.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/src/empathy-main-window.c b/src/empathy-main-window.c
index 04142ad..915ca40 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]