[Gtk-sharp-list] GtkMenu question
james.p.michels at gmail.com
Sat Feb 13 10:10:36 EST 2010
I am doing a popupmenu for a statusicon. Everything is working, but I need a
sanity check on the way I am constructing the menu.
When I was using the sequence topMenu.Append(...), topMenu.ShowAll(),
topMenu.Popup() I had the undesirable behavior that releasing the mouse
button (on the original status icon right click) selected an item in the
popup menu forcing the user to keep their mouse button depressed while they
moved the cursor to their choice.
I modified the sequence to topMenu.Popup(), topMenu.Append(...),
topMenu.ShowAll() with the idea that popping up the menu without items would
blackhole the status icon button up event. This seems to be the case, but am
I depending on unreliable behavior.
View this message in context: http://n4.nabble.com/GtkMenu-question-tp1554482p1554482.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.
More information about the Gtk-sharp-list