#!/usr/bin/python3

from gi.repository import GLib, Gtk, GdkPixbuf

win = Gtk.Window()
win.connect('destroy', Gtk.main_quit)
win.set_default_size(640, 480)

iv = Gtk.IconView()
iv.set_pixbuf_column(0)
win.add(iv)

model = Gtk.ListStore(GdkPixbuf.Pixbuf)
pix = GdkPixbuf.Pixbuf.new(GdkPixbuf.Colorspace.RGB, True, 8, 100, 100)
pix.fill(20)
model.append((pix,))
iv.set_model(model)
def timeout():
	iv.get_cursor()
	return True
GLib.timeout_add(100, timeout)

win.show_all()
Gtk.main()

