GtkStatusIcon and popup menu



Hi,

I'm writing a little app that's using a systray icon and pop menu when you
right-click it to interact with user. I'm displaying the menu with
gtk_menu_popup() in response to the "popup-menu" signal. Something is
bugging me, it does work, but the menu won't go away unless one of its items
is clicked, while menus from my other systray icons disappear as soon as i
click somewhere out of it. I tried around, this problem doesn't happen when
calling gtk_menu_popup in response to a widget's "button-press-event"/button
== 3 for example, only in "popup-menu" callback. Any idea to make this menu
go away normally? Thanks.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]