X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/78c67f19b3dcd274e4d04580b6ad2d379f0d953d..ed4eede6c2c16cdb422a39c1b3655956b8f51a1c:/src/unix/taskbarx11.cpp diff --git a/src/unix/taskbarx11.cpp b/src/unix/taskbarx11.cpp index cf64c408a6..b95729d16c 100644 --- a/src/unix/taskbarx11.cpp +++ b/src/unix/taskbarx11.cpp @@ -48,8 +48,14 @@ // ---------------------------------------------------------------------------- #ifdef __WXGTK20__ - #include "wx/gtk/taskbarpriv.h" -#else + #include + #if GTK_CHECK_VERSION(2,1,0) + #include "wx/gtk/taskbarpriv.h" + #define TASKBAR_ICON_AREA_BASE_INCLUDED + #endif +#endif + +#ifndef TASKBAR_ICON_AREA_BASE_INCLUDED class WXDLLIMPEXP_ADV wxTaskBarIconAreaBase : public wxFrame { public: @@ -125,6 +131,10 @@ wxTaskBarIconArea::wxTaskBarIconArea(wxTaskBarIcon *icon, const wxBitmap &bmp) _T("using legacy KDE1,2 and GNOME 1.2 methods")); SetLegacyWMProperties(); } + +#if defined(__WXGTK20__) && defined(TASKBAR_ICON_AREA_BASE_INCLUDED) + m_invokingWindow = icon; +#endif // Set initial size to bitmap size (tray manager may and often will // change it):