You don't use get_path_at_pos
. It is meant for cases where you handle the button presses directly (which you should avoid unless you really have good reasons to do so).
Simply use gtk_icon_view_get_selected_items
(C) or the pygtk equivalent iconview.get_selected_items()
which gives you a list (in C a GList
) of currently selected Gtk.TreePath
s which is what you desire.