]> git.saurik.com Git - wxWidgets.git/commitdiff
[wxGTK] Support run-time changing of the wxFRAME_NO_TASKBAR style value
authorMart Raudsepp <leio@gentoo.org>
Mon, 7 Nov 2005 23:06:34 +0000 (23:06 +0000)
committerMart Raudsepp <leio@gentoo.org>
Mon, 7 Nov 2005 23:06:34 +0000 (23:06 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36117 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/toplevel.cpp
src/gtk1/toplevel.cpp

index d8472ece1d8743876fe31ad0683a1e9b9844bb48..5f3bdc21c8682da646d0a85b1cba25fe27d8f6fb 100644 (file)
@@ -1379,4 +1379,10 @@ void wxTopLevelWindowGTK::SetWindowStyleFlag( long style )
     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
 }
index d8472ece1d8743876fe31ad0683a1e9b9844bb48..5f3bdc21c8682da646d0a85b1cba25fe27d8f6fb 100644 (file)
@@ -1379,4 +1379,10 @@ void wxTopLevelWindowGTK::SetWindowStyleFlag( long style )
     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
 }