Skip to content
Snippets Groups Projects
Commit 7e432b38 authored by Dicson's avatar Dicson
Browse files

Set focus on close button when switch vcard page.

parent a64973d2
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment