[gedit: 5/5] spell-checker-dialog: use g_signal_connect_object() where appropriate



commit 0e7b46752649daa86e2acbfc110c932c36c6090e
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sat Jul 25 12:42:56 2015 +0200

    spell-checker-dialog: use g_signal_connect_object() where appropriate
    
    Extra safety doesn't hurt.

 plugins/spell/gedit-spell-checker-dialog.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/plugins/spell/gedit-spell-checker-dialog.c b/plugins/spell/gedit-spell-checker-dialog.c
index 11bcf19..3f74c6d 100644
--- a/plugins/spell/gedit-spell-checker-dialog.c
+++ b/plugins/spell/gedit-spell-checker-dialog.c
@@ -546,10 +546,11 @@ gedit_spell_checker_dialog_init (GeditSpellCheckerDialog *dialog)
                          G_CALLBACK (word_entry_changed_handler),
                          dialog);
 
-       g_signal_connect (selection,
-                         "changed",
-                         G_CALLBACK (suggestions_selection_changed_handler),
-                         dialog);
+       g_signal_connect_object (selection,
+                                "changed",
+                                G_CALLBACK (suggestions_selection_changed_handler),
+                                dialog,
+                                0);
 
        g_signal_connect (dialog->check_word_button,
                          "clicked",


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