From f4ed7690bff4021051f11fbe851b604d69caef2f Mon Sep 17 00:00:00 2001 From: mbkma Date: Fri, 12 Feb 2021 11:31:23 +0100 Subject: port plugins to use the window-construct property. pluma-file-browser-plugin.c: rename "data" to "priv". --- plugins/quickopen/quickopen/__init__.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'plugins/quickopen') diff --git a/plugins/quickopen/quickopen/__init__.py b/plugins/quickopen/quickopen/__init__.py index 17ccdf7c..3e5cae44 100644 --- a/plugins/quickopen/quickopen/__init__.py +++ b/plugins/quickopen/quickopen/__init__.py @@ -17,13 +17,13 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, # Boston, MA 02110-1301, USA. -from gi.repository import GObject, Peas +from gi.repository import GObject, Peas, Pluma from .windowhelper import WindowHelper -class QuickOpenPlugin(GObject.Object, Peas.Activatable): +class QuickOpenPlugin(GObject.Object, Pluma.WindowActivatable): __gtype_name__ = "QuickOpenPlugin" - object = GObject.Property(type=GObject.Object) + window = GObject.Property(type=Pluma.Window) def __init__(self): GObject.Object.__init__(self) @@ -31,8 +31,7 @@ class QuickOpenPlugin(GObject.Object, Peas.Activatable): self._popup_size = (450, 300) def do_activate(self): - window = self.object - self._helper = WindowHelper(window, self) + self._helper = WindowHelper(self.window, self) def do_deactivate(self): self._helper.deactivate() -- cgit v1.2.1