replace deprecated gtk_window_set_policy
[claws.git] / src / addr_compl.c
index bb37d2d44de7fddb009e0b1856576082a681f994..b29c87849538b9bab69b17175bb6e26882ac21ec 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() ) {
 
        /* 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);
                gtk_widget_set_size_request( cw->window, width, gdk_screen_height() - y );
        } else
                gtk_widget_set_size_request(cw->window, width, r.height);