homer drops his donut, doh, homer spills his soda, doh, homer hits the doorway, doh, homer ruins his whole day, doh!
This commit is contained in:
@@ -71,6 +71,16 @@ func newImageFromPath(path string) (*gtk.Image, error) {
|
||||
return gtk.NewImageFromPaintable(tex), nil
|
||||
}
|
||||
|
||||
func setImageFromPath(path string, i *gtk.Image) (error) {
|
||||
tex, err := getTexture(path)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
i.SetFromPaintable(tex)
|
||||
return nil
|
||||
}
|
||||
|
||||
func newPictureFromWeb(url string) (*gtk.Picture, error) {
|
||||
pa, _ := ensureCache()
|
||||
// step 1: get a sha256 sum of the URL
|
||||
|
||||
Reference in New Issue
Block a user