[gedit] spell-checker-dialog: rename function



commit 0c3bda712a6092ee425b4b5483899cd2648c44ee
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sat Aug 1 11:17:23 2015 +0200

    spell-checker-dialog: rename function
    
    update_suggestions_model() is more appropriate if it doesn't take the
    @suggestions as a parameter but take it from the object state. Since
    it's not the case, set_suggestions() is better.

 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 d8150c3..0207499 100644
--- a/plugins/spell/gedit-spell-checker-dialog.c
+++ b/plugins/spell/gedit-spell-checker-dialog.c
@@ -235,8 +235,8 @@ gedit_spell_checker_dialog_class_init (GeditSpellCheckerDialogClass *klass)
 }
 
 static void
-update_suggestions_model (GeditSpellCheckerDialog *dialog,
-                         GSList                  *suggestions)
+set_suggestions (GeditSpellCheckerDialog *dialog,
+                GSList                  *suggestions)
 {
        GtkListStore *store;
        GtkTreeIter iter;
@@ -364,7 +364,7 @@ check_word_button_clicked_handler (GtkButton               *button,
 
                suggestions = gedit_spell_checker_get_suggestions (dialog->spell_checker, word);
 
-               update_suggestions_model (dialog, suggestions);
+               set_suggestions (dialog, suggestions);
 
                g_slist_free_full (suggestions, g_free);
        }
@@ -589,7 +589,7 @@ gedit_spell_checker_dialog_set_misspelled_word (GeditSpellCheckerDialog *dialog,
        suggestions = gedit_spell_checker_get_suggestions (dialog->spell_checker,
                                                           dialog->misspelled_word);
 
-       update_suggestions_model (dialog, suggestions);
+       set_suggestions (dialog, suggestions);
 
        g_slist_free_full (suggestions, g_free);
 



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