Mercurial > geeqie
comparison src/view_file_icon.c @ 1761:caf0e4b8319d
consider sidecars in layout_image popup menu
author | nadvornik |
---|---|
date | Mon, 28 Sep 2009 09:57:06 +0000 |
parents | 1e3bbaa772b9 |
children | 9a351e8f3b97 |
comparison
equal
deleted
inserted
replaced
1760:4f081855679f | 1761:caf0e4b8319d |
---|---|
159 *----------------------------------------------------------------------------- | 159 *----------------------------------------------------------------------------- |
160 * pop-up menu | 160 * pop-up menu |
161 *----------------------------------------------------------------------------- | 161 *----------------------------------------------------------------------------- |
162 */ | 162 */ |
163 | 163 |
164 GList *vficon_selection_get_one(ViewFile *vf, FileData *fd) | |
165 { | |
166 return g_list_prepend(filelist_copy(fd->sidecar_files), file_data_ref(fd)); | |
167 } | |
168 | |
164 GList *vficon_pop_menu_file_list(ViewFile *vf) | 169 GList *vficon_pop_menu_file_list(ViewFile *vf) |
165 { | 170 { |
166 if (!VFICON(vf)->click_id) return NULL; | 171 if (!VFICON(vf)->click_id) return NULL; |
167 | 172 |
168 if (VFICON(vf)->click_id->selected & SELECTION_SELECTED) | 173 if (VFICON(vf)->click_id->selected & SELECTION_SELECTED) |
169 { | 174 { |
170 return vf_selection_get_list(vf); | 175 return vf_selection_get_list(vf); |
171 } | 176 } |
172 | 177 |
173 | 178 return vficon_selection_get_one(vf, VFICON(vf)->click_id->fd); |
174 return g_list_prepend(filelist_copy(VFICON(vf)->click_id->fd->sidecar_files), file_data_ref(VFICON(vf)->click_id->fd)); | |
175 } | 179 } |
176 | 180 |
177 void vficon_pop_menu_view_cb(GtkWidget *widget, gpointer data) | 181 void vficon_pop_menu_view_cb(GtkWidget *widget, gpointer data) |
178 { | 182 { |
179 ViewFile *vf = data; | 183 ViewFile *vf = data; |