diff --git a/data/gui/vcard_information_window.ui b/data/gui/vcard_information_window.ui
index b41f52de6..71a2f1e28 100644
--- a/data/gui/vcard_information_window.ui
+++ b/data/gui/vcard_information_window.ui
@@ -29,6 +29,7 @@
@@ -366,7 +366,7 @@
1
2
-
+
@@ -386,7 +386,7 @@
3
4
-
+
@@ -399,7 +399,7 @@
GTK_FILL
-
+
@@ -414,7 +414,7 @@
2
3
GTK_FILL
-
+
@@ -480,7 +480,7 @@
1
2
-
+
@@ -496,7 +496,7 @@
3
4
-
+
@@ -514,7 +514,7 @@
2
1
2
-
+
@@ -532,7 +532,7 @@
2
2
3
-
+
@@ -550,7 +550,7 @@
4
2
3
-
+
@@ -563,7 +563,7 @@
GTK_FILL
-
+
@@ -578,7 +578,7 @@
1
2
GTK_FILL
-
+
@@ -593,7 +593,7 @@
2
3
GTK_FILL
-
+
@@ -608,7 +608,7 @@
2
3
GTK_FILL
-
+
@@ -625,7 +625,7 @@
2
3
GTK_FILL
-
+
@@ -650,7 +650,7 @@
4
1
2
-
+
@@ -678,7 +678,7 @@
1
2
-
+
@@ -694,7 +694,7 @@
3
4
-
+
@@ -712,7 +712,7 @@
2
1
2
-
+
@@ -730,7 +730,7 @@
4
1
2
-
+
@@ -748,7 +748,7 @@
2
2
3
-
+
@@ -766,7 +766,7 @@
4
2
3
-
+
@@ -779,7 +779,7 @@
GTK_FILL
-
+
@@ -794,7 +794,7 @@
1
2
GTK_FILL
-
+
@@ -809,7 +809,7 @@
2
3
GTK_FILL
-
+
@@ -824,7 +824,7 @@
2
3
GTK_FILL
-
+
@@ -841,7 +841,7 @@
1
2
GTK_FILL
-
+
@@ -858,7 +858,7 @@
2
3
GTK_FILL
-
+
@@ -877,7 +877,7 @@
4
2
3
-
+
@@ -891,8 +891,8 @@
3
4
-
-
+
+
@@ -905,7 +905,7 @@
GTK_FILL
-
+
@@ -920,7 +920,7 @@
2
3
GTK_FILL
-
+
@@ -935,7 +935,7 @@
5
6
GTK_FILL
-
+
@@ -958,7 +958,7 @@
5
6
GTK_FILL
-
+
@@ -972,13 +972,12 @@
4
5
GTK_FILL
-
+
True
- True
0
0
5
@@ -988,13 +987,12 @@
3
4
-
+
True
- True
0
0
5
@@ -1004,7 +1002,7 @@
1
2
-
+
@@ -1022,7 +1020,7 @@
4
4
5
-
+
@@ -1040,7 +1038,7 @@
2
5
6
-
+
@@ -1058,7 +1056,7 @@
4
5
6
-
+
@@ -1098,7 +1096,6 @@
True
- True
0
0
5
@@ -1109,7 +1106,7 @@
1
2
-
+
@@ -1126,7 +1123,7 @@
3
4
-
+
@@ -1145,7 +1142,7 @@
2
1
2
-
+
@@ -1164,7 +1161,7 @@
4
1
2
-
+
@@ -1182,7 +1179,7 @@
4
3
4
-
+
@@ -1210,7 +1207,7 @@
1
2
-
+
@@ -1226,7 +1223,7 @@
3
4
-
+
@@ -1244,7 +1241,7 @@
2
1
2
-
+
@@ -1262,7 +1259,7 @@
4
1
2
-
+
@@ -1280,7 +1277,7 @@
2
2
3
-
+
@@ -1298,7 +1295,7 @@
4
2
3
-
+
@@ -1311,7 +1308,7 @@
GTK_FILL
-
+
@@ -1326,7 +1323,7 @@
1
2
GTK_FILL
-
+
@@ -1341,7 +1338,7 @@
2
3
GTK_FILL
-
+
@@ -1357,7 +1354,7 @@
2
3
GTK_FILL
-
+
@@ -1374,7 +1371,7 @@
1
2
GTK_FILL
-
+
@@ -1391,7 +1388,7 @@
2
3
GTK_FILL
-
+
@@ -1410,7 +1407,7 @@
4
2
3
-
+
@@ -1428,7 +1425,7 @@
2
4
5
-
+
@@ -1441,7 +1438,7 @@
GTK_FILL
-
+
@@ -1456,7 +1453,7 @@
1
2
GTK_FILL
-
+
@@ -1471,7 +1468,7 @@
2
3
GTK_FILL
-
+
@@ -1488,7 +1485,7 @@
1
2
GTK_FILL
-
+
@@ -1503,7 +1500,7 @@
3
4
GTK_FILL
-
+
@@ -1518,7 +1515,7 @@
4
5
GTK_FILL
-
+
diff --git a/src/vcard.py b/src/vcard.py
index f1a4515b4..f406e66dd 100644
--- a/src/vcard.py
+++ b/src/vcard.py
@@ -173,6 +173,9 @@ class VcardWindow:
if event.keyval == gtk.keysyms.Escape:
self.window.destroy()
+ def on_information_notebook_switch_page(self, widget, page, page_num):
+ gobject.idle_add(self.xml.get_object('close_button').grab_focus)
+
def on_PHOTO_eventbox_button_press_event(self, widget, event):
"""
If right-clicked, show popup