replace deprecated gtk_window_set_policy
authorPaul Mangan <paul@claws-mail.org>
Wed, 28 Jul 2004 07:57:21 +0000 (07:57 +0000)
committerPaul Mangan <paul@claws-mail.org>
Wed, 28 Jul 2004 07:57:21 +0000 (07:57 +0000)
src/addr_compl.c
src/addressbook.c
src/alertpanel.c
src/compose.c
src/export.c
src/foldersel.c
src/folderview.c
src/grouplistdialog.c
src/import.c
src/mainwindow.c

index bb37d2d..b29c878 100644 (file)
@@ -708,7 +708,7 @@ static void addrcompl_resize_window( CompletionWindow *cw ) {
 
        /* Adjust window height to available screen space */
        if( ( y + r.height ) > gdk_screen_height() ) {
-               gtk_window_set_policy( GTK_WINDOW( cw->window ), TRUE, FALSE, FALSE );
+               gtk_window_set_resizable(GTK_WINDOW(cw->window), FALSE);
                gtk_widget_set_size_request( cw->window, width, gdk_screen_height() - y );
        } else
                gtk_widget_set_size_request(cw->window, width, r.height);
index 8e81f47..f44b66e 100644 (file)
@@ -647,7 +647,7 @@ static void addressbook_create(void)
        window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
        gtk_window_set_title(GTK_WINDOW(window), _("Address book"));
        gtk_widget_set_size_request(window, ADDRESSBOOK_WIDTH, ADDRESSBOOK_HEIGHT);
-       gtk_window_set_policy(GTK_WINDOW(window), TRUE, TRUE, TRUE);
+       gtk_window_set_resizable(GTK_WINDOW(window), TRUE);
        gtk_window_set_wmclass(GTK_WINDOW(window), "addressbook", "Sylpheed");
        gtk_widget_realize(window);
 
index 081073a..6a3e7f3 100644 (file)
@@ -249,7 +249,7 @@ static void alertpanel_create(const gchar *title,
 
        dialog = gtk_dialog_new();
        gtk_window_set_title(GTK_WINDOW(dialog), title);
-       gtk_window_set_policy(GTK_WINDOW(dialog), FALSE, FALSE, FALSE);
+       gtk_window_set_resizable(GTK_WINDOW(dialog), FALSE);
        gtk_container_set_border_width
                (GTK_CONTAINER(GTK_DIALOG(dialog)->action_area), 5);
        gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_CENTER);
index 9c7c948..e1adb88 100644 (file)
@@ -5132,7 +5132,7 @@ static Compose *compose_create(PrefsAccount *account, ComposeMode mode)
        compose->account = account;
 
        window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
-       gtk_window_set_policy(GTK_WINDOW(window), TRUE, TRUE, FALSE);
+       gtk_window_set_resizable(GTK_WINDOW(window), TRUE);
        gtk_widget_set_size_request(window, -1, prefs_common.compose_height);
        gtk_window_set_wmclass(GTK_WINDOW(window), "compose window", "Sylpheed");
 
index 08c17c3..bc73c9d 100644 (file)
@@ -142,7 +142,7 @@ static void export_create(void)
        gtk_container_set_border_width(GTK_CONTAINER(window), 5);
        gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER);
        gtk_window_set_modal(GTK_WINDOW(window), TRUE);
-       gtk_window_set_policy(GTK_WINDOW(window), FALSE, TRUE, FALSE);
+       gtk_window_set_resizable(GTK_WINDOW(window), TRUE);
        g_signal_connect(G_OBJECT(window), "delete_event",
                         G_CALLBACK(delete_event), NULL);
        g_signal_connect(G_OBJECT(window), "key_press_event",
index 893a5d7..ecc0682 100644 (file)
@@ -154,7 +154,7 @@ static void foldersel_create(void)
        gtk_container_set_border_width(GTK_CONTAINER(window), 4);
        gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER);
        gtk_window_set_modal(GTK_WINDOW(window), TRUE);
-       gtk_window_set_policy(GTK_WINDOW(window), FALSE, TRUE, FALSE);
+       gtk_window_set_resizable(GTK_WINDOW(window), TRUE);
        gtk_window_set_wmclass
                (GTK_WINDOW(window), "folder_selection", "Sylpheed");
        g_signal_connect(G_OBJECT(window), "delete_event",
index 98dcbe1..13f4613 100644 (file)
@@ -749,7 +749,7 @@ static GtkWidget *label_window_create(const gchar *str)
        gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER);
        gtk_window_set_title(GTK_WINDOW(window), str);
        gtk_window_set_modal(GTK_WINDOW(window), TRUE);
-       gtk_window_set_policy(GTK_WINDOW(window), FALSE, FALSE, FALSE);
+       gtk_window_set_resizable(GTK_WINDOW(window), FALSE);
        manage_window_set_transient(GTK_WINDOW(window));
 
        label = gtk_label_new(str);
index 2224c1b..9a90027 100644 (file)
@@ -162,7 +162,7 @@ static void grouplist_dialog_create(void)
        gint i;
 
        dialog = gtk_dialog_new();
-       gtk_window_set_policy(GTK_WINDOW(dialog), FALSE, TRUE, FALSE);
+       gtk_window_set_resizable(GTK_WINDOW(dialog), TRUE);
        gtk_widget_set_size_request(dialog,
                                    GROUPLIST_DIALOG_WIDTH, GROUPLIST_DIALOG_HEIGHT);
        gtk_container_set_border_width
index 63395b7..b6bc418 100644 (file)
@@ -147,7 +147,7 @@ static void import_create(void)
        gtk_container_set_border_width(GTK_CONTAINER(window), 5);
        gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER);
        gtk_window_set_modal(GTK_WINDOW(window), TRUE);
-       gtk_window_set_policy(GTK_WINDOW(window), FALSE, TRUE, FALSE);
+       gtk_window_set_resizable(GTK_WINDOW(window), TRUE);
        g_signal_connect(G_OBJECT(window), "delete_event",
                         G_CALLBACK(delete_event), NULL);
        g_signal_connect(G_OBJECT(window), "key_press_event",
index 4b2a436..708bdbe 100644 (file)
@@ -810,7 +810,7 @@ MainWindow *main_window_create(SeparateType type)
        /* main window */
        window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
        gtk_window_set_title(GTK_WINDOW(window), PROG_VERSION);
-       gtk_window_set_policy(GTK_WINDOW(window), TRUE, TRUE, FALSE);
+       gtk_window_set_resizable(GTK_WINDOW(window), TRUE);
        gtk_window_set_wmclass(GTK_WINDOW(window), "main_window", "Sylpheed");
 
        if (!geometry.min_height) {
@@ -1960,8 +1960,7 @@ static void main_window_set_widgets(MainWindow *mainwin, SeparateType type)
                                     _("Sylpheed - Folder View"));
                gtk_window_set_wmclass(GTK_WINDOW(folderwin),
                                       "folder_view", "Sylpheed");
-               gtk_window_set_policy(GTK_WINDOW(folderwin),
-                                     TRUE, TRUE, FALSE);
+               gtk_window_set_resizable(GTK_WINDOW(folderwin), TRUE);
                gtk_window_move(GTK_WINDOW(folderwin), prefs_common.folderwin_x,
                                prefs_common.folderwin_y);
                gtk_container_set_border_width(GTK_CONTAINER(folderwin),
@@ -1981,8 +1980,7 @@ static void main_window_set_widgets(MainWindow *mainwin, SeparateType type)
                                     _("Sylpheed - Message View"));
                gtk_window_set_wmclass(GTK_WINDOW(messagewin),
                                       "message_view", "Sylpheed");
-               gtk_window_set_policy(GTK_WINDOW(messagewin),
-                                     TRUE, TRUE, FALSE);
+               gtk_window_set_resizable(GTK_WINDOW(messagewin), TRUE);
                gtk_window_move(GTK_WINDOW(messagewin), 
                                prefs_common.main_msgwin_x,
                                prefs_common.main_msgwin_y);