aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-folder-selection-dialog.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2001-02-09 05:20:50 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-02-09 05:20:50 +0800
commit88594ac53a888dac465fc5e2ccb0925cc0c0a49a (patch)
tree9418c784cfd893df6cc48cbd6711444f2b6e2614 /shell/e-shell-folder-selection-dialog.c
parentfb6c1a7afb699431ce6860888f423d5c2e7c1c8e (diff)
downloadgsoc2013-evolution-88594ac53a888dac465fc5e2ccb0925cc0c0a49a.tar
gsoc2013-evolution-88594ac53a888dac465fc5e2ccb0925cc0c0a49a.tar.gz
gsoc2013-evolution-88594ac53a888dac465fc5e2ccb0925cc0c0a49a.tar.bz2
gsoc2013-evolution-88594ac53a888dac465fc5e2ccb0925cc0c0a49a.tar.lz
gsoc2013-evolution-88594ac53a888dac465fc5e2ccb0925cc0c0a49a.tar.xz
gsoc2013-evolution-88594ac53a888dac465fc5e2ccb0925cc0c0a49a.tar.zst
gsoc2013-evolution-88594ac53a888dac465fc5e2ccb0925cc0c0a49a.zip
Change the folder selection dialog so that, when you click on "New"
and create a folder, that folder becomes the default folder when you go back to the selection dialog. svn path=/trunk/; revision=8119
Diffstat (limited to 'shell/e-shell-folder-selection-dialog.c')
-rw-r--r--shell/e-shell-folder-selection-dialog.c25
1 files changed, 23 insertions, 2 deletions
diff --git a/shell/e-shell-folder-selection-dialog.c b/shell/e-shell-folder-selection-dialog.c
index be530ef59c..c76e956131 100644
--- a/shell/e-shell-folder-selection-dialog.c
+++ b/shell/e-shell-folder-selection-dialog.c
@@ -93,12 +93,31 @@ check_folder_type (EShellFolderSelectionDialog *folder_selection_dialog)
}
e_notice (GTK_WINDOW (folder_selection_dialog), GNOME_MESSAGE_BOX_ERROR,
- _("The type of the selected folder is not valid for\nthe requested operation."));
+ _("The type of the selected folder is not valid for\n"
+ "the requested operation."));
return FALSE;
}
+/* Folder creation dialog callback. */
+
+static void
+folder_creation_dialog_result_cb (EShell *shell,
+ EShellFolderCreationDialogResult result,
+ const char *path,
+ void *data)
+{
+ EShellFolderSelectionDialog *dialog;
+ EShellFolderSelectionDialogPrivate *priv;
+
+ dialog = E_SHELL_FOLDER_SELECTION_DIALOG (data);
+ priv = dialog->priv;
+
+ e_storage_set_view_set_current_folder (E_STORAGE_SET_VIEW (priv->storage_set_view), path);
+}
+
+
/* GtkObject methods. */
static void
@@ -175,7 +194,9 @@ impl_clicked (GnomeDialog *dialog,
default_parent_folder = e_storage_set_view_get_current_folder (storage_set_view);
e_shell_show_folder_creation_dialog (priv->shell, GTK_WINDOW (dialog),
- default_parent_folder);
+ default_parent_folder,
+ folder_creation_dialog_result_cb,
+ dialog);
break;
}