This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Plugin] | |
| Module=example | |
| Loader=python | |
| IAge=2 | |
| Name=Example Plugin | |
| Description=Illustrates how to implement plugins in Liferea | |
| Authors=Lars Windolf <lars.windolf@gmx.de> | |
| Copyright=Copyright © 2014 Lars Windolf | |
| Website=http://lzone.de/liferea/ | |
| Help=http://lzone.de/liferea/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from gi.repository import GObject, Peas, PeasGtk, Gtk, Liferea, Gdk | |
| class ExamplePlugin (GObject.Object, Liferea.ShellActivatable): | |
| __gtype_name__ = 'ExamplePlugin' | |
| object = GObject.property (type=GObject.Object) | |
| shell = GObject.property (type=Liferea.Shell) | |
| def do_activate (self): | |
| # Do something here... |