diff options
author | Niels De Graef <nielsdegraef@gmail.com> | 2020-06-05 10:54:22 +0200 |
---|---|---|
committer | Niels De Graef <nielsdegraef@gmail.com> | 2020-06-05 10:54:22 +0200 |
commit | a7e54e2f702a1bc8eab1bc99414d7eaba523e66a (patch) | |
tree | 3728a36c5f10040091e345654b1a8e020a1908b6 | |
parent | a35ba77c698f0ab4783cb468ed2243709f4c88cb (diff) | |
download | gnome-contacts-a7e54e2f702a1bc8eab1bc99414d7eaba523e66a.tar.gz |
Remove WIP change-address-book functionality
This shouldn't have been merged in, and is now giving warnings. Let's
remove it for now, and if somebody still needs it, they can use the Git
history for that.
-rw-r--r-- | src/contacts-editor-persona.vala | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/src/contacts-editor-persona.vala b/src/contacts-editor-persona.vala index 0886a57..d3410b8 100644 --- a/src/contacts-editor-persona.vala +++ b/src/contacts-editor-persona.vala @@ -22,9 +22,6 @@ using Folks; * A widget representing a persona in the {@link ContactEditor}. */ public class Contacts.EditorPersona : Gtk.Box { - private const GLib.ActionEntry[] action_entries = { - { "change-addressbook", change_addressbook }, - }; // List of important properties and a list of secoundary properties private const string[] PROPERTIES = { @@ -55,10 +52,6 @@ public class Contacts.EditorPersona : Gtk.Box { this.content.set_header_func (list_box_update_header_func); frame.add (this.content); add (frame); - - SimpleActionGroup actions = new SimpleActionGroup (); - actions.add_action_entries (action_entries, this); - this.insert_action_group ("persona", actions); } private void list_box_update_header_func (Gtk.ListBoxRow row, Gtk.ListBoxRow? before) { @@ -79,8 +72,7 @@ public class Contacts.EditorPersona : Gtk.Box { this.persona = persona; this.aggregator = aggregator; create_label (); - /* TODO: implement the possibility of changing the addressbook of a persona - create_button (); */ + // TODO: implement the possibility of changing the addressbook of a persona // Add most important properites foreach (var property in PROPERTIES) { @@ -160,10 +152,6 @@ public class Contacts.EditorPersona : Gtk.Box { } } - private void change_addressbook () { - /* Not yet implemented */ - } - private void create_label () { string title = ""; FakePersona fake_persona = this.persona as FakePersona; @@ -176,15 +164,4 @@ public class Contacts.EditorPersona : Gtk.Box { Gtk.Label addressbook = new Gtk.Label (title); this.header.pack_start (addressbook, false, false, 0); } - - private void create_button () { - var image = new Gtk.Image.from_icon_name ("emblem-system-symbolic", - Gtk.IconSize.BUTTON); - var button = new Gtk.MenuButton (); - button.set_image (image); - var builder = new Gtk.Builder.from_resource ("/org/gnome/Contacts/ui/contacts-editor-menu.ui"); - var menu = builder.get_object ("editor_menu") as Gtk.Widget; - button.set_popover (menu); - this.header.pack_end (button, false, false, 0); - } } |