Gtk.IconView.get_cursor

### Method

# Gtk IconViewget_cursor

deprecated: 4.10

#### 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().

Deprecated since: 4.10

Use `GtkGridView` instead.

#### Parameters

`path`

  Type: `GtkTreePath`

  Return location for the current cursor path.

  The argument will be set by the function.
  The argument can be `NULL`.
  The instance takes ownership of the data, and is responsible for freeing it.

`cell`

  Type: `GtkCellRenderer`

  Return location the current focus cell.

  The argument will be set by the function.
  The argument can be `NULL`.
  The data is owned by the caller of the function.

#### Return value

Type: `gboolean`

`TRUE` if the cursor is set.