diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/inputdialog.c | 4 | ||||
-rw-r--r-- | src/mainwindow.c | 2 | ||||
-rw-r--r-- | src/setup.c | 13 |
3 files changed, 9 insertions, 10 deletions
diff --git a/src/inputdialog.c b/src/inputdialog.c index 5ebdee85..ac1b6daa 100644 --- a/src/inputdialog.c +++ b/src/inputdialog.c @@ -168,8 +168,8 @@ static void input_dialog_create(void) GtkWidget *cancel_button; dialog = gtk_dialog_new(); - gtk_window_set_policy(GTK_WINDOW(dialog), FALSE, FALSE, FALSE); - gtk_widget_set_size_request(dialog, INPUT_DIALOG_WIDTH, -1); + gtk_window_set_resizable(GTK_WINDOW(dialog), FALSE); + gtk_window_set_default_size(GTK_WINDOW(dialog), INPUT_DIALOG_WIDTH, -1); gtk_container_set_border_width (GTK_CONTAINER(GTK_DIALOG(dialog)->action_area), 5); gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_CENTER); diff --git a/src/mainwindow.c b/src/mainwindow.c index 3edf1213..7f6c28ac 100644 --- a/src/mainwindow.c +++ b/src/mainwindow.c @@ -1591,7 +1591,7 @@ void main_window_add_mailbox(MainWindow *mainwin) Folder *folder; path = input_dialog(_("Add mailbox"), - _("Input the location of mailbox.\n" + _("Specify the location of mailbox.\n" "If the existing mailbox is specified, it will be\n" "scanned automatically."), "Mail"); diff --git a/src/setup.c b/src/setup.c index f924901f..783ad7b6 100644 --- a/src/setup.c +++ b/src/setup.c @@ -1,6 +1,6 @@ /* * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client - * Copyright (C) 1999,2000 Hiroyuki Yamamoto + * Copyright (C) 1999-2005 Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -28,10 +28,9 @@ #include "inputdialog.h" #include "alertpanel.h" #include "mainwindow.h" +#include "manage_window.h" #include "gtkutils.h" -#define SETUP_DIALOG_WIDTH 540 - static void scan_tree_func(Folder *folder, FolderItem *item, gpointer data); void setup(MainWindow *mainwin) @@ -39,15 +38,15 @@ void setup(MainWindow *mainwin) gchar *path; Folder *folder; + manage_window_focus_in(mainwin->window, NULL, NULL); path = input_dialog (_("Mailbox setting"), - _("First, you have to set the location of mailbox.\n" - "You can use existing mailbox in MH format\n" - "if you have the one.\n" - "If you're not sure, just select OK."), + _("Specify the location of mailbox.\n" + "If you are unsure, just select OK."), "Mail"); if (!path) return; if (folder_find_from_path(path)) { + alertpanel_error(_("The mailbox `%s' already exists."), path); g_warning("The mailbox already exists.\n"); g_free(path); return; |