replace deprecated gtk_window_set_policy