diff options
author | Niels De Graef <nielsdegraef@gmail.com> | 2018-01-22 21:38:27 +0100 |
---|---|---|
committer | Niels De Graef <nielsdegraef@gmail.com> | 2018-01-22 21:38:27 +0100 |
commit | 608e366266ce62a548399f883256dd6fdf0ed514 (patch) | |
tree | cb5055c2674f8217548aaeb0d056b3a947930129 /src/contacts-window.vala | |
parent | 97bfa85c12b690009151cd2c21227d50aee8dbe2 (diff) | |
download | gnome-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-window.vala')
-rw-r--r-- | src/contacts-window.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/contacts-window.vala b/src/contacts-window.vala index a2f027f..1b25885 100644 --- a/src/contacts-window.vala +++ b/src/contacts-window.vala @@ -66,7 +66,7 @@ public class Contacts.Window : Gtk.ApplicationWindow { store: contacts_store ); - this.notify["state"].connect ( () => { on_ui_state_changed(); }); + this.notify["state"].connect (on_ui_state_changed); create_contact_pane (); set_headerbar_layout (); @@ -114,7 +114,7 @@ public class Contacts.Window : Gtk.ApplicationWindow { list_pane.show (); } - private void on_ui_state_changed () { + private void on_ui_state_changed (Object obj, ParamSpec pspec) { // UI when we're not editing of selecting stuff this.add_button.visible = this.right_header.show_close_button |