Top | ![]() |
![]() |
![]() |
![]() |
DzlTreeNode *
dzl_tree_node_new (void
);
Creates a new DzlTreeNode instance. This is handy for situations where you do not want to subclass DzlTreeNode.
void dzl_tree_node_append (DzlTreeNode *node
,DzlTreeNode *child
);
Appends child
to the list of children owned by node
.
void dzl_tree_node_insert_sorted (DzlTreeNode *node
,DzlTreeNode *child
,DzlTreeNodeCompareFunc compare_func
,gpointer user_data
);
Inserts a child
as a child of node
, sorting it among the other children.
node |
A DzlTreeNode. |
|
child |
A DzlTreeNode. |
|
compare_func |
A compare func to compare nodes. |
[scope call] |
user_data |
user data for |
const gchar *
dzl_tree_node_get_icon_name (DzlTreeNode *node
);
Fetches the icon-name of the icon to display, or NULL for no icon.
GObject *
dzl_tree_node_get_item (DzlTreeNode *node
);
Gets a GObject for the node, if one was set.
DzlTreeNode *
dzl_tree_node_get_parent (DzlTreeNode *node
);
Retrieves the parent DzlTreeNode for node
.
GtkTreePath *
dzl_tree_node_get_path (DzlTreeNode *node
);
Gets a GtkTreePath for node
.
void dzl_tree_node_prepend (DzlTreeNode *node
,DzlTreeNode *child
);
Prepends child
to the list of children owned by node
.
void dzl_tree_node_remove (DzlTreeNode *node
,DzlTreeNode *child
);
Removes child
from the list of children owned by node
.
void dzl_tree_node_set_icon_name (DzlTreeNode *node
,const gchar *icon_name
);
Sets the icon name of the node. This is displayed in the pixbuf cell of the DzlTree.
void dzl_tree_node_set_item (DzlTreeNode *node
,GObject *item
);
An optional object to associate with the node. This is handy to save needing to subclass the DzlTreeNode class.
gboolean dzl_tree_node_expand (DzlTreeNode *node
,gboolean expand_ancestors
);
void dzl_tree_node_show_popover (DzlTreeNode *node
,GtkPopover *popover
);
void dzl_tree_node_set_text (DzlTreeNode *node
,const gchar *text
);
Sets the text of the node. This is displayed in the text cell of the DzlTree.
DzlTree *
dzl_tree_node_get_tree (DzlTreeNode *node
);
Fetches the DzlTree instance that owns the node.
gboolean
dzl_tree_node_get_children_possible (DzlTreeNode *self
);
void dzl_tree_node_set_children_possible (DzlTreeNode *self
,gboolean children_possible
);
If the node has not yet been built, setting this to TRUE
will add a
dummy child node. This dummy node will be removed when when the node
is built by the registered DzlTreeBuilder instances.
void dzl_tree_node_set_use_markup (DzlTreeNode *self
,gboolean use_markup
);
GIcon *
dzl_tree_node_get_gicon (DzlTreeNode *self
);
Fetch the GIcon, re-render if necessary
void dzl_tree_node_add_emblem (DzlTreeNode *self
,const gchar *emblem_name
);
Adds an emplem to be rendered on top of the node.
Use dzl_tree_node_remove_emblem()
to remove an emblem.
void dzl_tree_node_remove_emblem (DzlTreeNode *self
,const gchar *emblem_name
);
void
dzl_tree_node_clear_emblems (DzlTreeNode *self
);
Removes all emblems from self
.
gboolean dzl_tree_node_has_emblem (DzlTreeNode *self
,const gchar *emblem_name
);
Checks to see if emblem_name
has been added to the DzlTreeNode.
void dzl_tree_node_set_emblems (DzlTreeNode *self
,const gchar * const *emblems
);
void dzl_tree_node_set_use_dim_label (DzlTreeNode *self
,gboolean use_dim_label
);