Various improvements to Icon, MimeIcon
This commit is contained in:
@@ -16,7 +16,7 @@ func NewMimeIcon (mime data.Mime, size tomo.IconSize) *MimeIcon {
|
||||
this := &MimeIcon {
|
||||
Box: tomo.NewBox(),
|
||||
}
|
||||
this.SetRole(tomo.R("objects", "Icon"))
|
||||
this.SetRole(tomo.R("objects", "MimeIcon"))
|
||||
this.SetIcon(mime, size)
|
||||
this.OnIconSetChange(this.handleIconSetChange)
|
||||
return this
|
||||
@@ -27,7 +27,6 @@ func (this *MimeIcon) SetIcon (mime data.Mime, size tomo.IconSize) {
|
||||
if this.mime == mime && this.size == size { return }
|
||||
this.mime = mime
|
||||
this.size = size
|
||||
this.SetTag(iconSizeString(size), true)
|
||||
this.setTexture(tomo.MimeIconTexture(mime, size))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user