Re: [Rhythmbox-devel] Updated FileOrganizer for 2.99



Lachlan <lachlan.00 <at> gmail.com> writes:







Hey everyone,
I sat down and updated fileorganizer to python 3 and
RB2.99+.[https://github.com/lachlan-00/rb-fileorganizer]

Right now it works and organises music correctly, but I have to do more
testing to make sure it's all working properly.


If anyone else is having trouble adding to the right click menu this is
the code I used to replace the old uimanager string. This creates an item in
the right click menu of the music browser.

Activate Code:###########        app =
Gio.Application.get_default()        # create action        action =
Gio.SimpleAction(name="organize-selection")       
action.connect("activate", self.organize_selection)
        app.add_action(action)        # create menu item        item =
Gio.MenuItem()        item.set_label("Organize Selection")       
item.set_detailed_action("app.organize-selection")        # add plugin menu
item        app.add_plugin_menu_item('browser-popup', "Organize Selection",
item)        app.add_action(action)###########
On another note, the latest RB is running really well and looks great!


_______________________________________________
rhythmbox-devel mailing list
rhythmbox-devel <at> gnome.org
https://mail.gnome.org/mailman/listinfo/rhythmbox-devel



Hi - thanks for the update.

Just to say - if you wish to keep backward compatibility, you may wish to
use the rb3compat layer I've written and used on a few plugins

donagh has also used this - as described here: 

http://goo.gl/dZRRx



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