Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/OficinaActivity.py
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2012-07-26 13:37:30 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2012-08-10 13:49:30 (GMT)
commit234a272540e55443326dd87e5071e3c19bd3bbe9 (patch)
tree3d09f7a7560e2a6d24141f37bf786b3af3c2f028 /OficinaActivity.py
parentf0b65094cb6ced412a85c6645a606fd8980426c9 (diff)
Text tool ported to cairo
This patch reorganize a little the text management code, to do the font_properties private to Area. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Diffstat (limited to 'OficinaActivity.py')
-rw-r--r--OficinaActivity.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/OficinaActivity.py b/OficinaActivity.py
index 16484b6..59cb28d 100644
--- a/OficinaActivity.py
+++ b/OficinaActivity.py
@@ -90,14 +90,14 @@ class OficinaActivity(activity.Activity):
self.fixed.modify_bg(gtk.STATE_NORMAL,
style.COLOR_WHITE.get_gdk_color())
+ self.textview = gtk.TextView()
+ self.fixed.put(self.textview, 0, 0)
+
# These attributes are used in other classes, so they should be public
self.area = Area(self)
self.area.show()
self.fixed.put(self.area, 0, 0)
- self.textview = gtk.TextView()
- self.fixed.put(self.textview, 0, 0)
-
sw = gtk.ScrolledWindow()
sw.show()
sw.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)