Method
GtkTreeSelectionget_selected
Declaration [src]
gboolean
gtk_tree_selection_get_selected (
GtkTreeSelection* selection,
GtkTreeModel** model,
GtkTreeIter* iter
)
Description [src]
Sets iter to the currently selected node, if selection is set to
GTK_SELECTION_SINGLE or GTK_SELECTION_BROWSE.
The iter argument may be NULL if you just want to test if selection
has any selected nodes.
The model argument is filled with the current model as a convenience.
This function will not work with GTK_SELECTION_MULTIPLE. See
gtk_tree_selection_get_selected_rows() instead.
Parameters
model-
Type:
GtkTreeModelThe model.
The argument will be set by the function. The argument can be NULL.The returned data is owned by the instance. iter-
Type:
GtkTreeIterThe iterator for the selected row.
The argument will be set by the function. The argument can be NULL.The returned data is owned by the instance.