From 5c951a5ca202f5687fce670df805141ccc698fda Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Sun, 18 Nov 2007 10:58:26 +0000 Subject: Fix a couple of typos. --- (limited to 'lib') 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 + -- cgit v0.9.1