Mercurial > geeqie.yaz
comparison src/filedata.c @ 966:c24a297efbef
marks in iconview made clickable
author | nadvornik |
---|---|
date | Sat, 16 Aug 2008 23:37:26 +0000 |
parents | cbdabb499684 |
children | 6ca2c5fd7b13 |
comparison
equal
deleted
inserted
replaced
965:cbdabb499684 | 966:c24a297efbef |
---|---|
1057 gboolean file_data_get_mark(FileData *fd, gint n) | 1057 gboolean file_data_get_mark(FileData *fd, gint n) |
1058 { | 1058 { |
1059 return !!(fd->marks & (1 << n)); | 1059 return !!(fd->marks & (1 << n)); |
1060 } | 1060 } |
1061 | 1061 |
1062 guint file_data_get_marks(FileData *fd) | |
1063 { | |
1064 return fd->marks; | |
1065 } | |
1066 | |
1062 void file_data_set_mark(FileData *fd, gint n, gboolean value) | 1067 void file_data_set_mark(FileData *fd, gint n, gboolean value) |
1063 { | 1068 { |
1064 guint old = fd->marks; | 1069 guint old = fd->marks; |
1065 if (!value == !(fd->marks & (1 << n))) return; | 1070 if (!value == !(fd->marks & (1 << n))) return; |
1066 | 1071 |