Mercurial > geeqie.yaz
comparison src/search.c @ 803:764fd82dd099
better check for notify type
author | nadvornik |
---|---|
date | Sun, 08 Jun 2008 19:09:44 +0000 |
parents | a31524ae39cb |
children | 9bd49e725ad3 |
comparison
equal
deleted
inserted
replaced
802:3cfc54c77b30 | 803:764fd82dd099 |
---|---|
2866 | 2866 |
2867 static void search_notify_cb(FileData *fd, NotifyType type, gpointer data) | 2867 static void search_notify_cb(FileData *fd, NotifyType type, gpointer data) |
2868 { | 2868 { |
2869 SearchData *sd = data; | 2869 SearchData *sd = data; |
2870 | 2870 |
2871 if (!fd->change) return; | 2871 if (type != NOTIFY_TYPE_CHANGE || !fd->change) return; |
2872 | 2872 |
2873 switch(fd->change->type) | 2873 switch(fd->change->type) |
2874 { | 2874 { |
2875 case FILEDATA_CHANGE_MOVE: | 2875 case FILEDATA_CHANGE_MOVE: |
2876 case FILEDATA_CHANGE_RENAME: | 2876 case FILEDATA_CHANGE_RENAME: |