aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFelix Kaser <f.kaser@gmx.net>2009-10-29 18:30:04 +0800
committerFelix Kaser <f.kaser@gmx.net>2009-11-10 22:26:17 +0800
commitbb3eb6c8c7dbe59445f40d14de67889781adb015 (patch)
tree9cd3750c71b6f377402a02a5c241d77cd1be56b3 /src
parent3e7a401084b4dced0bb3b16fae4b38fd54c455b7 (diff)
downloadgsoc2013-empathy-bb3eb6c8c7dbe59445f40d14de67889781adb015.tar
gsoc2013-empathy-bb3eb6c8c7dbe59445f40d14de67889781adb015.tar.gz
gsoc2013-empathy-bb3eb6c8c7dbe59445f40d14de67889781adb015.tar.bz2
gsoc2013-empathy-bb3eb6c8c7dbe59445f40d14de67889781adb015.tar.lz
gsoc2013-empathy-bb3eb6c8c7dbe59445f40d14de67889781adb015.tar.xz
gsoc2013-empathy-bb3eb6c8c7dbe59445f40d14de67889781adb015.tar.zst
gsoc2013-empathy-bb3eb6c8c7dbe59445f40d14de67889781adb015.zip
use account icon instead of warning sign
the infobar should use the account icon and not a generic warning sign
Diffstat (limited to 'src')
-rw-r--r--src/empathy-main-window.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/empathy-main-window.c b/src/empathy-main-window.c
index 335873ff9..3f456e534 100644
--- a/src/empathy-main-window.c
+++ b/src/empathy-main-window.c
@@ -353,6 +353,7 @@ main_window_error_display (EmpathyMainWindow *window,
GtkWidget *label;
GtkWidget *image;
gchar *str;
+ const gchar *icon_name;
info_bar = g_hash_table_lookup (window->errors, account);
if (info_bar) {
@@ -381,15 +382,15 @@ main_window_error_display (EmpathyMainWindow *window,
gtk_container_set_border_width (GTK_CONTAINER (info_bar), 6);
gtk_widget_show (info_bar);
- image = gtk_image_new_from_stock (GTK_STOCK_DIALOG_WARNING,
- GTK_ICON_SIZE_DIALOG);
+ icon_name = empathy_account_get_icon_name (account);
+ image = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_DIALOG);
gtk_widget_show (image);
str = g_markup_printf_escaped ("<b>%s</b>\n\n%s",
tp_account_get_display_name (account),
message);
- label = gtk_label_new ("");
- gtk_label_set_markup (GTK_LABEL (label), str);
+ label = gtk_label_new (str);
+ gtk_label_set_use_markup (GTK_LABEL (label), TRUE);
gtk_widget_show (label);
g_free (str);