aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-account-store.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-02-01 06:26:24 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-02-01 06:39:05 +0800
commite6a149efcee2aa45a4956d1e1da0e8f0b35b4cc7 (patch)
tree938fc2a956f5486e656b3500c505f73dd5beb509 /mail/e-mail-account-store.c
parentfd43cd692ad12e7f9c70386c1b0867b16f9ec15d (diff)
downloadgsoc2013-evolution-e6a149efcee2aa45a4956d1e1da0e8f0b35b4cc7.tar.gz
gsoc2013-evolution-e6a149efcee2aa45a4956d1e1da0e8f0b35b4cc7.tar.zst
gsoc2013-evolution-e6a149efcee2aa45a4956d1e1da0e8f0b35b4cc7.zip
EMailAccountStore: Use an appropriate icon for online accounts.
Use "goa-panel" for GOA, "credentials-preferences" for UOA. Also move the icon before the account name. Looks better.
Diffstat (limited to 'mail/e-mail-account-store.c')
-rw-r--r--mail/e-mail-account-store.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/mail/e-mail-account-store.c b/mail/e-mail-account-store.c
index cb1f4e000d..ed635f9b61 100644
--- a/mail/e-mail-account-store.c
+++ b/mail/e-mail-account-store.c
@@ -978,6 +978,7 @@ e_mail_account_store_init (EMailAccountStore *store)
types[ii++] = G_TYPE_BOOLEAN; /* COLUMN_DEFAULT */
types[ii++] = G_TYPE_STRING; /* COLUMN_BACKEND_NAME */
types[ii++] = G_TYPE_STRING; /* COLUMN_DISPLAY_NAME */
+ types[ii++] = G_TYPE_STRING; /* COLUMN_ICON_NAME */
types[ii++] = G_TYPE_BOOLEAN; /* COLUMN_ONLINE_ACCOUNT */
types[ii++] = G_TYPE_BOOLEAN; /* COLUMN_ENABLED_VISIBLE */
@@ -1110,6 +1111,7 @@ e_mail_account_store_add_service (EMailAccountStore *store,
ESource *source;
GtkTreeIter iter;
const gchar *filename;
+ const gchar *icon_name = NULL;
const gchar *uid;
gboolean builtin;
gboolean enabled;
@@ -1151,6 +1153,9 @@ e_mail_account_store_add_service (EMailAccountStore *store,
if (e_source_has_extension (collection, extension_name)) {
online_account = TRUE;
enabled_visible = FALSE;
+
+ /* Provided by gnome-control-center-data. */
+ icon_name = "goa-panel";
}
/* Check for Ubuntu Online Accounts linkage. */
@@ -1158,6 +1163,9 @@ e_mail_account_store_add_service (EMailAccountStore *store,
if (e_source_has_extension (collection, extension_name)) {
online_account = TRUE;
enabled_visible = FALSE;
+
+ /* Provided by gnome-control-center-signon. */
+ icon_name = "credentials-preferences";
}
g_object_unref (collection);
@@ -1186,6 +1194,7 @@ e_mail_account_store_add_service (EMailAccountStore *store,
E_MAIL_ACCOUNT_STORE_COLUMN_SERVICE, service,
E_MAIL_ACCOUNT_STORE_COLUMN_BUILTIN, builtin,
E_MAIL_ACCOUNT_STORE_COLUMN_ENABLED, enabled,
+ E_MAIL_ACCOUNT_STORE_COLUMN_ICON_NAME, icon_name,
E_MAIL_ACCOUNT_STORE_COLUMN_ONLINE_ACCOUNT, online_account,
E_MAIL_ACCOUNT_STORE_COLUMN_ENABLED_VISIBLE, enabled_visible,
-1);