aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2009-09-24 00:10:43 +0800
committerCosimo Cecchi <cosimoc@gnome.org>2009-09-24 00:10:43 +0800
commite1d586491b6dff96f88e9311390162d1d2798df7 (patch)
tree6f23c352699103890c76d1b9bb992350d1a96982
parenteff3dea95f6aac46d5d4dda80d225c3464b403af (diff)
downloadgsoc2013-empathy-e1d586491b6dff96f88e9311390162d1d2798df7.tar
gsoc2013-empathy-e1d586491b6dff96f88e9311390162d1d2798df7.tar.gz
gsoc2013-empathy-e1d586491b6dff96f88e9311390162d1d2798df7.tar.bz2
gsoc2013-empathy-e1d586491b6dff96f88e9311390162d1d2798df7.tar.lz
gsoc2013-empathy-e1d586491b6dff96f88e9311390162d1d2798df7.tar.xz
gsoc2013-empathy-e1d586491b6dff96f88e9311390162d1d2798df7.tar.zst
gsoc2013-empathy-e1d586491b6dff96f88e9311390162d1d2798df7.zip
Don't show the "missing" image (#595921).
If the icon theme doesn't have the protocol icon for the account we currently selected, show a default icon.
-rw-r--r--src/empathy-accounts-dialog.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c
index e10f72270..e57c80393 100644
--- a/src/empathy-accounts-dialog.c
+++ b/src/empathy-accounts-dialog.c
@@ -302,11 +302,19 @@ account_dialog_create_settings_widget (EmpathyAccountsDialog *dialog,
icon_name = empathy_account_settings_get_icon_name (settings);
+ if (!gtk_icon_theme_has_icon (gtk_icon_theme_get_default (),
+ icon_name))
+ /* show the default icon; keep this in sync with the default
+ * one in empathy-accounts-dialog.ui.
+ */
+ icon_name = GTK_STOCK_CUT;
+
gtk_image_set_from_icon_name (GTK_IMAGE (priv->image_type),
icon_name, GTK_ICON_SIZE_DIALOG);
gtk_widget_set_tooltip_text (priv->image_type,
empathy_protocol_name_to_display_name
(empathy_account_settings_get_protocol (settings)));
+ gtk_widget_show (priv->image_type);
accounts_dialog_update_name_label (dialog,
empathy_account_settings_get_display_name (settings));