[gnome-contacts] Contacts.App: simplify contacts showing path
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] Contacts.App: simplify contacts showing path
- Date: Fri, 16 Aug 2013 19:47:43 +0000 (UTC)
commit 3fdc7abedc7decf85a5481bcccdc74b91cb6b6f4
Author: Erick Pérez Castellanos <erick red gmail com>
Date: Thu Aug 15 21:28:56 2013 -0400
Contacts.App: simplify contacts showing path
src/contacts-app.vala | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/contacts-app.vala b/src/contacts-app.vala
index 842155e..c9c248e 100644
--- a/src/contacts-app.vala
+++ b/src/contacts-app.vala
@@ -91,8 +91,7 @@ public class Contacts.App : Gtk.Application {
return c.individual.id == id;
});
if (contact != null) {
- list_pane.select_contact (contact);
- contacts_pane.show_contact (contact);
+ show_contact (contact);
} else {
var dialog = new MessageDialog (App.app.window, DialogFlags.DESTROY_WITH_PARENT, MessageType.ERROR,
ButtonsType.CLOSE,
_("No contact with id %s found"), id);
@@ -187,8 +186,7 @@ public class Contacts.App : Gtk.Application {
return c.has_email (email_address);
});
if (contact != null) {
- list_pane.select_contact (contact);
- contacts_pane.show_contact (contact);
+ show_contact (contact);
} else {
var dialog = new MessageDialog (App.app.window, DialogFlags.DESTROY_WITH_PARENT, MessageType.ERROR,
ButtonsType.CLOSE,
_("No contact with email address %s found"), email_address);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]