Top |
EomListStore implements GtkTreeModel, GtkTreeDragSource, GtkTreeDragDest, GtkTreeSortable and GtkBuildable.
GtkListStore *
eom_list_store_new (void
);
Creates a new and empty EomListStore.
GtkListStore *
eom_list_store_new_from_glist (GList *list
);
Creates a new EomListStore from a list of EomImage's.
The given list must be NULL
-terminated.
void eom_list_store_append_image (EomListStore *store
,EomImage *image
);
Adds an EomImage to store
. The thumbnail of the image is not
loaded and will only be loaded if the thumbnail is made visible
or eom_list_store_set_thumbnail()
is called.
void eom_list_store_add_files (EomListStore *store
,GList *file_list
);
Adds a list of GFile's to store
. The given list
must be NULL
-terminated.
If any of the GFile's in file_list
is a directory, all the images
in that directory will be added to store
. If the list of files contains
only one file and this is a regular file, then all the images in the same
directory will be added as well to store
.
void eom_list_store_remove_image (EomListStore *store
,EomImage *image
);
Removes image
from store
.
gint eom_list_store_get_pos_by_image (EomListStore *store
,EomImage *image
);
Gets the position where image
is stored in store
. If image
is not stored in store
, -1 is returned.
EomImage * eom_list_store_get_image_by_pos (EomListStore *store
,gint pos
);
Gets the EomImage in the position pos
of store
. If there is
no image at position pos
, NULL
is returned.
gint eom_list_store_get_pos_by_iter (EomListStore *store
,GtkTreeIter *iter
);
Gets the position of the image pointed by iter
.
gint
eom_list_store_length (EomListStore *store
);
Returns the number of images in the store.
gint
eom_list_store_get_initial_pos (EomListStore *store
);
Gets the position of the EomImage that should be loaded first. If not set, it returns -1.
void eom_list_store_thumbnail_set (EomListStore *store
,GtkTreeIter *iter
);
Sets the thumbnail for the image pointed by iter
.
void eom_list_store_thumbnail_unset (EomListStore *store
,GtkTreeIter *iter
);
Unsets the thumbnail for the image pointed by iter
, changing
it to a "busy" icon.
void eom_list_store_thumbnail_refresh (EomListStore *store
,GtkTreeIter *iter
);
Refreshes the thumbnail for the image pointed by iter
.