[gnome-commander] Revert "GnomeCmdFileList: disconnect 'list-failed' and 'list-ok' signals after successful directory
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Revert "GnomeCmdFileList: disconnect 'list-failed' and 'list-ok' signals after successful directory
- Date: Mon, 19 Jul 2010 21:34:46 +0000 (UTC)
commit 3fab996e00518b1c92c147b3a1314a7ec110f4e9
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Mon Jul 19 23:27:21 2010 +0200
Revert "GnomeCmdFileList: disconnect 'list-failed' and 'list-ok' signals after successful directory reading"
This reverts commit a0c715ccb46765b309260df9441d74e2bd020498.
src/gnome-cmd-file-list.cc | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/gnome-cmd-file-list.cc b/src/gnome-cmd-file-list.cc
index 8fa4a88..67dffae 100644
--- a/src/gnome-cmd-file-list.cc
+++ b/src/gnome-cmd-file-list.cc
@@ -1358,7 +1358,12 @@ 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_matched (fl->connected_dir, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, fl);
+ {
+ 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_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]