diff options
author | mbkma <[email protected]> | 2021-02-12 11:31:23 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2021-03-04 22:00:30 +0100 |
commit | f4ed7690bff4021051f11fbe851b604d69caef2f (patch) | |
tree | 77d5d439779373c08cc10dcb668460437d42732d /plugins/snippets | |
parent | 0d91cd7289dfc1e59658ea4a946a843a576496c8 (diff) | |
download | pluma-f4ed7690bff4021051f11fbe851b604d69caef2f.tar.bz2 pluma-f4ed7690bff4021051f11fbe851b604d69caef2f.tar.xz |
port plugins to use the window-construct property.
pluma-file-browser-plugin.c: rename "data" to "priv".
Diffstat (limited to 'plugins/snippets')
-rw-r--r-- | plugins/snippets/snippets/__init__.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/snippets/snippets/__init__.py b/plugins/snippets/snippets/__init__.py index 9e7f717d..e5588018 100644 --- a/plugins/snippets/snippets/__init__.py +++ b/plugins/snippets/snippets/__init__.py @@ -23,10 +23,10 @@ from .Library import Library from .Manager import Manager from .comment import toggle_lines -class SnippetsPlugin(GObject.Object, Peas.Activatable): +class SnippetsPlugin(GObject.Object, Pluma.WindowActivatable): __gtype_name__ = "SnippetsPlugin" - object = GObject.Property(type=GObject.Object) + window = GObject.Property(type=Pluma.Window) def __init__(self): GObject.Object.__init__(self) @@ -59,8 +59,7 @@ class SnippetsPlugin(GObject.Object, Peas.Activatable): self._helper = WindowHelper(self) - window = self.object - self._helper.run(window) + self._helper.run(self.window) def do_deactivate(self): library = Library() |