Mercurial > geeqie
comparison src/utilops.c @ 799:278962ba162a
use the new notification for collections
author | nadvornik |
---|---|
date | Sat, 07 Jun 2008 10:45:33 +0000 |
parents | 799d035b9994 |
children | a25b228978a0 |
comparison
equal
deleted
inserted
replaced
798:5055b5b0d75d | 799:278962ba162a |
---|---|
237 */ | 237 */ |
238 | 238 |
239 /* FIXME this is a temporary solution */ | 239 /* FIXME this is a temporary solution */ |
240 void file_data_notify_ci(FileData *fd) | 240 void file_data_notify_ci(FileData *fd) |
241 { | 241 { |
242 FileDataChangeType type = fd->change->type; | |
243 switch (type) | |
244 { | |
245 case FILEDATA_CHANGE_MOVE: | |
246 collection_maint_renamed(fd); | |
247 | |
248 break; | |
249 case FILEDATA_CHANGE_COPY: | |
250 break; | |
251 case FILEDATA_CHANGE_RENAME: | |
252 collection_maint_renamed(fd); | |
253 | |
254 break; | |
255 case FILEDATA_CHANGE_DELETE: | |
256 | |
257 collection_maint_removed(fd); | |
258 break; | |
259 case FILEDATA_CHANGE_UNSPECIFIED: | |
260 /* FIXME */ | |
261 break; | |
262 } | |
263 | |
264 | 242 |
265 /* this is the new way: */ | 243 /* this is the new way: */ |
266 file_data_send_notification(fd, NOTIFY_TYPE_CHANGE); | 244 file_data_send_notification(fd, NOTIFY_TYPE_CHANGE); |
267 } | 245 } |
268 | 246 |