Add wxSTAY_ON_TOP support [Patch 1206023]

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34207 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Kevin Hock
2005-05-21 04:15:22 +00:00
parent 9489a5357f
commit 2fca39c9aa
2 changed files with 14 additions and 0 deletions

View File

@@ -506,6 +506,13 @@ bool wxTopLevelWindowGTK::Create( wxWindow *parent,
}
#endif
#if GTK_CHECK_VERSION(2,4,0)
if (style & wxSTAY_ON_TOP)
{
gtk_window_set_keep_above(GTK_WINDOW(m_widget), TRUE);
}
#endif
if (!name.IsEmpty())
gtk_window_set_wmclass( GTK_WINDOW(m_widget), wxGTK_CONV( name ), wxGTK_CONV( name ) );