Philipp Hörist pushed to branch master at gajim / gajim
Commits:
-
4ac532c3
by Philipp Hörist at 2019-04-08T20:45:26Z
2 changed files:
Changes:
| ... | ... | @@ -323,7 +323,6 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools): |
| 323 | 323 |
self.set_emoticon_popover()
|
| 324 | 324 |
|
| 325 | 325 |
# Attach speller
|
| 326 |
- self.spell_checker = None
|
|
| 327 | 326 |
self.set_speller()
|
| 328 | 327 |
self.conv_textview.tv.show()
|
| 329 | 328 |
|
| ... | ... | @@ -454,15 +453,15 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools): |
| 454 | 453 |
if gspell_lang is None:
|
| 455 | 454 |
return
|
| 456 | 455 |
|
| 457 |
- self.spell_checker = Gspell.Checker.new(gspell_lang)
|
|
| 456 |
+ spell_checker = Gspell.Checker.new(gspell_lang)
|
|
| 458 | 457 |
spell_buffer = Gspell.TextBuffer.get_from_gtk_text_buffer(
|
| 459 | 458 |
self.msg_textview.get_buffer())
|
| 460 |
- spell_buffer.set_spell_checker(self.spell_checker)
|
|
| 459 |
+ spell_buffer.set_spell_checker(spell_checker)
|
|
| 461 | 460 |
spell_view = Gspell.TextView.get_from_gtk_text_view(self.msg_textview)
|
| 462 | 461 |
spell_view.set_inline_spell_checking(False)
|
| 463 | 462 |
spell_view.set_enable_language_menu(True)
|
| 464 | 463 |
|
| 465 |
- self.spell_checker.connect('notify::language', self.on_language_changed)
|
|
| 464 |
+ spell_checker.connect('notify::language', self.on_language_changed)
|
|
| 466 | 465 |
|
| 467 | 466 |
def get_speller_language(self):
|
| 468 | 467 |
per_type = 'contacts'
|
| ... | ... | @@ -17,8 +17,6 @@ |
| 17 | 17 |
# You should have received a copy of the GNU General Public License
|
| 18 | 18 |
# along with Gajim. If not, see <http://www.gnu.org/licenses/>.
|
| 19 | 19 |
|
| 20 |
-import gc
|
|
| 21 |
- |
|
| 22 | 20 |
from gi.repository import Gtk
|
| 23 | 21 |
from gi.repository import GLib
|
| 24 | 22 |
from gi.repository import GObject
|
| ... | ... | @@ -413,9 +411,6 @@ class MessageTextView(Gtk.TextView): |
| 413 | 411 |
self.add_child_at_anchor(image, anchor)
|
| 414 | 412 |
buffer_.insert_at_cursor(' ')
|
| 415 | 413 |
|
| 416 |
- def destroy(self):
|
|
| 417 |
- GLib.idle_add(gc.collect)
|
|
| 418 |
- |
|
| 419 | 414 |
def clear(self, widget=None):
|
| 420 | 415 |
"""
|
| 421 | 416 |
Clear text in the textview
|