4
import softwarecenter.plugin
6
from gettext import gettext as _
8
class ExamplePlugin(softwarecenter.plugin.Plugin):
11
VIEW_PAGE_EXAMPLE_PLUGIN = "view-page-example-plugin"
13
def init_plugin(self):
15
self.plugin_view = gtk.VBox()
16
self.plugin_view.pack_start(gtk.Label("lala"))
17
self.app.view_manager.register(self.plugin_view,
18
self.VIEW_PAGE_EXAMPLE_PLUGIN)
20
# FIXME: workaround for imperfect apps.py
21
self.plugin_view.apps_filter = None
23
# FIXME: this needs to get better
24
model = self.app.view_switcher.get_model()
28
model.append(parent_iter, [icon, _("Example Plugin"),
29
self.VIEW_PAGE_EXAMPLE_PLUGIN, channel])