I want to change the opacity or color of a gtk.IconView select box (I want actually to make the selection more visible).
I noticed that the gtk.IconView widget had style properties selection-box-alpha & selection-box-color but only accessible for reading.
The set_select_function() method of the gtk.TreeSelection class would have been useful to do what I want but it's used for a gtk.TreeView and I haven't found an equivalent for gtk.IconView
So, how can I do to have control over the selection and perform an action when the user select or unselect stuff ?
Edit :
In fact, change the values of selection-box-alpha and selection-box-color style properties wouldn't be a solution.
I don't really want to change the selection box opacity but the "opacity" of the pixbuf (by compositing with a color).
So, I need an equivalent method of set_select_function for a gtk.IconView widget.
You might be able to set the pixmap opacity by implementing a custom gtk.CellRenderer that draws the pixmap according to the selection state, and replacing the gtk.IconView's default cell renderer with your own.
How to get the control over the selection in a gtk.IconView?