+#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):
+ SetClientSize(wxSize(bmp.GetWidth(), bmp.GetHeight()));
+
+ SetTrayIcon(bmp);
+