[gnome-contacts] ListPane: select the row of the current contact
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] ListPane: select the row of the current contact
- Date: Tue, 10 Jun 2014 16:48:04 +0000 (UTC)
commit d6d04a469cddf975edb239dd5cf8d0133a4bdbd0
Author: Erick Pérez Castellanos <erick red gmail com>
Date: Mon Jun 9 22:28:38 2014 -0400
ListPane: select the row of the current contact
src/contacts-window.vala | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/contacts-window.vala b/src/contacts-window.vala
index df88990..7dfc972 100644
--- a/src/contacts-window.vala
+++ b/src/contacts-window.vala
@@ -206,6 +206,10 @@ public class Contacts.Window : Gtk.ApplicationWindow {
loading_box.destroy ();
content_grid.attach (list_pane, 0, 0, 1, 1);
+
+ if (contact_pane.contact != null)
+ list_pane.select_contact (contact_pane.contact);
+
list_pane.show ();
}
@@ -275,6 +279,8 @@ public class Contacts.Window : Gtk.ApplicationWindow {
}
contact_pane.show_contact (c, false);
+ if (list_pane != null)
+ list_pane.select_contact (c);
/* clearing right_toolbar */
if (c != null)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]