Skip to content

Commit

Permalink
addresses #391 - gets snippet window size before destroying it
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Fowlie authored and raveit65 committed Jan 21, 2019
1 parent 71daf90 commit 2b00f65
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions plugins/snippets/snippets/Manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2b00f65

Please sign in to comment.