summaryrefslogtreecommitdiff
path: root/data/ui/contacts-contact-editor.ui
blob: 81886f7738a1fbdd86c743cc3a98fcb71f26e496 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <requires lib="gtk+" version="3.20"/>

  <menu id="edit-contact-menu">
    <item>
      <attribute name="action">edit.add-email-addresses</attribute>
      <attribute name="label" translatable="yes">Email address</attribute>
    </item>
    <item>
      <attribute name="action">edit.add-phone-numbers</attribute>
      <attribute name="label" translatable="yes">Phone number</attribute>
    </item>
    <item>
      <attribute name="action">edit.add-urls</attribute>
      <attribute name="label" translatable="yes">Website</attribute>
    </item>
    <item>
      <attribute name="action">edit.add-nickname</attribute>
      <attribute name="label" translatable="yes">Nickname</attribute>
    </item>
    <item>
      <attribute name="action">edit.add-birthday</attribute>
      <attribute name="label" translatable="yes">Birthday</attribute>
    </item>
    <item>
      <attribute name="action">edit.add-postal-addresses</attribute>
      <attribute name="label" translatable="yes">Address</attribute>
    </item>
    <item>
      <attribute name="action">edit.add-notes</attribute>
      <attribute name="label" translatable="yes">Notes</attribute>
    </item>
  </menu>

  <template class="ContactsEditorContactEditor" parent="GtkGrid">
    <property name="visible">True</property>
    <property name="orientation">vertical</property>
    <child>
      <object class="GtkScrolledWindow" id="main_sw">
        <property name="visible">True</property>
        <property name="hexpand">True</property>
        <property name="vexpand">True</property>
        <property name="shadow_type">none</property>
        <property name="hscrollbar_policy">never</property>
        <property name="vscrollbar_policy">automatic</property>
        <child>
          <object class="GtkGrid" id="container_grid">
            <property name="visible">True</property>
            <property name="margin">36</property>
            <property name="margin_bottom">24</property>
            <property name="row_spacing">12</property>
            <property name="column_spacing">12</property>
            <property name="hexpand">True</property>
            <property name="vexpand">True</property>
          </object>
        </child>
      </object>
    </child>
    <child>
      <object class="GtkActionBar">
        <property name="visible">True</property>
        <child>
          <object class="GtkMenuButton" id="add_detail_button">
            <property name="visible">True</property>
            <property name="menu_model">edit-contact-menu</property>
            <property name="use_popover">True</property>
            <property name="direction">up</property>
            <child>
              <object class="GtkBox">
                <property name="visible">True</property>
                <property name="spacing">6</property>
                <property name="orientation">horizontal</property>
                <child>
                  <object class="GtkLabel">
                    <property name="visible">True</property>
                    <property name="label" translatable="yes">New Detail</property>
                  </object>
                </child>
                <child>
                  <object class="GtkImage">
                    <property name="visible">True</property>
                    <property name="can_focus">False</property>
                    <property name="pixel_size">16</property>
                    <property name="icon_name">go-down-symbolic</property>
                  </object>
                </child>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="GtkButton" id="linked_button">
            <property name="visible">False</property>
            <property name="label" translatable="yes">Linked Accounts</property>
          </object>
        </child>
        <child>
          <object class="GtkButton" id="remove_button">
            <property name="visible">False</property>
            <property name="label" translatable="yes">Remove Contact</property>
            <style>
              <class name="destructive-action"/>
            </style>
          </object>
          <packing>
            <property name="pack_type">end</property>
          </packing>
        </child>
      </object>
    </child>
  </template>
</interface>