[gnome-contacts] AccountsList: Drop useless Online Accounts Settings button



commit e7283e276ee6ef086f96ebb693837167d3f20c04
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Thu Aug 23 17:46:09 2018 +0200

    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.

 data/ui/contacts-accounts-list.ui | 19 -------------------
 src/contacts-accounts-list.vala   | 27 ---------------------------
 2 files changed, 46 deletions(-)
---
diff --git a/data/ui/contacts-accounts-list.ui b/data/ui/contacts-accounts-list.ui
index fa5b02f..2cfa2c3 100644
--- a/data/ui/contacts-accounts-list.ui
+++ b/data/ui/contacts-accounts-list.ui
@@ -22,24 +22,5 @@
         </child>
       </object>
     </child>
-    <child>
-      <object class="GtkButton" id="goa_button">
-        <property name="visible">True</property>
-        <signal name="clicked" handler="on_goa_button_clicked" swapped="no"/>
-        <style>
-          <class name="raised"/>
-        </style>
-        <child>
-          <object class="GtkLabel">
-            <property name="visible">True</property>
-            <property name="label" translatable="yes">Online Accounts Settings</property>
-            <property name="margin_start">6</property>
-            <property name="margin_end">6</property>
-            <property name="margin_top">3</property>
-            <property name="margin_bottom">3</property>
-          </object>
-        </child>
-      </object>
-    </child>
   </template>
 </interface>
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);
-    }
-  }
 }


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