aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-local-storage.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2002-07-10 01:06:19 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2002-07-10 01:06:19 +0800
commit779e0f5058e089279c2851e18ef7003ec88bb61f (patch)
tree93f0fd3b5d40fb2f137559a99df776c322e3e919 /shell/e-local-storage.c
parentcf89cb7e60e13f38c6530fe1ccd33f42a79d8497 (diff)
downloadgsoc2013-evolution-779e0f5058e089279c2851e18ef7003ec88bb61f.tar.gz
gsoc2013-evolution-779e0f5058e089279c2851e18ef7003ec88bb61f.tar.zst
gsoc2013-evolution-779e0f5058e089279c2851e18ef7003ec88bb61f.zip
Call e_icon_factory_init().
* main.c (main): Call e_icon_factory_init(). * e-local-storage.c (setup_folder_as_stock): New arg @icon_name; if not NULL, set up a custom icon for the folder. (setup_stock_folders): Set up custom icons for inbox and outbox. * e-storage-set-view.c (get_pixbuf_for_folder): If the folder has a custom icon, return the custom icon. * e-folder.c: New member custom_icon_name. (init): Initialize to NULL. (destroy): Free. (e_folder_get_custom_icon): New. (e_folder_set_custom_icon): New. svn path=/trunk/; revision=17391
Diffstat (limited to 'shell/e-local-storage.c')
-rw-r--r--shell/e-local-storage.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/shell/e-local-storage.c b/shell/e-local-storage.c
index f79c31f8fe..0af9c0aa51 100644
--- a/shell/e-local-storage.c
+++ b/shell/e-local-storage.c
@@ -152,7 +152,8 @@ new_folder (ELocalStorage *local_storage,
static gboolean
setup_folder_as_stock (ELocalStorage *local_storage,
const char *path,
- const char *name)
+ const char *name,
+ const char *custom_icon_name)
{
EFolder *folder;
@@ -162,6 +163,7 @@ setup_folder_as_stock (ELocalStorage *local_storage,
e_folder_set_name (folder, name);
e_folder_set_is_stock (folder, TRUE);
+ e_folder_set_custom_icon (folder, custom_icon_name);
return TRUE;
}
@@ -169,14 +171,14 @@ setup_folder_as_stock (ELocalStorage *local_storage,
static void
setup_stock_folders (ELocalStorage *local_storage)
{
- setup_folder_as_stock (local_storage, "/Calendar", U_("Calendar"));
- setup_folder_as_stock (local_storage, "/Contacts", U_("Contacts"));
- setup_folder_as_stock (local_storage, "/Drafts", U_("Drafts"));
- setup_folder_as_stock (local_storage, "/Inbox", U_("Inbox"));
- setup_folder_as_stock (local_storage, "/Outbox", U_("Outbox"));
- setup_folder_as_stock (local_storage, "/Sent", U_("Sent"));
- setup_folder_as_stock (local_storage, "/Tasks", U_("Tasks"));
- setup_folder_as_stock (local_storage, "/Trash", U_("Trash"));
+ setup_folder_as_stock (local_storage, "/Calendar", U_("Calendar"), NULL);
+ setup_folder_as_stock (local_storage, "/Contacts", U_("Contacts"), NULL);
+ setup_folder_as_stock (local_storage, "/Drafts", U_("Drafts"), NULL);
+ setup_folder_as_stock (local_storage, "/Inbox", U_("Inbox"), "inbox");
+ setup_folder_as_stock (local_storage, "/Outbox", U_("Outbox"), "outbox");
+ setup_folder_as_stock (local_storage, "/Sent", U_("Sent"), NULL);
+ setup_folder_as_stock (local_storage, "/Tasks", U_("Tasks"), NULL);
+ setup_folder_as_stock (local_storage, "/Trash", U_("Trash"), NULL);
}
static gboolean