works on windows but i see nothing on ubuntu, which might be due unity. thank you
Am 04.07.2011 06:45, schrieb Mark Dootson: > Hi, > > Attached test script gives working Wx::TaskBarIcon on both Linux and Windows > for me. > > I think the main issue using Wx::TaskBarIcon is that you cannot call > $taskbaricon->Destroy() within an event handler for the taskbar icon itself > (hence the AddPendingEvent action in the example). > > I actually find this to be the case for many windows under none MSW platforms. > If you destroy a window from within one of its own event handlers, then you > get a segmentation fault or bus error. I haven't really tested this out fully > because avoiding calling 'Destroy' directly is such a simple workaround. > > Hope it helps > > Mark > > > On 23/06/2011 02:05, herbert breunung wrote: >> hai nice people here >> >> its understood that you have to >> >> $win->{'tb_icon'} = Wx::TaskBarIcon->new( ); >> $win->{'tb_icon'}->SetIcon( Wx::GetWxPerlIcon() ); >> #$win->{'tb_icon'}->RemoveIcon; >> $win->{'tb_icon'}->Destroy; >> >> but this works only under windows, >> linux gives you a nice memory access error. >> >> i think this is a bug >> >> further more it cant be destroyed on app shutdown, but >> maybe i didnt found the solution and have to derive from it or something, >> cant find it in the dmeo app. >> >> thanks for reading