Class

EomListStore

since: 1.0

Description

class Eom.ListStore : Gtk.ListStore
  implements Gtk.Buildable, Gtk.TreeDragDest, Gtk.TreeDragSource, Gtk.TreeModel, Gtk.TreeSortable {
  priv: EomListStorePrivate*
}
No description available.

Available since: 1.0

Ancestors

Constructors

eom_list_store_new

Creates a new and empty EomListStore.

since: 1.0

eom_list_store_new_from_glist

Creates a new EomListStore from a list of EomImage‘s. The given list must be NULL-terminated.

since: 1.0

Instance methods

eom_list_store_add_files

Adds a list of GFile‘s to store. The given list must be NULL-terminated.

since: 1.0

eom_list_store_append_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.

since: 1.0

eom_list_store_get_image_by_pos

Gets the EomImage in the position pos of store. If there is no image at position pos, NULL is returned.

since: 1.0

eom_list_store_get_initial_pos

Gets the position of the EomImage that should be loaded first. If not set, it returns -1.

since: 1.0

eom_list_store_get_pos_by_image

Gets the position where image is stored in store. If image is not stored in store, -1 is returned.

since: 1.0

eom_list_store_get_pos_by_iter

Gets the position of the image pointed by iter.

since: 1.0

eom_list_store_length

Returns the number of images in the store.

since: 1.0

eom_list_store_remove_image

Removes image from store.

since: 1.0

eom_list_store_thumbnail_refresh

Refreshes the thumbnail for the image pointed by iter.

since: 1.0

eom_list_store_thumbnail_set

Sets the thumbnail for the image pointed by iter.

since: 1.0

eom_list_store_thumbnail_unset

Unsets the thumbnail for the image pointed by iter, changing it to a “busy” icon.

since: 1.0

Methods inherited from GtkListStore (19)
gtk_list_store_append

Appends a new row to list_store. iter will be changed to point to this new row. The row will be empty after this function is called. To fill in values, you need to call gtk_list_store_set() or gtk_list_store_set_value().

unstable since: 3.0

gtk_list_store_clear

Removes all rows from the list store.

unstable since: 3.0

gtk_list_store_insert

Creates a new row at position. iter will be changed to point to this new row. If position is -1 or is larger than the number of rows on the list, then the new row will be appended to the list. The row will be empty after this function is called. To fill in values, you need to call gtk_list_store_set() or gtk_list_store_set_value().

unstable since: 3.0

gtk_list_store_insert_after

Inserts a new row after sibling. If sibling is NULL, then the row will be prepended to the beginning of the list. iter will be changed to point to this new row. The row will be empty after this function is called. To fill in values, you need to call gtk_list_store_set() or gtk_list_store_set_value().

unstable since: 3.0

gtk_list_store_insert_before

Inserts a new row before sibling. If sibling is NULL, then the row will be appended to the end of the list. iter will be changed to point to this new row. The row will be empty after this function is called. To fill in values, you need to call gtk_list_store_set() or gtk_list_store_set_value().

unstable since: 3.0

gtk_list_store_insert_with_values

Creates a new row at position. iter will be changed to point to this new row. If position is -1, or larger than the number of rows in the list, then the new row will be appended to the list. The row will be filled with the values given to this function.

unstable since: 2.6

gtk_list_store_insert_with_valuesv

A variant of gtk_list_store_insert_with_values() which takes the columns and values as two arrays, instead of varargs. This function is mainly intended for language-bindings.

unstable since: 2.6

gtk_list_store_iter_is_valid

This function is slow. Only use it for debugging and/or testing purposes.

unstable since: 2.2

gtk_list_store_move_after

Moves iter in store to the position after position. Note that this function only works with unsorted stores. If position is NULL, iter will be moved to the start of the list.

unstable since: 2.2

gtk_list_store_move_before

Moves iter in store to the position before position. Note that this function only works with unsorted stores. If position is NULL, iter will be moved to the end of the list.

unstable since: 2.2

gtk_list_store_prepend

Prepends a new row to list_store. iter will be changed to point to this new row. The row will be empty after this function is called. To fill in values, you need to call gtk_list_store_set() or gtk_list_store_set_value().

unstable since: 3.0

gtk_list_store_remove

Removes the given row from the list store. After being removed, iter is set to be the next valid row, or invalidated if it pointed to the last row in list_store.

unstable since: 3.0

gtk_list_store_reorder

Reorders store to follow the order indicated by new_order. Note that this function only works with unsorted stores.

unstable since: 2.2

gtk_list_store_set

Sets the value of one or more cells in the row referenced by iter. The variable argument list should contain integer column numbers, each column number followed by the value to be set. The list is terminated by a -1. For example, to set column 0 with type G_TYPE_STRING to “Foo”, you would write gtk_list_store_set (store, iter, 0, "Foo", -1).

unstable since: 3.0

gtk_list_store_set_column_types

This function is meant primarily for GObjects that inherit from GtkListStore, and should only be used when constructing a new GtkListStore. It will not function after a row has been added, or a method on the GtkTreeModel interface is called.

unstable since: 3.0

gtk_list_store_set_valist

See gtk_list_store_set(); this version takes a va_list for use by language bindings.

unstable since: 3.0

gtk_list_store_set_value

Sets the data in the cell specified by iter and column. The type of value must be convertible to the type of the column.

unstable since: 3.0

gtk_list_store_set_valuesv

A variant of gtk_list_store_set_valist() which takes the columns and values as two arrays, instead of varargs. This function is mainly intended for language-bindings and in case the number of columns to change is not known until run-time.

unstable since: 2.12

gtk_list_store_swap

Swaps a and b in store. Note that this function only works with unsorted stores.

unstable since: 2.2

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Methods inherited from GtkBuildable (10)
gtk_buildable_add_child

Adds a child to buildable. type is an optional string describing how the child should be added.

unstable since: 2.12

gtk_buildable_construct_child

Constructs a child of buildable with the name name.

unstable since: 2.12

gtk_buildable_custom_finished

This is similar to gtk_buildable_parser_finished() but is called once for each custom tag handled by the buildable.

unstable since: 2.12

gtk_buildable_custom_tag_end

This is called at the end of each custom element handled by the buildable.

unstable since: 2.12

gtk_buildable_custom_tag_start

This is called for each unknown element under <child>.

unstable since: 2.12

gtk_buildable_get_internal_child

Get the internal child called childname of the buildable object.

unstable since: 2.12

gtk_buildable_get_name

Gets the name of the buildable object.

unstable since: 2.12

gtk_buildable_parser_finished

Called when the builder finishes the parsing of a [GtkBuilder UI definition][BUILDER-UI]. Note that this will be called once for each time gtk_builder_add_from_file() or gtk_builder_add_from_string() is called on a builder.

unstable since: 2.12

gtk_buildable_set_buildable_property

Sets the property name name to value on the buildable object.

unstable since: 2.12

gtk_buildable_set_name

Sets the name of the buildable object.

unstable since: 2.12

Methods inherited from GtkTreeDragDest (2)
gtk_tree_drag_dest_drag_data_received

Asks the GtkTreeDragDest to insert a row before the path dest, deriving the contents of the row from selection_data. If dest is outside the tree so that inserting before it is impossible, FALSE will be returned. Also, FALSE may be returned if the new row is not created for some model-specific reason. Should robustly handle a dest no longer found in the model!

unstable since: 3.0

gtk_tree_drag_dest_row_drop_possible

Determines whether a drop is possible before the given dest_path, at the same depth as dest_path. i.e., can we drop the data in selection_data at that location. dest_path does not have to exist; the return value will almost certainly be FALSE if the parent of dest_path doesn’t exist, though.

unstable since: 3.0

Methods inherited from GtkTreeDragSource (3)
gtk_tree_drag_source_drag_data_delete

Asks the GtkTreeDragSource to delete the row at path, because it was moved somewhere else via drag-and-drop. Returns FALSE if the deletion fails because path no longer exists, or for some model-specific reason. Should robustly handle a path no longer found in the model!

unstable since: 3.0

gtk_tree_drag_source_drag_data_get

Asks the GtkTreeDragSource to fill in selection_data with a representation of the row at path. selection_data->target gives the required type of the data. Should robustly handle a path no longer found in the model!

unstable since: 3.0

gtk_tree_drag_source_row_draggable

Asks the GtkTreeDragSource whether a particular row can be used as the source of a DND operation. If the source doesn’t implement this interface, the row is assumed draggable.

unstable since: 3.0

Methods inherited from GtkTreeModel (28)

Please see GtkTreeModel for a full list of methods.

Methods inherited from GtkTreeSortable (6)
gtk_tree_sortable_get_sort_column_id

Fills in sort_column_id and order with the current sort column and the order. It returns TRUE unless the sort_column_id is GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID or GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID.

unstable since: 3.0

gtk_tree_sortable_has_default_sort_func

Returns TRUE if the model has a default sort function. This is used primarily by GtkTreeViewColumns in order to determine if a model can go back to the default state, or not.

unstable since: 3.0

gtk_tree_sortable_set_default_sort_func

Sets the default comparison function used when sorting to be sort_func. If the current sort column id of sortable is GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID, then the model will sort using this function.

unstable since: 3.0

gtk_tree_sortable_set_sort_column_id

Sets the current sort column to be sort_column_id. The sortable will resort itself to reflect this change, after emitting a GtkTreeSortable::sort-column-changed signal. sort_column_id may either be a regular column id, or one of the following special values:

unstable since: 3.0

gtk_tree_sortable_set_sort_func

Sets the comparison function used when sorting to be sort_func. If the current sort column id of sortable is the same as sort_column_id, then the model will sort using this function.

unstable since: 3.0

gtk_tree_sortable_sort_column_changed

Emits a GtkTreeSortable::sort-column-changed signal on sortable.

unstable since: 3.0

Signals

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

unstable since: 2.0

Signals inherited from GtkTreeModel (5)
GtkTreeModel::row-changed

This signal is emitted when a row in the model has changed.

unstable since: 3.0

GtkTreeModel::row-deleted

This signal is emitted when a row has been deleted.

unstable since: 3.0

GtkTreeModel::row-has-child-toggled

This signal is emitted when a row has gotten the first child row or lost its last child row.

unstable since: 3.0

GtkTreeModel::row-inserted

This signal is emitted when a new row has been inserted in the model.

unstable since: 3.0

GtkTreeModel::rows-reordered

This signal is emitted when the children of a node in the GtkTreeModel have been reordered.

unstable since: 3.0

Signals inherited from GtkTreeSortable (1)
GtkTreeSortable::sort-column-changed

The ::sort-column-changed signal is emitted when the sort column or sort order of sortable is changed. The signal is emitted before the contents of sortable are resorted.

unstable since: 3.0

Class structure

struct EomListStoreClass {
  GtkListStoreClass parent_class;
  void (* _eom_reserved1) (
void
  );
  void (* _eom_reserved2) (
void
  );
  void (* _eom_reserved3) (
void
  );
  void (* _eom_reserved4) (
void
  );
  
}
No description available.
Class members
parent_class: GtkListStoreClass
No description available.
_eom_reserved1: void (* _eom_reserved1) ( void )
No description available.
_eom_reserved2: void (* _eom_reserved2) ( void )
No description available.
_eom_reserved3: void (* _eom_reserved3) ( void )
No description available.
_eom_reserved4: void (* _eom_reserved4) ( void )
No description available.