#6257 NORM Never A: Palette has a visible menu because of invisible items
Zarro Boogs per Child
bugtracker at laptop.org
Tue Jan 29 15:21:34 EST 2008
#6257: Palette has a visible menu because of invisible items
--------------------+-------------------------------------------------------
Reporter: benzea | Owner: marco
Type: defect | Status: new
Priority: normal | Milestone: Never Assigned
Component: sugar | Version:
Keywords: | Verified: 0
Blocking: | Blockedby:
--------------------+-------------------------------------------------------
For the networks it happens that most of the time the "Disconnect..." menu
item is invisible, but the menu is still visible. This is because the code
in the palette to show the menu just checks whether there are any items.
There different ways to get past this problem:
1. Never have any hidden content, but remove the items instead
2. Make the palette smarter about showing the widgets
I will attach a patch that implements the second approach. Note that there
are some issues with this too. The problem is if items are added to the
menu, and shown later on. The code in the patch will not handle that.
I have modified the order of the add/show for the network palette because
of this. Other solutions would be updating the visibilities in the palette
from an high priority idle handler, or forcing the activity to call
update_visibilities() on the palette.
--
Ticket URL: <http://dev.laptop.org/ticket/6257>
One Laptop Per Child <http://dev.laptop.org>
OLPC bug tracking system
More information about the Bugs
mailing list