IconView.getSelectedItems

gtk.tree_path.TreePath[] getSelectedItems()

Creates a list of paths of all selected items. Additionally, if you are planning on modifying the model after calling this function, you may want to convert the returned list into a list of GtkTreeRowReferences. To do this, you can use [gtk.tree_row_reference.TreeRowReference.new_].

To free the return value, use [glib.list.List.freeFull]:

GtkWidget *icon_view = gtk_icon_view_new ();
// Use icon_view

GList *list = gtk_icon_view_get_selected_items (GTK_ICON_VIEW (icon_view));

// use list

g_list_free_full (list, (GDestroyNotify) gtk_tree_path_free);

Returns

A [glib.list.List] containing a [gtk.tree_path.TreePath] for each selected row.

Deprecated

Use [gtk.grid_view.GridView] instead