[Gtk-sharp-list] Problems with Gtk.Menu
freijon at gmail.com
Mon Jul 25 13:22:44 EDT 2011
I'm having a strange problem with a /Gtk.Menu/, which I add to an app
indicator (using the AppIndicator package).
It seems like the Menu doesn't get "repainted" when I change its content.
But the following problems only occur on certain machines, I couldn't figure
out yet what makes this happen.
When I try to remove a /Submenu/ from a /MenuItem/ using
*MenuItem.Submenu.Destroy();* the /Submenu/ then is "/null/", but still
shows up when I hover over the MenuItem, which results in errors in the
Also, when I forget about the whole /Submenu/ and just try to change the
/Label/ of the /MenuItem/, this also doesn't get updated. It
just remains the same.
Keep in mind that this only occurs on some machines. On my machine for
example the code runs perfectly as expected. I can
only reproduce the bug on my virtual machine (where I have exactly the same
packages installed as on my laptop). I've also tried to *Destroy()* the
entire /Gtk.Menu/ in order to rebuild it completely, which also didn't work.
Here is my code if you want to take a look:
The interesting stuff is happening in the "On_Update" method
Any feedback is appreciated! Thanks in advance
View this message in context: http://mono.1490590.n4.nabble.com/Problems-with-Gtk-Menu-tp3693409p3693409.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.
More information about the Gtk-sharp-list