Cardapio window enters open/close loop when using gnome3 applet
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cardapio |
New
|
Undecided
|
Unassigned |
Bug Description
When using the gnome3 applet in gnome-panel, on gnome-flashback (Ubuntu) 16.04:
1. Open Cardapio by clicking on the applet
2. Close Cardapio by focusing on a different window or on the desktop
Expected result:
Cardapio window should close
Actual result:
Cardapio window closes, then opens again, then closes again, then opens again, etc.
This happens because there's a listener for the "clicked" event on the GtkToggleButton, which toggles the window, but there's also a listener on "on_menu_
Possible fix: disable the event listener before changing the button state, and reenable it afterwards. Attached is a patch that does this.
@gabrielfinkelstein /git.launchpad. net/cardapio/ commit/ ?id=09073d2fa65 627a2f4f33683d5 15c1ee7c7a727e
Thanks for the patch, it was successfully merged:
https:/