From 2be125e6fcb56ce4d5bd5ad9953ff5c1a0ea9b7e Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Mon, 28 Jun 2004 21:47:54 +0000 Subject: [PATCH] implemented wxFRAME_NO_TASKBAR for wxGTK2 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28067 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/changes.txt | 1 + src/gtk/toplevel.cpp | 7 +++++++ src/gtk1/toplevel.cpp | 7 +++++++ 3 files changed, 15 insertions(+) diff --git a/docs/changes.txt b/docs/changes.txt index ecbf2662fb..291f8a1ea0 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -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: diff --git a/src/gtk/toplevel.cpp b/src/gtk/toplevel.cpp index 62cf1e50b7..08af067d3b 100644 --- a/src/gtk/toplevel.cpp +++ b/src/gtk/toplevel.cpp @@ -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 ) ); diff --git a/src/gtk1/toplevel.cpp b/src/gtk1/toplevel.cpp index 62cf1e50b7..08af067d3b 100644 --- a/src/gtk1/toplevel.cpp +++ b/src/gtk1/toplevel.cpp @@ -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 ) ); -- 2.45.2