projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
drawing circles with a transparent pen was filling of course...
[wxWidgets.git]
/
src
/
x11
/
toplevel.cpp
diff --git
a/src/x11/toplevel.cpp
b/src/x11/toplevel.cpp
index f7526733eabc0dc7af03fff2347c2b4096ecc064..7ac9f6937245fd418ed4798859de22e958e44fd1 100644
(file)
--- a/
src/x11/toplevel.cpp
+++ b/
src/x11/toplevel.cpp
@@
-17,7
+17,7
@@
// headers
// ----------------------------------------------------------------------------
// headers
// ----------------------------------------------------------------------------
-#if
def __GNUG__
+#if
defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "toplevel.h"
#endif
#pragma implementation "toplevel.h"
#endif
@@
-139,7
+139,7
@@
bool wxTopLevelWindowX11::Create(wxWindow *parent,
xattributes.override_redirect = True;
}
xattributes.override_redirect = True;
}
- if (
HasFlag( wxNO_
FULL_REPAINT_ON_RESIZE ))
+ if (
!HasFlag( wx
FULL_REPAINT_ON_RESIZE ))
{
xattributes_mask |= CWBitGravity;
xattributes.bit_gravity = NorthWestGravity;
{
xattributes_mask |= CWBitGravity;
xattributes.bit_gravity = NorthWestGravity;
@@
-248,7
+248,7
@@
wxTopLevelWindowX11::~wxTopLevelWindowX11()
wxTopLevelWindows.DeleteObject(this);
// If this is the last top-level window, exit.
wxTopLevelWindows.DeleteObject(this);
// If this is the last top-level window, exit.
- if ( wxTheApp && (wxTopLevelWindows.
Number
() == 0) )
+ if ( wxTheApp && (wxTopLevelWindows.
GetCount
() == 0) )
{
wxTheApp->SetTopWindow(NULL);
{
wxTheApp->SetTopWindow(NULL);
@@
-404,6
+404,13
@@
void wxTopLevelWindowX11::SetIcons(const wxIconBundle& icons )
wxSetIconsX11( wxGlobalDisplay(), GetMainWindow(), icons );
}
wxSetIconsX11( wxGlobalDisplay(), GetMainWindow(), icons );
}
+bool wxTopLevelWindowX11::SetShape(const wxRegion& region)
+{
+ return wxDoSetShape( wxGlobalDisplay(),
+ (Window)GetMainWindow(),
+ region );
+}
+
void wxTopLevelWindowX11::SetTitle(const wxString& title)
{
m_title = title;
void wxTopLevelWindowX11::SetTitle(const wxString& title)
{
m_title = title;
@@
-662,7
+669,7
@@
struct MwmHints {
#define PROP_MOTIF_WM_HINTS_ELEMENTS 5
// Set the window manager decorations according to the
#define PROP_MOTIF_WM_HINTS_ELEMENTS 5
// Set the window manager decorations according to the
-// given wxWi
ndow
s style
+// given wxWi
dget
s style
bool wxSetWMDecorations(Window w, long style)
{
#if wxUSE_NANOX
bool wxSetWMDecorations(Window w, long style)
{
#if wxUSE_NANOX