summaryrefslogtreecommitdiff
path: root/data/ui/contacts-contact-editor.ui
blob: 57a862f78d89b6b1be3d46b4a2a0023f442b76fd (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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<?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.home</attribute>
      <attribute name="label" translatable="yes">Home email</attribute>
    </item>
    <item>
      <attribute name="action">edit.add.email-addresses.work</attribute>
      <attribute name="label" translatable="yes">Work email</attribute>
    </item>
    <item>
      <attribute name="action">edit.add.phone-numbers.cell</attribute>
      <attribute name="label" translatable="yes">Mobile phone</attribute>
    </item>
    <item>
      <attribute name="action">edit.add.phone-numbers.home</attribute>
      <attribute name="label" translatable="yes">Home phone</attribute>
    </item>
    <item>
      <attribute name="action">edit.add.phone-numbers.work</attribute>
      <attribute name="label" translatable="yes">Work phone</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.home</attribute>
      <attribute name="label" translatable="yes">Home address</attribute>
    </item>
    <item>
      <attribute name="action">edit.add.postal-addresses.work</attribute>
      <attribute name="label" translatable="yes">Work address</attribute>
    </item>
    <item>
      <attribute name="action">edit.add.notes</attribute>
      <attribute name="label" translatable="yes">Notes</attribute>
    </item>
  </menu>

  <template class="ContactsContactEditor" 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>
            <signal name="size-allocate" handler="on_container_grid_size_allocate" after="true" />
          </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">True</property>
            <property name="label" translatable="yes">Linked Accounts</property>
          </object>
        </child>
        <child>
          <object class="GtkButton" id="remove_button">
            <property name="visible">True</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>