[gspell] test-spell: do not call gtk_dialog_run()



commit 9f252165191ce7f83b3dfccfa44f7df0304dafe0
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sun Feb 14 13:21:54 2016 +0100

    test-spell: do not call gtk_dialog_run()
    
    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.

 tests/test-spell.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/tests/test-spell.c b/tests/test-spell.c
index c48b0ee..3a497d5 100644
--- a/tests/test-spell.c
+++ b/tests/test-spell.c
@@ -63,8 +63,7 @@ checker_button_clicked_cb (GtkButton *checker_button,
        checker_dialog = gspell_checker_dialog_new (GTK_WINDOW (window), navigator);
        g_object_unref (navigator);
 
-       gtk_dialog_run (GTK_DIALOG (checker_dialog));
-       gtk_widget_destroy (checker_dialog);
+       gtk_widget_show (checker_dialog);
 }
 
 static void


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