Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2013-02-24 17:37:29 (GMT)
committer Walter Bender <walter.bender@gmail.com>2013-02-24 17:37:29 (GMT)
commit6bc8c7a7bb4e9dac0863257b31017af690f6488e (patch)
treeedfe760dba00111cb795641b4886e769b67817a4
parent9b2c89766b7e6e9ba900a14807d03e4a35b1c564 (diff)
minor changes
-rw-r--r--activity/activity.info2
-rw-r--r--src/MMapArea.py3
-rw-r--r--src/TextThought.py3
3 files changed, 5 insertions, 3 deletions
diff --git a/activity/activity.info b/activity/activity.info
index 3f1d98d..9393589 100644
--- a/activity/activity.info
+++ b/activity/activity.info
@@ -1,7 +1,7 @@
[Activity]
name = Labyrinth
summary = Do you have a lot on your mind? Map it! This activity lets you create mind maps that, in addition to words, can have drawings and images!
-activity_version = 14
+activity_version = 14.1
bundle_id = org.gnome.Labyrinth
icon = activity-labyrinth
exec = sugar-activity labyrinthactivity.LabyrinthActivity
diff --git a/src/MMapArea.py b/src/MMapArea.py
index 37473a5..5be4470 100644
--- a/src/MMapArea.py
+++ b/src/MMapArea.py
@@ -740,7 +740,8 @@ class MMapArea (gtk.DrawingArea):
type = self.mode
if type == MODE_TEXT:
- thought = TextThought.TextThought (coords, self.pango_context, self.nthoughts, self.save, self.undo, loading, self.background_color, self.foreground_color, fixed=self.parent.parent, parent=self)
+ # fixed<-_vbox<-_sw<-_main_area
+ thought = TextThought.TextThought (coords, self.pango_context, self.nthoughts, self.save, self.undo, loading, self.background_color, self.foreground_color, fixed=self.parent.parent.parent.parent, parent=self)
elif type == MODE_LABEL:
thought = LabelThought.LabelThought (coords, self.pango_context, self.nthoughts, self.save, self.undo, loading, self.background_color, self.foreground_color)
elif type == MODE_IMAGE:
diff --git a/src/TextThought.py b/src/TextThought.py
index 5c04197..6f7599f 100644
--- a/src/TextThought.py
+++ b/src/TextThought.py
@@ -818,7 +818,8 @@ class TextThought (ResizableThought):
self.textview.modify_font(font_desc)
r, g, b = utils.gtk_to_cairo_color(self.foreground_color)
- rgba = gtk.gdk.Color(int(65535 * r), int(65535 * g), int(65535 * b))
+ rgba = gtk.gdk.Color(
+ int(65535 * r), int(65535 * g), int(65535 * b))
self.textview.modify_text(gtk.STATE_NORMAL, rgba)
self.textview.get_buffer().set_text(self.text)