[ocrfeeder] Select selection area after creating it
- From: Joaquim Manuel Pereira Rocha <jrocha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ocrfeeder] Select selection area after creating it
- Date: Wed, 24 Mar 2010 11:05:14 +0000 (UTC)
commit 533021c6b319907828d2e1a4155dcbede3e32cb4
Author: Joaquim Rocha <jrocha cookiemonster local igalia com>
Date: Tue Mar 23 18:41:10 2010 +0100
Select selection area after creating it
studio/customWidgets.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/studio/customWidgets.py b/studio/customWidgets.py
index c33c75f..86b34d9 100644
--- a/studio/customWidgets.py
+++ b/studio/customWidgets.py
@@ -195,7 +195,11 @@ class SelectableBoxesArea(goocanvas.Canvas):
self.currently_created_area.remove()
self.currently_created_area = None
return False
- self.handleOverlapedAreas(self.getOverlapedAreas(self.currently_created_area))
+ self.handleOverlapedAreas(self.getOverlapedAreas(self.currently_created_area))
+ self.deselectAreas()
+ self.selected_areas.append(self.currently_created_area)
+ self.selectArea(self.currently_created_area)
+ self.emit('selected_box', self.currently_created_area)
self.currently_created_area = None
def getOverlapedAreas(self, area):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]