]> git.saurik.com Git - wxWidgets.git/commitdiff
call SetLegacyWMProperties last, it calls gtk_widget_realize, which will lead to...
authorPaul Cornett <paulcor@bullseye.com>
Mon, 3 Sep 2007 20:45:21 +0000 (20:45 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Mon, 3 Sep 2007 20:45:21 +0000 (20:45 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48534 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/unix/taskbarx11.cpp

index c335b5d7af8cb777048571a1288da0faab813944..b28971768a347566df8e264653e7e32ef6628fd3 100644 (file)
@@ -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)