X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/77e79241e89f1968dd2f5a2faa6513ebd4df2087..8ad31f9dfdb85a54cd080aac6957883f2f3e38e3:/src/common/wincmn.cpp diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index f316331cce..9e8bc62c7c 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -29,7 +29,6 @@ #include "wx/log.h" #include "wx/intl.h" #include "wx/frame.h" - #include "wx/defs.h" #include "wx/window.h" #include "wx/control.h" #include "wx/checkbox.h" @@ -81,16 +80,15 @@ // For reporting compile- and runtime version of GTK+ in the ctrl+alt+mclick dialog. // The gtk includes don't pull any other headers in, at least not on my system - MR #ifdef __WXGTK__ - #ifdef __WXGTK20__ - #include - #else - #include - #endif + #include extern const unsigned int gtk_major_version; extern const unsigned int gtk_minor_version; extern const unsigned int gtk_micro_version; #endif +// Windows List +WXDLLIMPEXP_DATA_CORE(wxWindowList) wxTopLevelWindows; + // ---------------------------------------------------------------------------- // static data // ---------------------------------------------------------------------------- @@ -721,7 +719,7 @@ void wxWindowBase::DoGetScreenPosition(int *x, int *y) const if ( y ) *y = 0; - return ClientToScreen(x, y); + ClientToScreen(x, y); } // ---------------------------------------------------------------------------- @@ -1528,10 +1526,13 @@ void wxWindowBase::SetToolTip( const wxString &tip ) void wxWindowBase::DoSetToolTip(wxToolTip *tooltip) { - if ( m_tooltip ) - delete m_tooltip; + if ( m_tooltip != tooltip ) + { + if ( m_tooltip ) + delete m_tooltip; - m_tooltip = tooltip; + m_tooltip = tooltip; + } } #endif // wxUSE_TOOLTIPS