diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2001-02-09 05:20:50 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2001-02-09 05:20:50 +0800 |
commit | 88594ac53a888dac465fc5e2ccb0925cc0c0a49a (patch) | |
tree | 9418c784cfd893df6cc48cbd6711444f2b6e2614 /shell/e-shell-folder-selection-dialog.c | |
parent | fb6c1a7afb699431ce6860888f423d5c2e7c1c8e (diff) | |
download | gsoc2013-evolution-88594ac53a888dac465fc5e2ccb0925cc0c0a49a.tar.gz 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.c | 25 |
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; } |