diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2000-09-11 19:12:16 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2000-09-11 19:12:16 +0800 |
commit | 0f618ac4cfae7d62fca7c0468458f55f3e4a3e9f (patch) | |
tree | 735c7930b24b243bf2cd72c6984c4d274c1ffb2e /shell/e-local-storage.c | |
parent | 32496628e7268ad257e87a84d97add1239473dfa (diff) | |
download | gsoc2013-evolution-0f618ac4cfae7d62fca7c0468458f55f3e4a3e9f.tar.gz gsoc2013-evolution-0f618ac4cfae7d62fca7c0468458f55f3e4a3e9f.tar.zst gsoc2013-evolution-0f618ac4cfae7d62fca7c0468458f55f3e4a3e9f.zip |
Fully support setting the display name in the tree. It seems to work.
svn path=/trunk/; revision=5320
Diffstat (limited to 'shell/e-local-storage.c')
-rw-r--r-- | shell/e-local-storage.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/shell/e-local-storage.c b/shell/e-local-storage.c index 5e78f05b9a..7a8a1de8e2 100644 --- a/shell/e-local-storage.c +++ b/shell/e-local-storage.c @@ -507,6 +507,30 @@ impl_async_remove_folder (EStorage *storage, } +/* Callbacks for the `Evolution::LocalStorage' interface we are exposing to the outside world. */ + +static void +bonobo_interface_set_display_name_cb (EvolutionLocalStorage *bonobo_local_storage, + const char *path, + const char *display_name, + void *data) +{ + ELocalStorage *local_storage; + EFolder *folder; + + local_storage = E_LOCAL_STORAGE (data); + + g_print ("%s -- %s %s\n", __FUNCTION__, path, display_name); + + folder = e_storage_get_folder (E_STORAGE (local_storage), path); + if (folder == NULL) + return; + + e_folder_set_name (folder, display_name); + +} + + /* Initialization. */ static void @@ -569,6 +593,10 @@ construct (ELocalStorage *local_storage, g_assert (priv->bonobo_interface == NULL); priv->bonobo_interface = evolution_local_storage_new (E_LOCAL_STORAGE_NAME); + gtk_signal_connect (GTK_OBJECT (priv->bonobo_interface), "set_display_name", + GTK_SIGNAL_FUNC (bonobo_interface_set_display_name_cb), + local_storage); + return load_all_folders (local_storage); } |