Skip to content
Permalink
Browse files

addresses #391 - gets snippet window size before destroying it

  • Loading branch information...
Andrew Fowlie authored and raveit65 committed Jan 18, 2019
1 parent 71daf90 commit 2b00f658a9162af62a1318ffd4dcc21563afe198
Showing with 5 additions and 4 deletions.
  1. +5 −4 plugins/snippets/snippets/Manager.py
@@ -599,16 +599,17 @@ def on_dialog_snippets_destroy(self, dlg):
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

0 comments on commit 2b00f65

Please sign in to comment.
You can’t perform that action at this time.