Mercurial > geeqie.yaz
comparison src/histogram.c @ 1718:8fd961808345
preserve histmap on NOTIFY_CHANGE
author | nadvornik |
---|---|
date | Sun, 13 Sep 2009 12:33:11 +0000 |
parents | 24a12aa0cb54 |
children |
comparison
equal
deleted
inserted
replaced
1717:61bd3a2f633d | 1718:8fd961808345 |
---|---|
378 return TRUE; | 378 return TRUE; |
379 } | 379 } |
380 | 380 |
381 void histogram_notify_cb(FileData *fd, NotifyType type, gpointer data) | 381 void histogram_notify_cb(FileData *fd, NotifyType type, gpointer data) |
382 { | 382 { |
383 if ((type & (NOTIFY_CHANGE | NOTIFY_REREAD)) && fd->histmap) | 383 if ((type & NOTIFY_REREAD) && fd->histmap) |
384 { | 384 { |
385 DEBUG_1("Notify histogram: %s %04x", fd->path, type); | 385 DEBUG_1("Notify histogram: %s %04x", fd->path, type); |
386 histmap_free(fd->histmap); | 386 histmap_free(fd->histmap); |
387 fd->histmap = NULL; | 387 fd->histmap = NULL; |
388 } | 388 } |