[Gtk-sharp-list] PanelApplet issue

Tobias Schlitt tobias at schlitt.info
Thu Jul 27 17:02:40 EDT 2006


On 07/27/2006 10:43 PM Mike Kestner wrote:
> On Thu, 2006-07-27 at 22:22 +0200, Tobias Schlitt wrote:

>> On 07/27/2006 09:45 PM Mike Kestner wrote:

>>> On Thu, 2006-07-27 at 11:30 +0200, Tobias Schlitt wrote:

>>>> I'm quite new to Mono, so please forgive me stupid errors. Thanks!
>>>> My Problem relates to the PanelApplet class which I am using to write
>>>> some Gnome panel applets. So far it works quite well, but on certain
>>>> actions the applet crashes with a stack trace and I don't really have an
>>>> approach to search for the reason.

>>> I'm wondering if the delegates are getting GC'd.  It doesn't look like
>>> we are holding a ref to the BonoboUIVerb[] or anything so that the
>>> delegates would stay alive.
>>> What happens if you hold a ref to the BonoboUIVerb[] that you pass to
>>> SetupMenu ()?

>> Hey, thanks, that was the issue. The reason sounds quite logical, but
>> after thinking about it, it was a real newbe question.

> It's still a bug.  Gtk# should take care of that for you.  The only
> question now is how best to hold those references.  We don't bind any
> way to remove menu items.  We can probably just hold them until the
> PanelApplet is destroyed.

I'm now holding them as a property in my panel class. Actually the
PanelApplet class could hold them itself, since it is just 1 menu per
panel. Or am I wrong?

Regards,
Toby
-- 
Tobias Schlitt - Zend Certified Engineer         GPG Key: 0xC462BC14
a passion for php                            http://www.schlitt.info
Like to say "thank you"?    -  http://pear.php.net/wishlist.php/toby

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20060727/c174a936/attachment.bin 


More information about the Gtk-sharp-list mailing list