[gnome-contacts/new-design] When switching to custom type mode, ensure we don't loose focus
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts/new-design] When switching to custom type mode, ensure we don't loose focus
- Date: Thu, 15 Dec 2011 20:55:02 +0000 (UTC)
commit 195b4b5af24f592e58f1b9e003848992d8d87238
Author: Alexander Larsson <alexl redhat com>
Date: Thu Dec 15 16:40:40 2011 +0100
When switching to custom type mode, ensure we don't loose focus
Show and grab focus on the new widget before hiding the old focused widget.
src/contacts-types.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/contacts-types.vala b/src/contacts-types.vala
index 5ce8d75..9915b05 100644
--- a/src/contacts-types.vala
+++ b/src/contacts-types.vala
@@ -425,9 +425,9 @@ public class Contacts.TypeCombo : Grid {
if (combo.get_active_iter (out iter)) {
if (type_set.is_custom (iter)) {
custom_mode = true;
- combo.hide ();
entry.show ();
entry.grab_focus ();
+ combo.hide ();
} else {
last_active = iter;
this.changed ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]