diff src/image.c @ 1432:cf4029d10d38

improved notification system
author nadvornik
date Sat, 14 Mar 2009 17:21:35 +0000
parents 7e180091e0b7
children 96897bd5f6cd
line wrap: on
line diff
--- a/src/image.c	Sat Mar 14 11:26:43 2009 +0000
+++ b/src/image.c	Sat Mar 14 17:21:35 2009 +0000
@@ -514,7 +514,7 @@
 	g_assert(fd->pixbuf);
 
 	file_cache_put(image_get_cache(), fd, (gulong)gdk_pixbuf_get_rowstride(fd->pixbuf) * (gulong)gdk_pixbuf_get_height(fd->pixbuf));
-	file_data_send_notification(fd, NOTIFY_TYPE_INTERNAL); /* to update histogram */
+	file_data_send_notification(fd, NOTIFY_PIXBUF); /* to update histogram */
 }
 
 static gint image_cache_get(ImageWindow *imd)
@@ -1379,7 +1379,7 @@
 	    imd->state == IMAGE_STATE_NONE /* loading not started, no need to reload */
 	    ) return;
 
-	if (type == NOTIFY_TYPE_REREAD && fd == imd->image_fd)
+	if ((type & (NOTIFY_REREAD | NOTIFY_CHANGE)) && fd == imd->image_fd)
 		{
 		image_reload(imd);
 		}