added gtk.tlw.can-set-transparency system option (replaces patch 1527017)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45187 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-03-31 14:51:10 +00:00
parent 7b377ed9b6
commit a95a6eb4aa
3 changed files with 22 additions and 0 deletions

View File

@@ -33,6 +33,7 @@
#include "wx/gtk/private.h"
#include "wx/evtloop.h"
#include "wx/sysopt.h"
#include <gtk/gtk.h>
#include <gdk/gdkx.h>
@@ -1415,6 +1416,13 @@ bool wxTopLevelWindowGTK::SetTransparent(wxByte alpha)
bool wxTopLevelWindowGTK::CanSetTransparent()
{
// allow to override automatic detection as it's far from perfect
static const wxChar *SYSOPT_TRANSPARENT = wxT("gtk.tlw.can-set-transparent");
if ( wxSystemOptions::HasOption(SYSOPT_TRANSPARENT) )
{
return wxSystemOptions::GetOptionInt(SYSOPT_TRANSPARENT) != 0;
}
#if GTK_CHECK_VERSION(2,10,0)
if (!gtk_check_version(2,10,0))
{