GtkImage: sensitive state ignored when using cairo surfaces
While trying to add HiDPI support to an app by porting from pixbufs to surfaces I notices that the sensitive state is ignored for GtkImage when the source is a surface and not a pixbuf:
import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk
w = Gtk.Window(border_width=10)
theme = Gtk.IconTheme.get_default()
box = Gtk.Box()
surface = theme.load_surface("weather-clear", 50, 1, None, 0)
image = Gtk.Image.new_from_surface(surface)
image.set_sensitive(False)
box.add(image)
pixbuf = theme.load_icon("weather-clear", 50, 0)
image = Gtk.Image.new_from_pixbuf(pixbuf)
image.set_sensitive(False)
box.add(image)
w.add(box)
w.show_all()
Gtk.main()