Using .insert() on a GtkMenu doesn't update the AppIndicator's menu

Bug #530138 reported by Marc Deslauriers on 2010-03-01
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Application Indicators
Confirmed
High
Ted Gould
indicator-application (Ubuntu)
High
Jan Arne Petersen
Lucid
High
Jan Arne Petersen

Bug Description

Binary package hint: indicator-application

When using the python bindings, adding a new menu entry with add() works, but using insert() doesn't update the menu in the application indicator.

The only workaround that I could find was reloading the menu with set_menu(), but that is resource-intensive.

Attached is a simple reproducer.

1- Start application
2- Click on "Add menu item", notice the menu got updated
3- Click on "Insert menu item", notice the menu didn't get updated
4- Click on "Add menu item", notice the menu got updated, including the inserted item
5- Click on "Insert menu item", notice the menu didn't get updated
6- Click on "Do set_menu", notice the menu got updated, including the inserted item

ProblemType: Bug
Architecture: amd64
Date: Mon Mar 1 11:18:14 2010
DistroRelease: Ubuntu 10.04
EcryptfsInUse: Yes
NonfreeKernelModules: nvidia
Package: indicator-application 0.0.14-0ubuntu1
ProcEnviron:
 PATH=(custom, user)
 LANG=en_CA.utf8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-14.20-generic
SourcePackage: indicator-application
Uname: Linux 2.6.32-14-generic x86_64

Marc Deslauriers (mdeslaur) wrote :
Ted Gould (ted) on 2010-03-01
Changed in indicator-application:
assignee: nobody → Ted Gould (ted)
Marc Deslauriers (mdeslaur) wrote :

Any ETA on this bug? I'll need to revert my app indicator patch for virt-manager if this isn't fixed.

Changed in indicator-application (Ubuntu):
importance: Undecided → High
status: New → Triaged
Changed in indicator-application (Ubuntu Lucid):
assignee: nobody → Ted Gould (ted)
Sebastien Bacher (seb128) wrote :

Jan, could you have a look to this issue too?

Changed in indicator-application (Ubuntu Lucid):
assignee: Ted Gould (ted) → Jan Arne Petersen (jpetersen)
Jan Arne Petersen (jpetersen) wrote :

The problem with this bug is, that one currently does not get any signal when the children of a menu changes (except through the gtk_container_add and gtk_container_remove methods).

So it could only be fixed with really ugly workarounds.

description: updated
Ted Gould (ted) on 2010-05-21
Changed in indicator-application:
status: New → Confirmed
importance: Undecided → High
Sense Egbert Hofstede (sense) wrote :

Is this fixed by the Application Indicators part of the solution for bug #558841? It does seem like it should be.

summary: - Using .append() on a gtkmenu doesn't update the indicator's menu
+ Using .insert() on a GtkMenu doesn't update the AppIndicator's menu
Sense Egbert Hofstede (sense) wrote :

Further testing confirmed my suspicion. I'm marking this as a duplicate of bug #558841.

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

Other bug subscribers