Re: custom metainfo/tag filter for images



Hi Florian

On 2016-02-02 22:51, Florian Hubold <doktor5000 arcor de> wrote:
I'd like to add an additional tag filter that can sort by
the number of images, to sort a list of files based on
whether they have at least one cover image associated
already or none, and to also see those that have multiple.

How would I go about that?

You would add a new column to the GtkListStore which backs the file list ("file_model"), add the corresponding tree view column (look in data/browser.ui for both of these), set the value based on the number of images (look for gtk_list_store_set() and gtk_list_store_insert_with_values() in src/browser.c) and finally add a pair of sorting functions (in src/file.c). There are some other things as well, such as adding a field to the anonymous enum for the list of list store columns (in src/browser.c). You would probably want to add some search functionality to the search dialogue too.

--
http://amigadave.com/

Attachment: signature.asc
Description: Digital signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]