[latexila] spell: do not call gtk_dialog_run() on the GspellCheckerDialog



commit 125a5c85e2cb643648b5a373f9c6ad9ba7384b45
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sun Feb 14 14:53:13 2016 +0100

    spell: do not call gtk_dialog_run() on the GspellCheckerDialog
    
    gtk_dialog_run() should be avoided since it blocks the main main loop.
    
    No need to destroy the dialog since the close button in the headerbar
    already destroys the window.

 src/document_view.vala |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/document_view.vala b/src/document_view.vala
index 4a42765..28aec8b 100644
--- a/src/document_view.vala
+++ b/src/document_view.vala
@@ -273,8 +273,7 @@ public class DocumentView : Gtk.SourceView
         Gspell.CheckerDialog dialog =
             new Gspell.CheckerDialog (this.get_toplevel () as Window, navigator);
 
-        dialog.run ();
-        dialog.destroy ();
+        dialog.show ();
     }
 
     public void launch_spell_language_chooser_dialog ()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]