]> git.saurik.com Git - wxWidgets.git/commitdiff
wxTaskBarIcon works on wxGTK now too.
authorRobin Dunn <robin@alldunn.com>
Mon, 22 Dec 2003 21:25:58 +0000 (21:25 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 22 Dec 2003 21:25:58 +0000 (21:25 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24968 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/demo/Main.py

index 438245d4567e5544c095bfe32ff4a40fb496d7b4..bd75b35f5bb95a8f9146a1cab246da122fea7408 100644 (file)
@@ -439,8 +439,10 @@ class wxPythonDemo(wx.Frame):
         icon = images.getMondrianIcon()
         self.SetIcon(icon)
 
-        if wx.Platform == '__WXMSW__':
+        if wx.Platform != '__WXMAC__':
             # setup a taskbar icon, and catch some events from it
+            icon = wx.IconFromBitmap(
+                images.getMondrianImage().Scale(16,16).ConvertToBitmap() )            
             self.tbicon = wx.TaskBarIcon()
             self.tbicon.SetIcon(icon, "wxPython Demo")
             self.tbicon.Bind(wx.EVT_TASKBAR_LEFT_DCLICK, self.OnTaskBarActivate)