aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-view.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2000-12-05 09:08:18 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2000-12-05 09:08:18 +0800
commit9c28295de36c8c18c01c5c7846566526cee7f1ac (patch)
tree80bdfe6eefc6b8d3c720191029fc7c899d8ec891 /shell/e-shell-view.c
parent80445852285529e0d323c8bb076512b69eaf96a3 (diff)
downloadgsoc2013-evolution-9c28295de36c8c18c01c5c7846566526cee7f1ac.tar
gsoc2013-evolution-9c28295de36c8c18c01c5c7846566526cee7f1ac.tar.gz
gsoc2013-evolution-9c28295de36c8c18c01c5c7846566526cee7f1ac.tar.bz2
gsoc2013-evolution-9c28295de36c8c18c01c5c7846566526cee7f1ac.tar.lz
gsoc2013-evolution-9c28295de36c8c18c01c5c7846566526cee7f1ac.tar.xz
gsoc2013-evolution-9c28295de36c8c18c01c5c7846566526cee7f1ac.tar.zst
gsoc2013-evolution-9c28295de36c8c18c01c5c7846566526cee7f1ac.zip
Start implementing a physical URI property for the toplevel nodes in
storages. Also add initial code in the shell to handle that. svn path=/trunk/; revision=6787
Diffstat (limited to 'shell/e-shell-view.c')
-rw-r--r--shell/e-shell-view.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c
index a82ba563b8..c6618e31c6 100644
--- a/shell/e-shell-view.c
+++ b/shell/e-shell-view.c
@@ -365,6 +365,27 @@ folder_selected_cb (EStorageSetView *storage_set_view,
popdown_transient_folder_bar (shell_view);
}
+/* Callback called when a storage in the tree view is clicked. */
+static void
+storage_selected_cb (EStorageSetView *storage_set_view,
+ const char *name,
+ void *data)
+{
+ EShellView *shell_view;
+ EShellViewPrivate *priv;
+ EStorageSet *storage_set;
+ EStorage *storage;
+ const char *uri;
+
+ shell_view = E_SHELL_VIEW (data);
+ priv = shell_view->priv;
+
+ storage_set = e_shell_get_storage_set (priv->shell);
+
+ storage = e_storage_set_get_storage (storage_set, name);
+ g_assert (storage != NULL);
+}
+
/* Callback called when the button on the tree's title bar is clicked. */
static void
storage_set_view_button_clicked_cb (ETitleBar *title_bar,
@@ -410,6 +431,8 @@ setup_storage_set_subwindow (EShellView *shell_view)
storage_set_view = e_storage_set_view_new (e_shell_get_storage_set (priv->shell));
gtk_signal_connect (GTK_OBJECT (storage_set_view), "folder_selected",
GTK_SIGNAL_FUNC (folder_selected_cb), shell_view);
+ gtk_signal_connect (GTK_OBJECT (storage_set_view), "storage_selected",
+ GTK_SIGNAL_FUNC (storage_selected_cb), shell_view);
scroll_frame = e_scroll_frame_new (NULL, NULL);
e_scroll_frame_set_policy (E_SCROLL_FRAME (scroll_frame), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);