X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cb8cc2506b73a5ea51b515a41eb6ea7a5f5ad60c..a8d2fb31cbf09dcc4683c9566ff4bc89580f268c:/src/gtk1/toplevel.cpp diff --git a/src/gtk1/toplevel.cpp b/src/gtk1/toplevel.cpp index f8bcd99d54..5f3bdc21c8 100644 --- a/src/gtk1/toplevel.cpp +++ b/src/gtk1/toplevel.cpp @@ -572,7 +572,7 @@ bool wxTopLevelWindowGTK::Create( wxWindow *parent, } #endif -#if GTK_CHECK_VERSION(2,4,0) +#ifdef __WXGTK24__ if (!gtk_check_version(2,4,0)) { if (style & wxSTAY_ON_TOP) @@ -1361,3 +1361,28 @@ void wxTopLevelWindowGTK::RequestUserAttention(int flags) #endif wxgtk_window_set_urgency_hint(GTK_WINDOW( m_widget ), new_hint_value); } + +void wxTopLevelWindowGTK::SetWindowStyleFlag( long style ) +{ + // Store which styles were changed + long styleChanges = style ^ m_windowStyle; + + // Process wxWindow styles. This also updates the internal variable + // Therefore m_windowStyle bits carry now the _new_ style values + wxWindow::SetWindowStyleFlag(style); + + // just return for now if widget does not exist yet + if (!m_widget) + return; + +#ifdef __WXGTK24__ + if ( (styleChanges & wxSTAY_ON_TOP) && !gtk_check_version(2,4,0) ) + gtk_window_set_keep_above(GTK_WINDOW(m_widget), m_windowStyle & wxSTAY_ON_TOP); +#endif +#if GTK_CHECK_VERSION(2,2,0) + if ( (styleChanges & wxFRAME_NO_TASKBAR) && !gtk_check_version(2,2,0) ) + { + gtk_window_set_skip_taskbar_hint(GTK_WINDOW(m_widget), m_windowStyle & wxFRAME_NO_TASKBAR); + } +#endif +}