Closed afrancoto closed 12 years ago
action_group_submenus
is updated correctly:
(20:02:01) [0x836c0a0] [WebMenuPlugin.draw_menu] .local/share/rhythmbox/plugins/WebMenu/WebMenu.py:215: Album shortcut: Wikipedia -->L (20:02:01) [0x836c0a0] [WebMenuPlugin.draw_menu] .local/share/rhythmbox/plugins/WebMenu/WebMenu.py:215: Album shortcut: RateYourMusic --> K (20:02:20) [0x836c0a0] [WebMenuPlugin.draw_menu] .local/share/rhythmbox/plugins/WebMenu/WebMenu.py:215: Album shortcut: Wikipedia --> F (20:02:20) [0x836c0a0] [WebMenuPlugin.draw_menu] .local/share/rhythmbox/plugins/WebMenu/WebMenu.py:215: Album shortcut: RateYourMusic --> K
But not the ui_manager! This is a problem only when an existing shortcut is edited, not when it is deleted or a new one is created.
Idea: change the name of the 'action_group_submenus' at every refresh, something like:
refresh_counter=0 def draw_menu (self, shell): global refresh counter [...] ui_manager.remove_action_group (action_group_submenus) del ui_id, action_group_submenus ui_manager.ensure_update () action_group_submenus = Gtk.ActionGroup (name = 'WebMenuSubmenusActionGroup'+str(refresh_counter)) refresh_counter+=1
I can't use Linux until this night or tomorrow, but maybe it works!
It worked!
Again, a draw_menu problem