[gnome-contacts/wip/nielsdg/remove-do] Don't use "do" as identifier
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts/wip/nielsdg/remove-do] Don't use "do" as identifier
- Date: Sun, 29 Nov 2020 17:13:55 +0000 (UTC)
commit b432d97d4f7e3eb5ce6de42a45ad5405522b8763
Author: Niels De Graef <nielsdegraef gmail com>
Date: Sun Nov 29 18:12:14 2020 +0100
Don't use "do" as identifier
`do` is a keyword, so it confuses some tooling.
src/contacts-contact-pane.vala | 2 +-
src/contacts-linking.vala | 4 ++--
src/contacts-window.vala | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/contacts-contact-pane.vala b/src/contacts-contact-pane.vala
index 44db1689..7b3a6e6e 100644
--- a/src/contacts-contact-pane.vala
+++ b/src/contacts-contact-pane.vala
@@ -78,7 +78,7 @@ public class Contacts.ContactPane : ScrolledWindow {
var to_link = new LinkedList<Individual> ();
to_link.add (this.individual);
to_link.add (i);
- operation.do.begin (to_link);
+ operation.execute.begin (to_link);
this.contacts_linked (null, linked_contact, operation);
remove_suggestion_grid ();
});
diff --git a/src/contacts-linking.vala b/src/contacts-linking.vala
index 4917a994..4b8f7fc4 100644
--- a/src/contacts-linking.vala
+++ b/src/contacts-linking.vala
@@ -30,7 +30,7 @@ namespace Contacts {
}
// Link individuals
- public async void do (LinkedList<Individual> individuals) {
+ public async void execute (LinkedList<Individual> individuals) {
var personas_to_link = new HashSet<Persona> ();
foreach (var i in individuals) {
var saved_personas = new HashSet<Persona> ();
@@ -81,7 +81,7 @@ namespace Contacts {
}
/* Remove a personas from individual */
- public async void do (Individual main) {
+ public async void execute (Individual main) {
foreach (var persona in main.personas)
personas.add (persona);
diff --git a/src/contacts-window.vala b/src/contacts-window.vala
index 274baef1..2386eeac 100644
--- a/src/contacts-window.vala
+++ b/src/contacts-window.vala
@@ -305,7 +305,7 @@ public class Contacts.Window : Hdy.ApplicationWindow {
this.state = UiState.NORMAL;
var operation = new UnLinkOperation (this.store);
- operation.do.begin (individual);
+ operation.execute.begin (individual);
var b = new Gtk.Button.with_mnemonic (_("_Undo"));
var notification = new InAppNotification (_("Contacts unlinked"), b);
@@ -491,7 +491,7 @@ public class Contacts.Window : Hdy.ApplicationWindow {
this.state = UiState.NORMAL;
var operation = new LinkOperation (this.store);
- operation.do.begin (contact_list);
+ operation.execute.begin (contact_list);
string msg = ngettext ("%d contacts linked",
"%d contacts linked",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]