From: Paul Cornett Date: Mon, 3 Sep 2007 20:45:21 +0000 (+0000) Subject: call SetLegacyWMProperties last, it calls gtk_widget_realize, which will lead to... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7d8e5b8f04d24aa8c732d4e1fc3cb162a77beed5 call SetLegacyWMProperties last, it calls gtk_widget_realize, which will lead to assertion failures if initialization has not been done yet git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48534 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/unix/taskbarx11.cpp b/src/unix/taskbarx11.cpp index c335b5d7af..b28971768a 100644 --- a/src/unix/taskbarx11.cpp +++ b/src/unix/taskbarx11.cpp @@ -126,13 +126,6 @@ END_EVENT_TABLE() wxTaskBarIconArea::wxTaskBarIconArea(wxTaskBarIcon *icon, const wxBitmap &bmp) : wxTaskBarIconAreaBase(), m_icon(icon), m_pos(0,0) { - if (!IsProtocolSupported()) - { - wxLogTrace(_T("systray"), - _T("using legacy KDE1,2 and GNOME 1.2 methods")); - SetLegacyWMProperties(); - } - #if defined(__WXGTK20__) && defined(TASKBAR_ICON_AREA_BASE_INCLUDED) m_invokingWindow = icon; #endif @@ -142,6 +135,13 @@ wxTaskBarIconArea::wxTaskBarIconArea(wxTaskBarIcon *icon, const wxBitmap &bmp) SetSize(wxSize(bmp.GetWidth(), bmp.GetHeight())); SetTrayIcon(bmp); + + if (!IsProtocolSupported()) + { + wxLogTrace(_T("systray"), + _T("using legacy KDE1,2 and GNOME 1.2 methods")); + SetLegacyWMProperties(); + } } void wxTaskBarIconArea::SetTrayIcon(const wxBitmap& bmp)