diff options
author | Adrien Plazas <kekun.plazas@laposte.net> | 2018-08-23 17:46:09 +0200 |
---|---|---|
committer | Adrien Plazas <kekun.plazas@laposte.net> | 2018-09-05 10:19:52 +0200 |
commit | e7283e276ee6ef086f96ebb693837167d3f20c04 (patch) | |
tree | 53dc93e0a2cebd4d012ac103ca1809c1853378aa /src | |
parent | d5f7f9e8502c303edcfe68a554af423fcda8fc97 (diff) | |
download | gnome-contacts-e7283e276ee6ef086f96ebb693837167d3f20c04.tar.gz |
AccountsList: Drop useless Online Accounts Settings button
This isn't needed anymore as we just added a button in the hamburger
menu to do the same thing.
Diffstat (limited to 'src')
-rw-r--r-- | src/contacts-accounts-list.vala | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/contacts-accounts-list.vala b/src/contacts-accounts-list.vala index 8ce7e4d..0629c0a 100644 --- a/src/contacts-accounts-list.vala +++ b/src/contacts-accounts-list.vala @@ -151,31 +151,4 @@ public class Contacts.AccountsList : Box { accounts_view.show_all (); } - - [GtkCallback] - private void on_goa_button_clicked () { - try { - var proxy = new DBusProxy.for_bus_sync (BusType.SESSION, - DBusProxyFlags.NONE, - null, - "org.gnome.ControlCenter", - "/org/gnome/ControlCenter", - "org.gtk.Actions"); - - var builder = new VariantBuilder (new VariantType ("av") ); - builder.add ("v", new Variant.string ("")); - var param = new Variant.tuple ({ - new Variant.string ("launch-panel"), - new Variant.array (new VariantType ("v"), { - new Variant ("v", new Variant ("(sav)", "online-accounts", builder)) - }), - new Variant.array (new VariantType ("{sv}"), {}) - }); - - proxy.call_sync ("Activate", param, DBusCallFlags.NONE, -1); - } catch (Error e) { - // TODO: Show error dialog - warning ("Couldn't open online-accounts: %s", e.message); - } - } } |