[Gtk-sharp-list] Change a Gtk.Label in a Gtk.MenuItem

Richard Torkar richard.torkar@htu.se
Wed, 01 Oct 2003 14:27:45 +0200


On Wed, 2003-10-01 at 13:17, Jonathan Pryor wrote:
> I have seen this as well.
> 
> I just haven't gotten around to writing a minimal test case and filing
> it in bugzilla.

I filed it in bugzilla:
http://bugzilla.ximian.com/show_bug.cgi?id=49145

Please add comments if you want, Jonathan.

> It appears to be a Gtk# bug, in which GTK+ doesn't like Gtk# accessing
> GTK+ objects that Gtk# didn't create.
> 
> For example, MenuItem.NewWithLabel creates a MenuItem with a (GTK+
> created) Label child.  Attempts to access/modify the child label
> generates the error message that you're seeing.
> 
> However, I haven't seen your behavior where it works the first time and
> fails thereafter.  It always fails for me (IIRC).
> 
> Given the GTK+ documentation I've read, this is a perfectly legal (and
> common!) thing to do, so I can only conclude it's a Gtk# issue.

/Richard