[gnome-commander] GnomeCmdFileList: disconnect 'list-failed' and 'list-ok' signals after successful directory reading



commit a0c715ccb46765b309260df9441d74e2bd020498
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Thu Jul 15 22:31:51 2010 +0200

    GnomeCmdFileList: disconnect 'list-failed' and 'list-ok' signals after successful directory reading

 src/gnome-cmd-file-list.cc |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/src/gnome-cmd-file-list.cc b/src/gnome-cmd-file-list.cc
index 6e2cefc..62a3e14 100644
--- a/src/gnome-cmd-file-list.cc
+++ b/src/gnome-cmd-file-list.cc
@@ -1350,12 +1350,7 @@ static void on_dir_list_ok (GnomeCmdDir *dir, GList *files, GnomeCmdFileList *fl
     if (fl->connected_dir!=dir)
     {
         if (fl->connected_dir)
-        {
-            g_signal_handlers_disconnect_by_func (fl->connected_dir, (gpointer) on_dir_file_created, fl);
-            g_signal_handlers_disconnect_by_func (fl->connected_dir, (gpointer) on_dir_file_deleted, fl);
-            g_signal_handlers_disconnect_by_func (fl->connected_dir, (gpointer) on_dir_file_changed, fl);
-            g_signal_handlers_disconnect_by_func (fl->connected_dir, (gpointer) on_dir_file_renamed, fl);
-        }
+            g_signal_handlers_disconnect_matched (fl->connected_dir, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, fl);
 
         g_signal_connect (dir, "file-created", G_CALLBACK (on_dir_file_created), fl);
         g_signal_connect (dir, "file-deleted", G_CALLBACK (on_dir_file_deleted), fl);



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