summaryrefslogtreecommitdiff
path: root/src/contacts-list-pane.vala
diff options
context:
space:
mode:
authorNiels De Graef <nielsdegraef@gmail.com>2018-01-22 21:38:27 +0100
committerNiels De Graef <nielsdegraef@gmail.com>2018-01-22 21:38:27 +0100
commit608e366266ce62a548399f883256dd6fdf0ed514 (patch)
treecb5055c2674f8217548aaeb0d056b3a947930129 /src/contacts-list-pane.vala
parent97bfa85c12b690009151cd2c21227d50aee8dbe2 (diff)
downloadgnome-contacts-608e366266ce62a548399f883256dd6fdf0ed514.tar.gz
Don't use anonymous lambdas if not necessary.
This is effectively a function call less, *and* it's easier to debug in a stracktrace if necessary.
Diffstat (limited to 'src/contacts-list-pane.vala')
-rw-r--r--src/contacts-list-pane.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/contacts-list-pane.vala b/src/contacts-list-pane.vala
index 710cdd0..2c60e15 100644
--- a/src/contacts-list-pane.vala
+++ b/src/contacts-list-pane.vala
@@ -50,7 +50,7 @@ public class Contacts.ListPane : Frame {
public ListPane (Store contacts_store) {
this.store = contacts_store;
- this.notify["state"].connect ( () => { on_ui_state_changed(); });
+ this.notify["state"].connect (on_ui_state_changed);
// Build the filter query
string[] filtered_fields = Query.MATCH_FIELDS_NAMES;
@@ -75,7 +75,7 @@ public class Contacts.ListPane : Frame {
});
}
- private void on_ui_state_changed () {
+ private void on_ui_state_changed (Object obj, ParamSpec pspec) {
// Disable when editing a contact. (Not using `this.sensitive` to allow scrolling)
this.filter_entry.sensitive
= this.contacts_list.sensitive