]> git.saurik.com Git - wxWidgets.git/commitdiff
implemented wxFRAME_NO_TASKBAR for wxGTK2
authorVáclav Slavík <vslavik@fastmail.fm>
Mon, 28 Jun 2004 21:47:54 +0000 (21:47 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Mon, 28 Jun 2004 21:47:54 +0000 (21:47 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28067 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/changes.txt
src/gtk/toplevel.cpp
src/gtk1/toplevel.cpp

index ecbf2662fba86b1a7ed924410482d10b99754329..291f8a1ea0abbd4d3263b584eaae4838b8224e1d 100644 (file)
@@ -137,6 +137,7 @@ wxGTK:
 - wxTreeCtrl::GetCount() counts root as well now (compatible with MSW)
 - added support for wxCHK_3STATE style (GTK2 only)
 - implemented text underlining under GTK2
+- implemented wxFRAME_NO_TASKBAR style (GTK >= 2.2)
 
 wxMotif:
 
index 62cf1e50b705a707b163d124a5584b46239e17c9..08af067d3b347780659ca6dd45aec526bac54d05 100644 (file)
@@ -380,6 +380,13 @@ bool wxTopLevelWindowGTK::Create( wxWindow *parent,
         gtk_window_set_transient_for( GTK_WINDOW(m_widget), GTK_WINDOW(m_parent->m_widget) );
     }
 
+#if GTK_CHECK_VERSION(2,2,0)
+    if (style & wxFRAME_NO_TASKBAR)
+    {
+        gtk_window_set_skip_taskbar_hint(GTK_WINDOW(m_widget), TRUE);
+    }
+#endif
+
     if (!name.IsEmpty())
         gtk_window_set_wmclass( GTK_WINDOW(m_widget), wxGTK_CONV( name ), wxGTK_CONV( name ) );
 
index 62cf1e50b705a707b163d124a5584b46239e17c9..08af067d3b347780659ca6dd45aec526bac54d05 100644 (file)
@@ -380,6 +380,13 @@ bool wxTopLevelWindowGTK::Create( wxWindow *parent,
         gtk_window_set_transient_for( GTK_WINDOW(m_widget), GTK_WINDOW(m_parent->m_widget) );
     }
 
+#if GTK_CHECK_VERSION(2,2,0)
+    if (style & wxFRAME_NO_TASKBAR)
+    {
+        gtk_window_set_skip_taskbar_hint(GTK_WINDOW(m_widget), TRUE);
+    }
+#endif
+
     if (!name.IsEmpty())
         gtk_window_set_wmclass( GTK_WINDOW(m_widget), wxGTK_CONV( name ), wxGTK_CONV( name ) );