Mercurial > geeqie.yaz
comparison src/view_file_icon.c @ 803:764fd82dd099
better check for notify type
author | nadvornik |
---|---|
date | Sun, 08 Jun 2008 19:09:44 +0000 |
parents | a25b228978a0 |
children | e702eaa6d1df |
comparison
equal
deleted
inserted
replaced
802:3cfc54c77b30 | 803:764fd82dd099 |
---|---|
2557 | 2557 |
2558 static void vficon_notify_cb(FileData *fd, NotifyType type, gpointer data) | 2558 static void vficon_notify_cb(FileData *fd, NotifyType type, gpointer data) |
2559 { | 2559 { |
2560 ViewFile *vf = data; | 2560 ViewFile *vf = data; |
2561 | 2561 |
2562 if (!fd->change) return; | 2562 if (type != NOTIFY_TYPE_CHANGE || !fd->change) return; |
2563 | 2563 |
2564 switch(fd->change->type) | 2564 switch(fd->change->type) |
2565 { | 2565 { |
2566 case FILEDATA_CHANGE_MOVE: | 2566 case FILEDATA_CHANGE_MOVE: |
2567 vficon_maint_moved(vf, fd, NULL); | 2567 vficon_maint_moved(vf, fd, NULL); |