On Thu, 2006-07-27 at 23:02 +0200, Tobias Schlitt wrote:

> > 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?

If you are building your own copy of Gtk#, could you apply the attached
patch and make sure it fixes it without you manually holding a ref?

-- 
Mike Kestner <[EMAIL PROTECTED]>
Index: gnome/PanelApplet.custom
===================================================================
--- gnome/PanelApplet.custom	(revision 62973)
+++ gnome/PanelApplet.custom	(working copy)
@@ -9,6 +9,7 @@
 	IntPtr native = GLib.Marshaller.StringToPtrGStrdup (xml);
 	panel_applet_setup_menu (Handle, native, nulled_items, IntPtr.Zero);
 	GLib.Marshaller.Free (native);
+	PersistentData ["setup_menu_verbs"] = items;
 }
 
 public abstract void Creation ();
_______________________________________________
Gtk-sharp-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to