Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/editmap.py
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2012-02-23 00:27:20 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2012-02-23 00:27:20 (GMT)
commited51169a14e590732799e9d8d0e7b6114b2b1ca1 (patch)
tree465a99e51ec5ca331974f342c3b08b55af2917f3 /editmap.py
parentb3944de779dd9ab425d41bc9ec57b7abd5e9f04f (diff)
The navmap takes focus after the images are added or removed
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Diffstat (limited to 'editmap.py')
-rw-r--r--editmap.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/editmap.py b/editmap.py
index c83f08c..68e405f 100644
--- a/editmap.py
+++ b/editmap.py
@@ -111,6 +111,7 @@ class EditMapWin(gtk.HBox):
self.game_map.add_object_to_wall(x, y, direction, wall_object)
self.nav_view.update_wall_info(x, y, direction)
+ self.nav_view.grab_focus()
def add_selected_object(self):
if self.furniture_iconview.is_focus():
@@ -124,3 +125,4 @@ class EditMapWin(gtk.HBox):
def remove_selected_object(self):
self.nav_view.remove_selected_object()
+ self.nav_view.grab_focus()