Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 1562  / 3 Years ago, mon, august 2, 2021, 9:33:05

I've written a custom application indicator, which isn't working properly on saucy.



The menu is initialised with a few items, then updates regularly, adding or removing menu items.



This worked fine <13.10, but on 13.10, the line that adds the menu to the indicator produces the following warning:



Warning: /build/buildd/glib2.0-2.38.0/./gobject/gsignal.c:2475: signal 'child-added' is invalid for instance '0x24390e0' of type 'GtkMenu'
self.ind.set_menu(self.menu)


And the items added to the menu subsequently dont appear.



A bug has been filed against several indicators for the same problem, but it's not clear to me whether this is a problem with the indicators as a result of an API change, or a bug in the GTK or Appindicator libraries. Does anyone know?


More From » python

 Answers
1

I've been investigating this bug further today and I found that even though adding menu items does not work, removing them still does. Therefore this is unlikely to be an intentional API change.


[#28789] Monday, August 2, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
irripri

Total Points: 164
Total Questions: 111
Total Answers: 107

Location: South Georgia
Member since Sun, Aug 8, 2021
3 Years ago
irripri questions
Mon, Aug 29, 22, 03:19, 2 Years ago
Thu, Mar 30, 23, 01:56, 1 Year ago
Thu, Dec 30, 21, 08:53, 2 Years ago
;