Cannot reorder menu items in the indicator applet

Bug #1026791 reported by Roquentin
This bug report is a duplicate of:  Bug #785852: Menu reordering does not work. Edit Remove
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
DBus Menu
Confirmed
Medium
Charles Kerr
GTG
Confirmed
Undecided
Unassigned
libappindicator
Confirmed
Medium
Unassigned

Bug Description

Once the menu is set with set_menu(), it is not possible to reorder the menu entries in the indicator applet. That is, calling the menu.reorder_child() method changes the order of the children in the menu instance, but this doesn't reflect in the order of the entries shown by the applet.

I attach a script that illustrates the problem. The menu entries are first filled as 0, 1, 2. Calling reorder_child() should swap 0 and 2. Actual result: the items' order in the indicator applet is unchanged.

I am in ubuntu 12.04.

Revision history for this message
Roquentin (antonio-roquentin-deactivatedaccount) wrote :
description: updated
affects: libindicator → libappindicator
Revision history for this message
Bilal Akhtar (bilalakhtar) wrote :

Successfully reproduced on Precise.

Changed in dbusmenu:
status: New → Confirmed
Changed in libappindicator:
status: New → Confirmed
Changed in dbusmenu:
assignee: nobody → Charles Kerr (charlesk)
importance: Undecided → Medium
Changed in libappindicator:
importance: Undecided → Medium
summary: - Cannot reorder menu items
+ Cannot reorder menu items in the indicator applet
Changed in gtg:
status: New → Confirmed
assignee: nobody → Antonio Roquentin (antonio-roquentin)
Revision history for this message
Roquentin (antonio-roquentin-deactivatedaccount) wrote :

For the record: this was first noticed in a plugin of gtg that uses an indicator applet (bug #1009689). The plugin raised warnings when items were added/removed from the menu. Using reorder_child() fixed the problem with the warnings, but was not functional in that menu items were not reordered.

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

Other bug subscribers

Bug attachments

Remote bug watches

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