diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2013-10-23 13:42:03 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2013-10-23 14:49:22 (GMT) |
commit | d890b0d57fcb55da3eb20ea4266e3310d68715d8 (patch) | |
tree | a3e06e9c639f72f8da22680dbd2dc0bfbce5411c /historietaactivity.py | |
parent | fb0a16de6b993a08ed794dea27cda499b462db83 (diff) |
Avoid changing edition_mode in a globe if not needed
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Diffstat (limited to 'historietaactivity.py')
-rw-r--r-- | historietaactivity.py | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/historietaactivity.py b/historietaactivity.py index 2ef636d..11f4c50 100644 --- a/historietaactivity.py +++ b/historietaactivity.py @@ -513,10 +513,10 @@ class ComicBox(Gtk.EventBox): self.show_all() def set_globo_activo(self, globo): - if globo is None: - if self._globo_activo is not None: - self._globo_activo.set_selected(False) - else: + if self._globo_activo is not None and \ + self._globo_activo != globo: + self._globo_activo.set_selected(False) + if globo is not None: globo.set_selected(True) self._globo_activo = globo if globo is not None and globo.texto is not None: @@ -671,17 +671,11 @@ class ComicBox(Gtk.EventBox): self.is_punto = True if (not self.is_dimension) and not (self.is_punto): - if self._globo_activo is not None: - #self.glob_press.is_selec(event.x,event.y) - self._globo_activo.set_selected(False) - self.glob_press = False - if self.globos: list_aux = self.globos[:] list_aux.reverse() for i in list_aux: if i.is_selec(event.x, event.y): - # i.mover_a(event.x,event.y,self.get_allocation()) self.glob_press = True self.set_globo_activo(i) self.redraw() |