[gedit: 11/11] auto-spell: don't disconnect two times the same signals



commit e6559e80c8c1f73614c8b1250b03aecf760f053b
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sat Jul 11 17:49:50 2015 +0200

    auto-spell: don't disconnect two times the same signals

 plugins/spell/gedit-automatic-spell-checker.c |   11 +++--------
 1 files changed, 3 insertions(+), 8 deletions(-)
---
diff --git a/plugins/spell/gedit-automatic-spell-checker.c b/plugins/spell/gedit-automatic-spell-checker.c
index c70ee64..0c5d03c 100644
--- a/plugins/spell/gedit-automatic-spell-checker.c
+++ b/plugins/spell/gedit-automatic-spell-checker.c
@@ -972,14 +972,9 @@ gedit_automatic_spell_checker_detach_view (GeditAutomaticSpellChecker *spell,
        g_return_if_fail (spell->views != NULL);
 
        g_signal_handlers_disconnect_matched (G_OBJECT (view),
-                       G_SIGNAL_MATCH_DATA,
-                       0, 0, NULL, NULL,
-                       spell);
-
-       g_signal_handlers_disconnect_matched (G_OBJECT (view),
-                       G_SIGNAL_MATCH_DATA,
-                       0, 0, NULL, NULL,
-                       spell);
+                                             G_SIGNAL_MATCH_DATA,
+                                             0, 0, NULL, NULL,
+                                             spell);
 
        spell->views = g_slist_remove (spell->views, view);
 }


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