summaryrefslogtreecommitdiff
path: root/plugins/quickopen
diff options
context:
space:
mode:
authormbkma <[email protected]>2021-02-12 11:31:23 +0100
committerraveit65 <[email protected]>2021-03-04 22:00:30 +0100
commitf4ed7690bff4021051f11fbe851b604d69caef2f (patch)
tree77d5d439779373c08cc10dcb668460437d42732d /plugins/quickopen
parent0d91cd7289dfc1e59658ea4a946a843a576496c8 (diff)
downloadpluma-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/quickopen')
-rw-r--r--plugins/quickopen/quickopen/__init__.py9
1 files changed, 4 insertions, 5 deletions
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()