Re: [Rhythmbox-devel] Rhythmbox 2.99.1 plugin menu locations

On Tue, Jun 25, 2013 at 6:04 AM, Donagh Horgan <donagh horgan gmail com> wrote:
Hello everyone,

I've got a quick question about how plugin menu locations in RB2.99.1 work.
Over on the Rhythmbox Python plugin examples page, it says that plugin menu
locations can be found by searching for 'rb-plugin-menu-link' in the UI
files defining menus and toolbars. Following this, I found a
'rb-plugin-menu-link' in the library-toolbar.ui file
(<rhythmbox-source>/data/ui/library-toolbar.ui), which has the attribute
'library-toolbar'. So far, so good, but then I hit a snag: when I try to add
a menu item to the library toolbar, it doesn't show up. I've attached a
minimum working example plugin, to save a more lengthy explanation. In
short, if you set location = 'playlist-toolbar' in the file,
then a button marked 'Test' appears in the toolbar in each of the playlist
windows; the problem is that I can't get the same button to appear in the
library toolbar when I set location = 'library-toolbar'.

This was a bug in the widget that builds the toolbars. It worked for
the playlist toolbars because those were built after the plugin was
initialised, but the library toolbar is built before that. I've fixed
this in git master.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]