Top | ![]() |
![]() |
![]() |
![]() |
FmPlacesModel implements GtkTreeModel, GtkTreeDragSource, GtkTreeDragDest, GtkTreeSortable and GtkBuildable.
include
: libfm/fm-gtk.h
The FmPlacesModel represents list of pseudo-folders which contains such items as Home directory, Trash bin, mounted removable drives, bookmarks, etc. It is used by FmPlacesView to display them in the side panel.
FmBookmarkItem *
fm_places_item_get_bookmark_item (FmPlacesItem *item
);
Retrieves bookmark descriptor for the row. Returned data are owned by places model and should not be freed by caller.
Since: 1.0.0
FmIcon *
fm_places_item_get_icon (FmPlacesItem *item
);
Retrieves icom image for the row. Returned data are owned by places model and should not be freed by caller.
Since: 1.0.0
FmFileInfo *
fm_places_item_get_info (FmPlacesItem *item
);
Retrieves file info for the row. Returned data are owned by places model and should not be freed by caller.
Since: 1.0.0
GMount *
fm_places_item_get_mount (FmPlacesItem *item
);
Rertieves mount descriptor for the row. Returned data are owned by places model and should not be freed by caller.
Since: 1.0.0
FmPath *
fm_places_item_get_path (FmPlacesItem *item
);
Retrieves path for the row. Returned data are owned by places model and should not be freed by caller.
Since: 1.0.0
GVolume *
fm_places_item_get_volume (FmPlacesItem *item
);
Retrieves volume descriptor for the row. Returned data are owned by places model and should not be freed by caller.
Since: 1.0.0
gboolean
fm_places_item_is_mounted (FmPlacesItem *item
);
Checks if the row is a mounted volume.
Since: 1.0.0
FmBookmarks *
fm_places_model_get_bookmarks (FmPlacesModel *model
);
Retrieves list of bookmarks that is used by the model
. Returned data
are owned by places model and should not be freed by caller.
Since: 1.0.0
gboolean fm_places_model_get_iter_by_fm_path (FmPlacesModel *model
,GtkTreeIter *iter
,FmPath *path
);
Tries to find an item in the model
by the path
. If item was found
within model
then sets iter
to match the found item.
Since: 1.0.0
GtkTreePath *
fm_places_model_get_separator_path (FmPlacesModel *model
);
Retrieves path to separator between places and bookmark items. Returned
path should be freed with gtk_tree_path_free()
after usage.
Since: 0.1.14
gboolean fm_places_model_iter_is_separator (FmPlacesModel *model
,GtkTreeIter *it
);
Checks if the row described in it
is a separator.
Since: 0.1.14
void fm_places_model_mount_indicator_cell_data_func (GtkCellLayout *cell_layout
,GtkCellRenderer *render
,GtkTreeModel *tree_model
,GtkTreeIter *it
,gpointer user_data
);
cell_layout |
the cell layout |
|
render |
the cell renderer |
|
tree_model |
a places model instance |
|
it |
the row iterator |
|
user_data |
unused |
Since: 0.1.15
FmPlacesModel *
fm_places_model_new (void
);
Creates new places model.
Since: 0.1.14
gboolean fm_places_model_path_is_bookmark (FmPlacesModel *model
,GtkTreePath *tp
);
Checks if the row by tp
lies within bookmark items.
Since: 0.1.14
gboolean fm_places_model_path_is_places (FmPlacesModel *model
,GtkTreePath *tp
);
Checks if the row by tp
lies above separator, i.e. within "places".
Since: 0.1.14
gboolean fm_places_model_path_is_separator (FmPlacesModel *model
,GtkTreePath *tp
);
Checks if the row by tp
is a separator between places and bookmarks.
Since: 0.1.14
Data of the row in the FmPlacesModel.
(GdkPixbuf *) icon if the row |
||
(char *) name of the row |
||
(FmPlacesItem *) internal representation |