Method

Gtk.IconView.get_cursor

Declaration [src]

gboolean
gtk_icon_view_get_cursor (
  GtkIconView* icon_view,
  GtkTreePath** path,
  GtkCellRenderer** cell
)

Description [src]

Fills in path and cell with the current cursor path and cell. If the cursor isn’t currently set, then path will be NULL. If no cell currently has focus, then cell will be NULL.

The returned GtkTreePath must be freed with gtk_tree_path_free().

Parameters

path GtkTreePath
 

Return location for the current cursor path, or NULL

 Direction: out
 Ownership of the data is transferred to the callee
cell GtkCellRenderer
 

Return location the current focus cell, or NULL

 Direction: out
 Ownership is not transferred to the callee

Return value

Returns: gboolean

TRUE if the cursor is set.