double clicking icon breaks menu

Bug #710893 reported by k
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GnoMenu
New
Undecided
Unassigned

Bug Description

If I quickly show then hide the menu (double click icon when menu is closed), it will never show again.
After the menu is broken, I can continue click the icon and get console output, but it shows the exact same messages as when it is working. I tried to add a lot more prints to the Menu_Main.py script to try to determine what is no longer happening, but everything seems to be. Here is what I've gathered so far, and feel free to provide any advice on how I can obtain more useful debugging information..

in the MainMenu.show_window function the call to self.window.present_with_timestamp is being made, and--according to the window's properties--properly changes its visible state from False to True, although I see nothing.
I've also checked the window position and size before and after it breaks and they are all the same.
I tried delaying the hide_window function (time.sleep() prior to the call to hide()) because this seems to be a timing issue, but that didn't fix anything.

Revision history for this message
k (stuff-0hz) wrote :

forgot to mention some background details:
gnomenu 2.9 (currently the Menu theme, but changing this doesn't seem to have an effect)
gnome 2.28
ubuntu 10.04

some additional weirdness I just noticed:
if there are 2 instances of GnoMenu added to my panel, only one of them will break in this way.
if I 'run-in-window' from the command line rather than add to my gnome panel, it will not break.
if I enable desktop effects, it will not break.

Revision history for this message
k (stuff-0hz) wrote :

Looks like a timing issue, as I seem to be able to avoid the problem by inserting a 100ms delay in the calling of hide_method in the lose_focus function of the Main_Menu class.

This is obviously just a temporary workaround, but for anyone else having this problem I've attached my patch.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.