[gedit] spell-checker-dialog: various clean-ups



commit c84cb444b0f39d5a7afb5b02421c955fa5469ace
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sat Aug 1 11:16:16 2015 +0200

    spell-checker-dialog: various clean-ups

 plugins/spell/gedit-spell-checker-dialog.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/plugins/spell/gedit-spell-checker-dialog.c b/plugins/spell/gedit-spell-checker-dialog.c
index 3d0e570..de058cc 100644
--- a/plugins/spell/gedit-spell-checker-dialog.c
+++ b/plugins/spell/gedit-spell-checker-dialog.c
@@ -251,8 +251,10 @@ set_suggestions (GeditSpellCheckerDialog *dialog,
        {
                gtk_list_store_append (store, &iter);
                gtk_list_store_set (store, &iter,
-                                   /* Translators: Displayed in the "Check Spelling" dialog if there are no 
suggestions
-                                    * for the current misspelled word */
+                                   /* Translators: Displayed in the "Check Spelling"
+                                    * dialog if there are no suggestions for the current
+                                    * misspelled word.
+                                    */
                                    COLUMN_SUGGESTION, _("(no suggested words)"),
                                    -1);
 
@@ -573,8 +575,6 @@ gedit_spell_checker_dialog_set_misspelled_word (GeditSpellCheckerDialog *dialog,
 
        g_return_if_fail (GEDIT_IS_SPELL_CHECKER_DIALOG (dialog));
        g_return_if_fail (word != NULL);
-
-       g_return_if_fail (dialog->spell_checker != NULL);
        g_return_if_fail (!gedit_spell_checker_check_word (dialog->spell_checker, word, NULL));
 
        g_free (dialog->misspelled_word);



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