Revision 2399 src/mainwindow.c
| mainwindow.c (revision 2399) | ||
|---|---|---|
| 1779 | 1779 |
gchar *path; |
| 1780 | 1780 |
Folder *folder; |
| 1781 | 1781 |
|
| 1782 |
path = input_dialog(_("Add mailbox"),
|
|
| 1783 |
_("Specify the location of mailbox.\n"
|
|
| 1784 |
"If the existing mailbox is specified, it will be\n" |
|
| 1785 |
"scanned automatically."), |
|
| 1786 |
"Mail"); |
|
| 1782 |
path = input_dialog_with_filesel |
|
| 1783 |
(_("Add mailbox"),
|
|
| 1784 |
_("Specify the location of mailbox.\n"
|
|
| 1785 |
"If the existing mailbox is specified, it will be\n" |
|
| 1786 |
"scanned automatically."), |
|
| 1787 |
"Mail", GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER); |
|
| 1787 | 1788 |
if (!path) return; |
| 1788 | 1789 |
if (folder_find_from_path(path)) {
|
| 1789 | 1790 |
alertpanel_error(_("The mailbox `%s' already exists."), path);
|
Also available in: Unified diff