From 20ba4616e69dac642f1965ebff207c18139cf2bd Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Mon, 3 Sep 2007 20:45:21 +0000 Subject: [PATCH] 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/branches/WX_2_8_BRANCH@48534 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/unix/taskbarx11.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/unix/taskbarx11.cpp b/src/unix/taskbarx11.cpp index cf5e12e52a..f495871bb8 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)