[gnome-contacts] Remove unnecessary uses of App singleton



commit 7a6716023279ebae5b3e2a90916a43dee37b0fab
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Tue Aug 22 10:39:41 2017 +0200

    Remove unnecessary uses of App singleton

 src/contacts-app.vala |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/contacts-app.vala b/src/contacts-app.vala
index fb72d27..7ef41d2 100644
--- a/src/contacts-app.vala
+++ b/src/contacts-app.vala
@@ -50,7 +50,7 @@ public class Contacts.App : Gtk.Application {
     if (contact != null) {
       show_contact (contact);
     } else {
-      var dialog = new MessageDialog (App.app.window, DialogFlags.DESTROY_WITH_PARENT, MessageType.ERROR, 
ButtonsType.CLOSE,
+      var dialog = new MessageDialog (this.window, DialogFlags.DESTROY_WITH_PARENT, MessageType.ERROR, 
ButtonsType.CLOSE,
                                       _("No contact with id %s found"), id);
       dialog.set_title(_("Contact not found"));
       dialog.show ();
@@ -150,7 +150,7 @@ public class Contacts.App : Gtk.Application {
     if (contact != null) {
       show_contact (contact);
     } else {
-      var dialog = new MessageDialog (App.app.window, DialogFlags.DESTROY_WITH_PARENT, MessageType.ERROR, 
ButtonsType.CLOSE,
+      var dialog = new MessageDialog (this.window, DialogFlags.DESTROY_WITH_PARENT, MessageType.ERROR, 
ButtonsType.CLOSE,
                                       _("No contact with email address %s found"), email_address);
       dialog.set_title(_("Contact not found"));
       dialog.show ();
@@ -327,11 +327,11 @@ public class Contacts.App : Gtk.Application {
     activate ();
 
     if (individual_id != null)
-      app.show_individual.begin (individual_id);
+      show_individual.begin (individual_id);
     if (email_address != null)
-      app.show_by_email.begin (email_address);
+      show_by_email.begin (email_address);
     if (search_terms != null)
-      app.show_search (search_terms);
+      show_search (search_terms);
 
     return 0;
   }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]