diff options
Diffstat (limited to 'mail')
-rw-r--r-- | mail/em-folder-selector.c | 4 | ||||
-rw-r--r-- | mail/em-folder-utils.c | 16 | ||||
-rw-r--r-- | mail/em-folder-utils.h | 4 |
3 files changed, 15 insertions, 9 deletions
diff --git a/mail/em-folder-selector.c b/mail/em-folder-selector.c index ae3092d4df..5bf3b3f1c6 100644 --- a/mail/em-folder-selector.c +++ b/mail/em-folder-selector.c @@ -116,7 +116,9 @@ emfs_response (GtkWidget *dialog, gint response, EMFolderSelector *emfs) g_object_set_data ((GObject *)emfs->emft, "select", GUINT_TO_POINTER (1)); - em_folder_utils_create_folder (NULL, emfs->emft, em_folder_tree_get_session (emfs->emft), GTK_WINDOW (dialog)); + em_folder_utils_create_folder ( + GTK_WINDOW (dialog), emfs->emft, + em_folder_tree_get_session (emfs->emft), NULL); g_signal_stop_emission_by_name (emfs, "response"); } 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); diff --git a/mail/em-folder-utils.h b/mail/em-folder-utils.h index 54ccf5806e..8f7a2c70d3 100644 --- a/mail/em-folder-utils.h +++ b/mail/em-folder-utils.h @@ -46,10 +46,10 @@ void em_folder_utils_copy_folder (GtkWindow *parent, gboolean delete); void em_folder_utils_delete_folder (EMailBackend *backend, CamelFolder *folder); -void em_folder_utils_create_folder (CamelFolderInfo *folderinfo, +void em_folder_utils_create_folder (GtkWindow *parent, EMFolderTree *emft, EMailSession *session, - GtkWindow *parent); + const gchar *initial_uri); const gchar * em_folder_utils_get_icon_name (guint32 flags); |