summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAndrew Fowlie <[email protected]>2019-01-18 16:30:29 +0800
committerraveit65 <[email protected]>2019-01-21 10:15:21 +0100
commit2b00f658a9162af62a1318ffd4dcc21563afe198 (patch)
treee32e811dffe896bab4e2c8defc878d96575706ae /plugins
parent71daf90400676de24294e016e4f2359ba34c8be3 (diff)
downloadpluma-2b00f658a9162af62a1318ffd4dcc21563afe198.tar.bz2
pluma-2b00f658a9162af62a1318ffd4dcc21563afe198.tar.xz
addresses #391 - gets snippet window size before destroying it
Diffstat (limited to 'plugins')
-rwxr-xr-xplugins/snippets/snippets/Manager.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/snippets/snippets/Manager.py b/plugins/snippets/snippets/Manager.py
index e94cd283..f496b1c3 100755
--- a/plugins/snippets/snippets/Manager.py
+++ b/plugins/snippets/snippets/Manager.py
@@ -599,16 +599,17 @@ class Manager:
if self.snippets_doc:
self.snippets_doc.stop()
- alloc = dlg.get_allocation()
- self.default_size = [alloc.width, alloc.height]
self.manager = None
-
self.unref_languages()
self.snippet = None
self.model = None
self.dlg = None
- def on_dialog_snippets_response(self, dlg, resp):
+ def on_dialog_snippets_response(self, dlg, resp):
+
+ alloc = dlg.get_allocation()
+ self.default_size = [alloc.width, alloc.height]
+
if resp == Gtk.ResponseType.HELP:
Pluma.help_display(self, 'pluma', 'pluma-snippets-plugin')
return