From 6bc8c7a7bb4e9dac0863257b31017af690f6488e Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Sun, 24 Feb 2013 17:37:29 +0000 Subject: minor changes --- 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) -- cgit v0.9.1