comparison src/search.c @ 1432:cf4029d10d38

improved notification system
author nadvornik
date Sat, 14 Mar 2009 17:21:35 +0000
parents a0bd58a6535f
children a3d3208b0c50
comparison
equal deleted inserted replaced
1431:7e180091e0b7 1432:cf4029d10d38
2943 2943
2944 static void search_notify_cb(FileData *fd, NotifyType type, gpointer data) 2944 static void search_notify_cb(FileData *fd, NotifyType type, gpointer data)
2945 { 2945 {
2946 SearchData *sd = data; 2946 SearchData *sd = data;
2947 2947
2948 if (type != NOTIFY_TYPE_CHANGE || !fd->change) return; 2948 if (!(type & NOTIFY_CHANGE) || !fd->change) return;
2949 2949
2950 switch (fd->change->type) 2950 switch (fd->change->type)
2951 { 2951 {
2952 case FILEDATA_CHANGE_MOVE: 2952 case FILEDATA_CHANGE_MOVE:
2953 case FILEDATA_CHANGE_RENAME: 2953 case FILEDATA_CHANGE_RENAME: