diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-05-07 00:34:33 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-05-07 00:34:33 +0800 |
commit | 6d44258b85c29fb7c08dcaf842975435bbf44805 (patch) | |
tree | bcc40921c677ebbf5b184b1a24fdf05caf078cb5 /mail/em-folder-utils.c | |
parent | 308f972f0809e6fb638308adb71ed9549311487b (diff) | |
download | gsoc2013-evolution-6d44258b85c29fb7c08dcaf842975435bbf44805.tar.gz gsoc2013-evolution-6d44258b85c29fb7c08dcaf842975435bbf44805.tar.zst gsoc2013-evolution-6d44258b85c29fb7c08dcaf842975435bbf44805.zip |
em_folder_utils_create_folder(): Change function parameters.
Take a folder URI string instead of a CamelFolderInfo, and swap places
with the GtkWindow parameter.
Diffstat (limited to 'mail/em-folder-utils.c')
-rw-r--r-- | mail/em-folder-utils.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/mail/em-folder-utils.c b/mail/em-folder-utils.c index fdf18c2082..182ec200c3 100644 --- a/mail/em-folder-utils.c +++ b/mail/em-folder-utils.c @@ -773,10 +773,10 @@ emfu_popup_new_folder_response (EMFolderSelector *emfs, /* FIXME: these functions must be documented */ void -em_folder_utils_create_folder (CamelFolderInfo *folderinfo, +em_folder_utils_create_folder (GtkWindow *parent, EMFolderTree *emft, - EMailSession *session, - GtkWindow *parent) + EMailSession *session, + const gchar *initial_uri) { EMFolderTree *folder_tree; GtkWidget *dialog; @@ -788,9 +788,13 @@ em_folder_utils_create_folder (CamelFolderInfo *folderinfo, parent, folder_tree, 0, _("Create Folder"), _("Specify where to create the folder:")); - if (folderinfo != NULL) - em_folder_selector_set_selected ((EMFolderSelector *) dialog, folderinfo->uri); - g_signal_connect (dialog, "response", G_CALLBACK (emfu_popup_new_folder_response), emft ? emft : folder_tree); + if (initial_uri != NULL) + em_folder_selector_set_selected ( + EM_FOLDER_SELECTOR (dialog), initial_uri); + g_signal_connect ( + dialog, "response", + G_CALLBACK (emfu_popup_new_folder_response), + emft ? emft : folder_tree); if (!parent || !GTK_IS_DIALOG (parent)) gtk_widget_show (dialog); |