[ocrfeeder] Fix spell checker window
- From: Joaquim Rocha <jrocha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ocrfeeder] Fix spell checker window
- Date: Wed, 22 Jan 2020 22:34:08 +0000 (UTC)
commit 6bcd2c9b01d9d3a73a157f8d8208a60d67cd3ed7
Author: scx <scx mail gmail com>
Date: Sat Jan 4 18:10:13 2020 +0100
Fix spell checker window
Fixes GNOME/ocrfeeder#16
src/ocrfeeder/studio/widgetPresenter.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/ocrfeeder/studio/widgetPresenter.py b/src/ocrfeeder/studio/widgetPresenter.py
index 7ffbc05..088fa06 100644
--- a/src/ocrfeeder/studio/widgetPresenter.py
+++ b/src/ocrfeeder/studio/widgetPresenter.py
@@ -2061,10 +2061,10 @@ class SpellCheckerDialog():
def __init__(self, parent, current_reviewer, language):
self.builder = Gtk.Builder()
self.builder.add_from_file(OCRFEEDER_SPELLCHECKER_UI)
- self = self.builder.get_object('check_spelling_window')
- self.set_transient_for(parent)
+ self.window = self.builder.get_object('check_spelling_window')
+ self.window.set_transient_for(parent)
self.builder.connect_signals(self)
- self.present()
+ self.window.present()
self.reviewer = current_reviewer
self.text = self.reviewer.editor.box_editor.getText()
self.dictButtons = {'change_button':self.builder.get_object('change_button'),
@@ -2133,10 +2133,10 @@ class SpellCheckerDialog():
self.__next()
def close_button_clicked_cb(self, widget):
- self.destroy()
+ self.window.destroy()
def check_spelling_window_delete_event_cb(self, widget, data):
- self.destroy()
+ self.window.destroy()
def __set_no_more(self):
self.misspelled_word.set_text('')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]