Fix a couple of typos.
This commit is contained in:
parent
fe9ec95fcc
commit
5c951a5ca2
@ -274,7 +274,7 @@ class Icon(gtk.Image):
|
|||||||
self._buffer.file_name = self.props.file
|
self._buffer.file_name = self.props.file
|
||||||
|
|
||||||
width, height = gtk.icon_size_lookup(self.props.icon_size)
|
width, height = gtk.icon_size_lookup(self.props.icon_size)
|
||||||
if self._buffer.width != width and self._buffer.height != height:
|
if self._buffer.width != width or self._buffer.height != height:
|
||||||
self._buffer.width = width
|
self._buffer.width = width
|
||||||
self._buffer.height = height
|
self._buffer.height = height
|
||||||
|
|
||||||
@ -314,7 +314,7 @@ class Icon(gtk.Image):
|
|||||||
xpad, ypad = self.get_padding()
|
xpad, ypad = self.get_padding()
|
||||||
xalign, yalign = self.get_alignment()
|
xalign, yalign = self.get_alignment()
|
||||||
requisition = self.get_child_requisition()
|
requisition = self.get_child_requisition()
|
||||||
if self.get_direction != gtk.TEXT_DIR_LTR:
|
if self.get_direction() != gtk.TEXT_DIR_LTR:
|
||||||
xalign = 1.0 - xalign
|
xalign = 1.0 - xalign
|
||||||
|
|
||||||
x = math.floor(self.allocation.x + xpad +
|
x = math.floor(self.allocation.x + xpad +
|
||||||
|
Loading…
Reference in New Issue
Block a user