GTK2: gtk_window_set_policy -> gtk_window_set_resizable. Slight change for resizable toplevel behaviour -

allow_shrink is now always FALSE - it being TRUE is told to be 99% of the times a bad idea, too. I think we aren't
the 1% case here


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37282 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mart Raudsepp
2006-02-03 22:08:01 +00:00
parent 67b73b9aab
commit 43a52404ac
2 changed files with 3 additions and 3 deletions

View File

@@ -120,7 +120,7 @@ gtk_dialog_realized_callback( GtkWidget * WXUNUSED(widget), wxPopupWindow *win )
gdk_window_set_decorations( win->m_widget->window, (GdkWMDecoration)decor);
gdk_window_set_functions( win->m_widget->window, (GdkWMFunction)func);
gtk_window_set_policy(GTK_WINDOW(win->m_widget), 0, 0, 1);
gtk_window_set_resizable(GTK_WINDOW(win->m_widget), FALSE);
return FALSE;
}

View File

@@ -333,9 +333,9 @@ gtk_frame_realized_callback( GtkWidget * WXUNUSED(widget),
// GTK's shrinking/growing policy
if ((win->m_gdkFunc & GDK_FUNC_RESIZE) == 0)
gtk_window_set_policy(GTK_WINDOW(win->m_widget), 0, 0, 1);
gtk_window_set_resizable(GTK_WINDOW(win->m_widget), FALSE);
else
gtk_window_set_policy(GTK_WINDOW(win->m_widget), 1, 1, 1);
gtk_window_set_resizable(GTK_WINDOW(win->m_widget), TRUE);
// reset the icon
wxIconBundle iconsOld = win->GetIcons();