Top |
gboolean | (*ThunarTreeModelVisibleFunc) () |
void | thunar_tree_model_set_visible_func () |
void | thunar_tree_model_refilter () |
void | thunar_tree_model_cleanup () |
gboolean | thunar_tree_model_node_has_dummy () |
void | thunar_tree_model_add_child () |
gboolean (*ThunarTreeModelVisibleFunc) (ThunarTreeModel *model
,ThunarFile *file
,gpointer data
);
void thunar_tree_model_set_visible_func (ThunarTreeModel *model
,ThunarTreeModelVisibleFunc func
,gpointer data
);
Sets the visible function used when filtering the ThunarTreeModel.
The function should return TRUE
if the given row should be visible
and FALSE
otherwise.
model |
||
func |
a ThunarTreeModelVisibleFunc, the visible function. |
|
data |
User data to pass to the visible function, or |
void
thunar_tree_model_refilter (ThunarTreeModel *model
);
Walks all the folders in the ThunarTreeModel and updates their visibility.
void
thunar_tree_model_cleanup (ThunarTreeModel *model
);
Walks all the folders in the ThunarTreeModel and release them when they are unused by the treeview.
gboolean thunar_tree_model_node_has_dummy (ThunarTreeModel *model
,GNode *node
);
Checks if node is a dummy node ( if it only has a dummy item )
void thunar_tree_model_add_child (ThunarTreeModel *model
,GNode *node
,ThunarFile *file
);
Creates a new ThunarTreeModelItem as a child of node
and stores a reference to the passed file
Automatically creates/removes dummy items if required
Columns exported by the ThunarTreeModel using the GtkTreeModel interface.
the index of the file column. |
||
the index of the name column. |
||
the index of the PangoAttrList column. |
||
the index of the ThunarDevice column. |
||