aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-local-storage.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2000-09-11 19:12:16 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2000-09-11 19:12:16 +0800
commit0f618ac4cfae7d62fca7c0468458f55f3e4a3e9f (patch)
tree735c7930b24b243bf2cd72c6984c4d274c1ffb2e /shell/e-local-storage.c
parent32496628e7268ad257e87a84d97add1239473dfa (diff)
downloadgsoc2013-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.c28
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);
}