~ci-train-bot/unity-control-center/unity-control-center-ubuntu-disco-3448.1

« back to all changes in this revision

Viewing changes to panels/online-accounts/online-accounts.ui

  • Committer: Bileto Bot
  • Author(s): Khurshid Alam
  • Date: 2018-02-16 13:07:36 UTC
  • mfrom: (12909.2.5 unity-control-center)
  • Revision ID: ci-train-bot@canonical.com-20180216130736-a6ukmihhrrn9nf5k
Import gnome online-accounts panel into unity-control-center
Reference: https://bugzilla.gnome.org/show_bug.cgi?id=774222
Reference: https://github.com/linuxmint/cinnamon-control-center/pull/181 (LP: #1747897)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8"?>
 
2
<interface>
 
3
  <!-- interface-requires gtk+ 3.0 -->
 
4
  <template class="CcGoaPanel" parent="CcPanel">
 
5
    <property name="visible">True</property>
 
6
    <property name="can_focus">False</property>
 
7
    <child>
 
8
      <object class="GtkOverlay">
 
9
        <property name="visible">True</property>
 
10
        <property name="can_focus">False</property>
 
11
        <child type="overlay">
 
12
          <object class="GtkRevealer" id="notification_revealer">
 
13
            <property name="visible">True</property>
 
14
            <property name="can_focus">False</property>
 
15
            <property name="halign">center</property>
 
16
            <property name="valign">start</property>
 
17
            <property name="transition_type">slide-down</property>
 
18
            <child>
 
19
              <object class="GtkFrame">
 
20
                <property name="visible">True</property>
 
21
                <property name="can_focus">False</property>
 
22
                <child>
 
23
                  <object class="GtkBox">
 
24
                    <property name="visible">True</property>
 
25
                    <property name="can_focus">False</property>
 
26
                    <property name="spacing">12</property>
 
27
                    <child>
 
28
                      <object class="GtkLabel" id="notification_label">
 
29
                        <property name="visible">True</property>
 
30
                        <property name="can_focus">False</property>
 
31
                        <property name="use_markup">True</property>
 
32
                      </object>
 
33
                    </child>
 
34
                    <child>
 
35
                      <object class="GtkButton" id="undo_button">
 
36
                        <property name="visible">True</property>
 
37
                        <property name="can_focus">True</property>
 
38
                        <property name="label" translatable="yes">Undo</property>
 
39
                        <signal name="clicked" handler="on_undo_button_clicked" object="CcGoaPanel" swapped="no" />
 
40
                      </object>
 
41
                    </child>
 
42
                    <child>
 
43
                      <object class="GtkButton">
 
44
                        <property name="visible">True</property>
 
45
                        <property name="can_focus">True</property>
 
46
                        <property name="relief">none</property>
 
47
                        <signal name="clicked" handler="on_notification_closed" object="CcGoaPanel" swapped="no" />
 
48
                        <child>
 
49
                          <object class="GtkImage">
 
50
                            <property name="visible">True</property>
 
51
                            <property name="can_focus">False</property>
 
52
                            <property name="icon-name">window-close-symbolic</property>
 
53
                          </object>
 
54
                        </child>
 
55
                      </object>
 
56
                    </child>
 
57
                  </object>
 
58
                </child>
 
59
                <style>
 
60
                  <class name="app-notification" />
 
61
                </style>
 
62
              </object>
 
63
            </child>
 
64
          </object>
 
65
        </child>
 
66
        <child>
 
67
          <object class="GtkScrolledWindow">
 
68
            <property name="visible">True</property>
 
69
            <property name="can_focus">True</property>
 
70
            <property name="hscrollbar_policy">never</property>
 
71
            <property name="min_content_height">500</property>
 
72
            <child>
 
73
              <object class="GtkGrid">
 
74
                <property name="visible">True</property>
 
75
                <property name="can_focus">False</property>
 
76
                <property name="row-spacing">18</property>
 
77
                <property name="column-spacing">18</property>
 
78
                <property name="orientation">vertical</property>
 
79
                <property name="margin_start">32</property>
 
80
                <property name="margin_end">32</property>
 
81
                <property name="margin_top">32</property>
 
82
                <property name="margin_bottom">22</property>
 
83
                <property name="hexpand">True</property>
 
84
                <property name="width-request">300</property>
 
85
 
 
86
                <!--
 
87
                  Stub boxes to pull the widgets to the middle, and yet allow them to
 
88
                  grow and cover a third of the available space
 
89
                -->
 
90
                <child>
 
91
                  <object class="GtkBox">
 
92
                    <property name="visible">True</property>
 
93
                    <property name="hexpand">True</property>
 
94
                  </object>
 
95
                  <packing>
 
96
                    <property name="top-attach">0</property>
 
97
                    <property name="left-attach">0</property>
 
98
                  </packing>
 
99
                </child>
 
100
 
 
101
                <child>
 
102
                  <object class="GtkBox">
 
103
                    <property name="visible">True</property>
 
104
                    <property name="hexpand">True</property>
 
105
                  </object>
 
106
                  <packing>
 
107
                    <property name="top-attach">0</property>
 
108
                    <property name="left-attach">2</property>
 
109
                  </packing>
 
110
                </child>
 
111
 
 
112
                <child>
 
113
                  <object class="GtkBox">
 
114
                    <property name="visible">True</property>
 
115
                    <property name="can_focus">False</property>
 
116
                    <property name="spacing">12</property>
 
117
                    <property name="orientation">vertical</property>
 
118
                    <property name="hexpand">True</property>
 
119
                    <property name="width-request">300</property>
 
120
                    <child>
 
121
                      <object class="GtkLabel" id="offline_label">
 
122
                        <property name="visible">True</property>
 
123
                        <property name="can_focus">False</property>
 
124
                        <property name="wrap">True</property>
 
125
                        <property name="label" translatable="yes">No internet connection — connect to set up new online accounts</property>
 
126
                      </object>
 
127
                    </child>
 
128
                    <child>
 
129
                      <object class="GtkFrame" id="accounts_frame">
 
130
                        <property name="can_focus">False</property>
 
131
                        <child>
 
132
                          <object class="GtkListBox" id="accounts_listbox">
 
133
                            <property name="visible">True</property>
 
134
                            <property name="can_focus">True</property>
 
135
                            <property name="selection_mode">none</property>
 
136
                            <signal name="row-activated" handler="on_listbox_row_activated" object="CcGoaPanel" swapped="yes" />
 
137
                          </object>
 
138
                        </child>
 
139
                      </object>
 
140
                    </child>
 
141
                    <child>
 
142
                      <object class="GtkLabel">
 
143
                        <property name="visible">True</property>
 
144
                        <property name="can_focus">False</property>
 
145
                        <property name="margin-top">24</property>
 
146
                        <property name="xalign">0</property>
 
147
                        <property name="label" translatable="yes">Add an account</property>
 
148
                        <attributes>
 
149
                          <attribute name="weight" value="bold" />
 
150
                        </attributes>
 
151
                      </object>
 
152
                    </child>
 
153
                    <child>
 
154
                      <object class="GtkFrame">
 
155
                        <property name="visible">True</property>
 
156
                        <property name="can_focus">False</property>
 
157
                        <child>
 
158
                          <object class="GtkListBox" id="providers_listbox">
 
159
                            <property name="visible">True</property>
 
160
                            <property name="can_focus">True</property>
 
161
                            <property name="selection_mode">none</property>
 
162
                            <signal name="row-activated" handler="on_provider_row_activated" object="CcGoaPanel" swapped="yes" />
 
163
                            <child>
 
164
                              <object class="GtkListBoxRow" id="more_providers_row">
 
165
                                <property name="visible">True</property>
 
166
                                <property name="can_focus">True</property>
 
167
                                <child>
 
168
                                  <object class="GtkImage">
 
169
                                    <property name="visible">True</property>
 
170
                                    <property name="can_focus">False</property>
 
171
                                    <property name="hexpand">True</property>
 
172
                                    <property name="margin">22</property>
 
173
                                    <property name="icon-name">view-more-symbolic</property>
 
174
                                  </object>
 
175
                                </child>
 
176
                              </object>
 
177
                            </child>
 
178
                          </object>
 
179
                        </child>
 
180
                      </object>
 
181
                    </child>
 
182
                  </object>
 
183
                  <packing>
 
184
                    <property name="top-attach">0</property>
 
185
                    <property name="left-attach">1</property>
 
186
                  </packing>
 
187
                </child>
 
188
              </object>
 
189
            </child>
 
190
          </object>
 
191
        </child>
 
192
      </object>
 
193
    </child>
 
194
  </template>
 
195
  <object class="GtkDialog" id="edit_account_dialog">
 
196
    <property name="can_focus">False</property>
 
197
    <property name="type_hint">dialog</property>
 
198
    <property name="use_header_bar">1</property>
 
199
    <property name="resizable">True</property>
 
200
    <property name="modal">True</property>
 
201
    <signal name="delete-event" handler="on_edit_account_dialog_delete_event" object="CcGoaPanel" swapped="yes" />
 
202
    <child type="titlebar">
 
203
      <object class="GtkHeaderBar" id="edit_account_headerbar">
 
204
        <property name="visible">True</property>
 
205
        <property name="can_focus">False</property>
 
206
        <property name="show_close_button">False</property>
 
207
      </object>
 
208
    </child>
 
209
    <child internal-child="vbox">
 
210
      <object class="GtkBox">
 
211
        <property name="can_focus">False</property>
 
212
        <property name="orientation">vertical</property>
 
213
        <property name="border_width">0</property>
 
214
        <child>
 
215
          <object class="GtkStack" id="stack">
 
216
            <property name="visible">True</property>
 
217
            <property name="can_focus">False</property>
 
218
            <property name="transition_type">crossfade</property>
 
219
            <property name="homogeneous">False</property>
 
220
            <child>
 
221
              <object class="GtkBox" id="new_account_vbox">
 
222
                <property name="visible">True</property>
 
223
                <property name="can_focus">False</property>
 
224
              </object>
 
225
              <packing>
 
226
                <property name="name">new-account</property>
 
227
              </packing>
 
228
            </child>
 
229
            <child>
 
230
              <object class="GtkBox">
 
231
                <property name="visible">True</property>
 
232
                <property name="can_focus">False</property>
 
233
                <property name="margin">24</property>
 
234
                <property name="spacing">24</property>
 
235
                <property name="orientation">vertical</property>
 
236
                <child>
 
237
                  <object class="GtkBox" id="accounts_vbox">
 
238
                    <property name="visible">True</property>
 
239
                    <property name="can_focus">False</property>
 
240
                    <property name="vexpand">True</property>
 
241
                    <property name="orientation">vertical</property>
 
242
                    <property name="margin-start">18</property>
 
243
                    <property name="margin-end">18</property>
 
244
                    <property name="spacing">18</property>
 
245
                  </object>
 
246
                </child>
 
247
                <child>
 
248
                  <object class="GtkButton" id="remove_account_button">
 
249
                    <property name="visible">True</property>
 
250
                    <property name="can_focus">True</property>
 
251
                    <property name="valign">end</property>
 
252
                    <property name="halign">end</property>
 
253
                    <property name="label" translatable="yes">Remove Account</property>
 
254
                    <signal name="clicked" handler="on_remove_button_clicked" object="CcGoaPanel" swapped="yes" />
 
255
                    <style>
 
256
                      <class name="destructive-action" />
 
257
                    </style>
 
258
                  </object>
 
259
                </child>
 
260
              </object>
 
261
              <packing>
 
262
                <property name="name">editor</property>
 
263
              </packing>
 
264
            </child>
 
265
          </object>
 
266
        </child>
 
267
      </object>
 
268
    </child>
 
269
  </object>
 
270
</interface>