Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@tomeuvizoso.net>2007-11-18 10:58:26 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2007-11-18 10:58:26 (GMT)
commit5c951a5ca202f5687fce670df805141ccc698fda (patch)
tree73a9de6fb72c49c3f5e56bdc3d8820ee3db7540c /lib
parentfe9ec95fcca4eafa7508417c9e1e4d987778d5a0 (diff)
Fix a couple of typos.
Diffstat (limited to 'lib')
-rw-r--r--lib/sugar/graphics/icon.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sugar/graphics/icon.py b/lib/sugar/graphics/icon.py
index 61eab70..2f88f5e 100644
--- a/lib/sugar/graphics/icon.py
+++ b/lib/sugar/graphics/icon.py
@@ -274,7 +274,7 @@ class Icon(gtk.Image):
self._buffer.file_name = self.props.file
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.height = height
@@ -314,7 +314,7 @@ class Icon(gtk.Image):
xpad, ypad = self.get_padding()
xalign, yalign = self.get_alignment()
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
x = math.floor(self.allocation.x + xpad +