diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2013-10-22 21:13:38 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2013-10-22 21:13:38 (GMT) |
commit | fb0a16de6b993a08ed794dea27cda499b462db83 (patch) | |
tree | e9dabf2dcf72adab256be53849dec5a11a09d76e /historietaactivity.py | |
parent | 350a84f05686f08868a9e8907b4df8145960c9c2 (diff) |
Copy textview window instead of use pango cairo text toy api - SL #4607
Cairo toy text api have problems, and can't render complex sripts.
Changed the way we draw the text in not edition mode to solve this
issue. This patch also move the textview, from be in the Box, to the
globe, then now we have one textview for ewvery globe instead of one by
box. This simplify tghe code.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Diffstat (limited to 'historietaactivity.py')
-rw-r--r-- | historietaactivity.py | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/historietaactivity.py b/historietaactivity.py index ad9bfb7..2ef636d 100644 --- a/historietaactivity.py +++ b/historietaactivity.py @@ -466,18 +466,6 @@ class ComicBox(Gtk.EventBox): self._drawingarea = Gtk.DrawingArea() self.fixed.put(self._drawingarea, 0, 0) - self.textviewbox = Gtk.VBox() - self.textview = Gtk.TextView() - self.textview.set_wrap_mode(Gtk.WrapMode.WORD_CHAR) - self.textview.set_justification(Gtk.Justification.CENTER) - self.textview.modify_bg(Gtk.StateType.NORMAL, - style.COLOR_WHITE.get_gdk_color()) - - self._textview_x = 0 - self._textview_y = 0 - self.fixed.put(self.textviewbox, 0, 0) - self.textviewbox.pack_start(self.textview, True, False, 0) - #se agregan los eventos de pulsacion y movimiento del raton self._drawingarea.add_events( Gdk.EventMask.POINTER_MOTION_MASK | @@ -726,10 +714,3 @@ class ComicBox(Gtk.EventBox): self._globo_activo.mover_a(event.x, event.y, self.get_allocation()) self.redraw() - - def move_textview(self, x, y): - if self._textview_x != x or self._textview_y != y: - self._textview_x = x - self._textview_y = y - self.fixed.move(self.textviewbox, x, y) - self.textviewbox.show_all() |