[gnome-contacts] Grab focus on the name entry when creating a new user
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] Grab focus on the name entry when creating a new user
- Date: Fri, 1 Jul 2011 13:13:04 +0000 (UTC)
commit 92d5e5050071fcf87bed0c54298f26d09736fde2
Author: Alexander Larsson <alexl redhat com>
Date: Fri Jul 1 15:12:44 2011 +0200
Grab focus on the name entry when creating a new user
src/contacts-contact-pane.vala | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/contacts-contact-pane.vala b/src/contacts-contact-pane.vala
index 6bd32df..97de6d3 100644
--- a/src/contacts-contact-pane.vala
+++ b/src/contacts-contact-pane.vala
@@ -741,6 +741,8 @@ public class Contacts.ContactPane : EventBox {
e.set_halign (Align.START);
e.set_valign (Align.START);
g.attach (e, 0, 0, 1, 1);
+ if (new_contact)
+ e.grab_focus ();
e.focus_out_event.connect ( (ev) => {
name = e.get_text ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]