[latexila/wip/gspell] spell: adapt code to use GspellLanguageChooser
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila/wip/gspell] spell: adapt code to use GspellLanguageChooser
- Date: Fri, 18 Sep 2015 16:29:00 +0000 (UTC)
commit fa1b61eb445a8ed83fafef60712632f68efcb40f
Author: Sébastien Wilmet <swilmet gnome org>
Date: Fri Sep 18 18:24:37 2015 +0200
spell: adapt code to use GspellLanguageChooser
src/document_view.vala | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/src/document_view.vala b/src/document_view.vala
index 4785de0..cb08d3c 100644
--- a/src/document_view.vala
+++ b/src/document_view.vala
@@ -213,14 +213,13 @@ public class DocumentView : Gtk.SourceView
{
return_if_fail (_spell_checker != null);
- Gspell.LanguageDialog dialog =
- new Gspell.LanguageDialog (this.get_toplevel () as Window,
+ Gspell.LanguageChooserDialog dialog =
+ new Gspell.LanguageChooserDialog (this.get_toplevel () as Window,
_spell_checker.get_language ());
- int response = dialog.run ();
+ dialog.run ();
- if (response == ResponseType.OK)
- _spell_checker.set_language (dialog.get_selected_language ());
+ _spell_checker.set_language (dialog.get_language ());
dialog.destroy ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]