aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-view-menu.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2001-05-19 20:40:00 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-05-19 20:40:00 +0800
commitbb6a06a3cbf45bdfe24f91e98cfb0c52bb3d777f (patch)
tree1c39d4ca53ffca3aa7876d619a606f8c8e17c035 /shell/e-shell-view-menu.c
parente2edef6e5e7546ce591f2318bce9d115a223d78d (diff)
downloadgsoc2013-evolution-bb6a06a3cbf45bdfe24f91e98cfb0c52bb3d777f.tar
gsoc2013-evolution-bb6a06a3cbf45bdfe24f91e98cfb0c52bb3d777f.tar.gz
gsoc2013-evolution-bb6a06a3cbf45bdfe24f91e98cfb0c52bb3d777f.tar.bz2
gsoc2013-evolution-bb6a06a3cbf45bdfe24f91e98cfb0c52bb3d777f.tar.lz
gsoc2013-evolution-bb6a06a3cbf45bdfe24f91e98cfb0c52bb3d777f.tar.xz
gsoc2013-evolution-bb6a06a3cbf45bdfe24f91e98cfb0c52bb3d777f.tar.zst
gsoc2013-evolution-bb6a06a3cbf45bdfe24f91e98cfb0c52bb3d777f.zip
Create new files for the folder commands, and move the "Create new
folder" implementation into them. svn path=/trunk/; revision=9889
Diffstat (limited to 'shell/e-shell-view-menu.c')
-rw-r--r--shell/e-shell-view-menu.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/shell/e-shell-view-menu.c b/shell/e-shell-view-menu.c
index 4ca1c37b75..3e8d2b9bd7 100644
--- a/shell/e-shell-view-menu.c
+++ b/shell/e-shell-view-menu.c
@@ -47,6 +47,8 @@
#include "e-shell-view-menu.h"
#include "e-shell-importer.h"
+#include "e-shell-folder-commands.h"
+
#include "e-util/e-gui-utils.h"
@@ -410,22 +412,11 @@ command_create_folder (BonoboUIComponent *uih,
{
EShellView *shell_view;
EShell *shell;
- const char *current_uri;
- const char *default_folder;
shell_view = E_SHELL_VIEW (data);
shell = e_shell_view_get_shell (shell_view);
- current_uri = e_shell_view_get_current_uri (shell_view);
-
- if (strncmp (current_uri, E_SHELL_URI_PREFIX, E_SHELL_URI_PREFIX_LEN) == 0)
- default_folder = current_uri + E_SHELL_URI_PREFIX_LEN;
- else
- default_folder = NULL;
-
- e_shell_show_folder_creation_dialog (shell, GTK_WINDOW (shell_view), default_folder,
- NULL /* result_callback */,
- NULL /* result_callback_data */);
+ e_shell_command_create_new_folder (shell, shell_view);
}
static void