Gtk.IconView
inherits from Gtk.CellLayout
, so you can use the cell layout functions to replace the current text renderer. Something in the vein of:
renderers = iconview.get_cells()
iconview.clear()
for r in renderers:
if not isinstance(r, Gtk.TextRenderer):
iconview.pack_start(r)
else:
iconview.pack_start(my_custom_renderer)
I don't know if this works, but that's how I'd go about it.