Revision: 1060
http://geeqie.svn.sourceforge.net/geeqie/?rev=1060&view=rev
Author: nadvornik
Date: 2008-08-16 20:57:40 +0000 (Sat, 16 Aug 2008)
Log Message:
-----------
keep files with non-zero marks in memory
Modified Paths:
--------------
trunk/src/filedata.c
Modified: trunk/src/filedata.c
===================================================================
--- trunk/src/filedata.c 2008-08-16 20:34:14 UTC (rev 1059)
+++ trunk/src/filedata.c 2008-08-16 20:57:40 UTC (rev 1060)
@@ -1061,9 +1061,20 @@
void file_data_set_mark(FileData *fd, gint n, gboolean value)
{
+ guint old = fd->marks;
if (!value == !(fd->marks & (1 << n))) return;
fd->marks = fd->marks ^ (1 << n);
+
+ if (old && !fd->marks) /* keep files with non-zero marks in memory */
+ {
+ file_data_unref(fd);
+ }
+ else if (!old && fd->marks)
+ {
+ file_data_ref(fd);
+ }
+
file_data_increment_version(fd);
file_data_send_notification(fd, NOTIFY_TYPE_INTERNAL);
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geeqie-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geeqie-svn