Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This will create the correct cairo surface, but I need to associate it with the button image
- # self is a gtk.Button instance
- sensitive = (self.state != gtk.STATE_INSENSITIVE)
- surface = self._buffer.get_surface(sensitive, self)
- allocation = self.get_allocation()
- if self.window is not None:
- cr = self.window.cairo_create()
- cr.set_source_surface(surface, allocation.x, allocation.y)
- cr.paint()
Add Comment
Please, Sign In to add comment