aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-view.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2001-05-20 22:45:47 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-05-20 22:45:47 +0800
commite9a5c3d19ce9cd6c68b4dc288215464d06868e3b (patch)
treee069ccf34850a2ff98f9ff3558d50cc6bd1c0d28 /shell/e-shell-view.c
parent047d10743cda9e5198e0e1cde0d7817aa61c811e (diff)
downloadgsoc2013-evolution-e9a5c3d19ce9cd6c68b4dc288215464d06868e3b.tar.gz
gsoc2013-evolution-e9a5c3d19ce9cd6c68b4dc288215464d06868e3b.tar.zst
gsoc2013-evolution-e9a5c3d19ce9cd6c68b4dc288215464d06868e3b.zip
Implemented the "Copy Folder" and "Move Folder" menu items. Untested.
svn path=/trunk/; revision=9899
Diffstat (limited to 'shell/e-shell-view.c')
-rw-r--r--shell/e-shell-view.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c
index 8806b56ff4..73b7e3ba20 100644
--- a/shell/e-shell-view.c
+++ b/shell/e-shell-view.c
@@ -1770,6 +1770,14 @@ e_shell_view_get_appbar (EShellView *shell_view)
return shell_view->priv->appbar;
}
+/**
+ * e_shell_view_get_current_uri:
+ * @shell_view: A pointer to an EShellView object
+ *
+ * Get the URI currently displayed by this shell view.
+ *
+ * Return value:
+ **/
const char *
e_shell_view_get_current_uri (EShellView *shell_view)
{
@@ -1779,6 +1787,32 @@ e_shell_view_get_current_uri (EShellView *shell_view)
return shell_view->priv->uri;
}
+/**
+ * e_shell_view_get_current_path:
+ * @shell_view: A pointer to an EShellView object
+ *
+ * Get the path of the current displayed folder.
+ *
+ * Return value:
+ **/
+const char *
+e_shell_view_get_current_path (EShellView *shell_view)
+{
+ const char *current_uri;
+ const char *current_path;
+
+ current_uri = e_shell_view_get_current_uri (shell_view);
+ if (current_uri == NULL)
+ return NULL;
+
+ if (strncmp (current_uri, E_SHELL_URI_PREFIX, E_SHELL_URI_PREFIX_LEN) == 0)
+ current_path = current_uri + E_SHELL_URI_PREFIX_LEN;
+ else
+ current_path = NULL;
+
+ return current_path;
+}
+
static void
save_shortcut_bar_icon_modes (EShellView *shell_view)
{