summaryrefslogtreecommitdiff
path: root/pidgin/resources/Accounts/manager.ui
blob: 434a22569212d8feb743016125774a2b8733223d (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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.38.2 

Pidgin - Internet Messenger
Copyright (C) Pidgin Developers <devel@pidgin.im>

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, see <https://www.gnu.org/licenses/>.

-->
<interface>
  <requires lib="gtk" version="4.0"/>
  <!-- interface-license-type gplv2 -->
  <!-- interface-name Pidgin -->
  <!-- interface-description Internet Messenger -->
  <!-- interface-copyright Pidgin Developers <devel@pidgin.im> -->
  <template class="PidginAccountManager" parent="GtkDialog">
    <property name="title" translatable="1">Accounts</property>
    <property name="default-width">640</property>
    <property name="default-height">480</property>
    <signal name="response" handler="pidgin_account_manager_response_cb" swapped="no"/>
    <child internal-child="content_area">
      <object class="GtkBox">
        <child>
          <object class="GtkStack" id="stack">
            <property name="transition-type">slide-left-right</property>
            <property name="vhomogeneous">0</property>
            <child>
              <object class="GtkStackPage">
                <property name="name">overview</property>
                <property name="child">
                  <object class="GtkScrolledWindow">
                    <property name="hscrollbar_policy">never</property>
                    <property name="vexpand">1</property>
                    <property name="child">
                      <object class="AdwClamp">
                        <property name="margin-bottom">24</property>
                        <property name="margin-end">24</property>
                        <property name="margin-start">24</property>
                        <property name="margin-top">24</property>
                        <property name="orientation">horizontal</property>
                        <child>
                          <object class="GtkListBox" id="list_box">
                            <property name="css-classes">boxed-list
        rich-list</property>
                            <property name="selection-mode">none</property>
                            <property name="show-separators">1</property>
                            <signal name="row-activated" handler="pidgin_account_manager_row_activated_cb" swapped="no"/>
                            <child type="placeholder">
                              <object class="GtkBox">
                                <property name="margin-bottom">48</property>
                                <property name="margin-top">48</property>
                                <property name="orientation">vertical</property>
                                <property name="spacing">12</property>
                                <property name="valign">center</property>
                                <property name="vexpand">1</property>
                                <child>
                                  <object class="GtkImage">
                                    <property name="css-classes">dim-label</property>
                                    <property name="icon-name">view-list-symbolic</property>
                                    <property name="pixel-size">128</property>
                                  </object>
                                </child>
                                <child>
                                  <object class="GtkLabel">
                                    <property name="css-classes">title-1</property>
                                    <property name="label" translatable="1">No Accounts</property>
                                  </object>
                                </child>
                                <child>
                                  <object class="GtkButton">
                                    <property name="css-classes">pill
suggested-action</property>
                                    <property name="halign">center</property>
                                    <signal name="clicked" handler="pidgin_account_manager_create_account"/>
                                    <property name="child">
                                      <object class="AdwButtonContent">
                                        <property name="icon-name">list-add-symbolic</property>
                                        <property name="label" translatable="1">_Add…</property>
                                        <property name="use-underline">1</property>
                                      </object>
                                    </property>
                                  </object>
                                </child>
                              </object>
                            </child>
                          </object>
                        </child>
                      </object>
                    </property>
                  </object>
                </property>
              </object>
            </child>
            <child>
              <object class="GtkStackPage">
                <property name="name">editor-page</property>
                <property name="child">
                  <object class="GtkBox">
                    <property name="margin-bottom">24</property>
                    <property name="margin-end">24</property>
                    <property name="margin-start">24</property>
                    <property name="margin-top">24</property>
                    <property name="orientation">horizontal</property>
                    <property name="spacing">12</property>
                    <child>
                      <object class="GtkBox">
                        <property name="orientation">vertical</property>
                        <child>
                          <object class="GtkButton">
                            <property name="css-classes">flat</property>
                            <property name="halign">start</property>
                            <property name="valign">start</property>
                            <property name="icon-name">go-previous-symbolic</property>
                            <property name="tooltip-text" translatable="1">Back</property>
                            <signal name="clicked" handler="pidgin_account_manager_back_clicked_cb"/>
                          </object>
                        </child>
                        <child>
                          <object class="GtkButton">
                            <property name="css-classes">flat</property>
                            <property name="halign">start</property>
                            <property name="valign">start</property>
                            <property name="icon-name">document-save-symbolic</property>
                            <property name="tooltip-text" translatable="1">Save</property>
                            <binding name="sensitive">
                              <lookup name="valid">editor</lookup>
                            </binding>
                            <signal name="clicked" handler="pidgin_account_manager_save_clicked_cb"/>
                          </object>
                        </child>
                      </object>
                    </child>
                    <child>
                      <object class="PidginAccountEditor" id="editor"/>
                    </child>
                  </object>
                </property>
              </object>
            </child>
          </object>
        </child>
      </object>
    </child>
    <child type="action">
      <object class="GtkButton" id="add">
        <property name="css-classes">suggested-action</property>
        <property name="focusable">1</property>
        <property name="receives-default">1</property>
        <property name="child">
          <object class="AdwButtonContent">
            <property name="icon-name">list-add-symbolic</property>
            <property name="label" translatable="1">_Add…</property>
            <property name="use-underline">1</property>
          </object>
        </property>
      </object>
    </child>
    <action-widgets>
      <action-widget response="0">add</action-widget>
    </action-widgets>
  </template>
</interface>