diff options
author | TheJackiMonster <thejackimonster@gmail.com> | 2021-10-27 01:04:48 +0200 |
---|---|---|
committer | TheJackiMonster <thejackimonster@gmail.com> | 2021-10-27 01:04:48 +0200 |
commit | df4110a471c485a378faa695376956860b8fea1e (patch) | |
tree | 61c2dc48fc80959440d145e0b4c0d420cb207e48 | |
parent | 7d2fbbeea808ae7dad7b403fc17244d1c07cb2de (diff) | |
download | messenger-gtk-df4110a471c485a378faa695376956860b8fea1e.tar.gz messenger-gtk-df4110a471c485a378faa695376956860b8fea1e.zip |
Added basic code to startup ui file and handle first interactions
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
-rw-r--r-- | resources/css/style.css | 5 | ||||
-rw-r--r-- | resources/ui/messenger.ui | 1483 | ||||
-rw-r--r-- | src/messenger_gtk.c | 103 |
3 files changed, 844 insertions, 747 deletions
diff --git a/resources/css/style.css b/resources/css/style.css new file mode 100644 index 0000000..f46cb9d --- /dev/null +++ b/resources/css/style.css | |||
@@ -0,0 +1,5 @@ | |||
1 | |||
2 | .flap-background { | ||
3 | background-color: @theme_bg_color; | ||
4 | } | ||
5 | |||
diff --git a/resources/ui/messenger.ui b/resources/ui/messenger.ui index 455b444..bf20675 100644 --- a/resources/ui/messenger.ui +++ b/resources/ui/messenger.ui | |||
@@ -22,74 +22,185 @@ Author: Tobias Frisch | |||
22 | --> | 22 | --> |
23 | <interface> | 23 | <interface> |
24 | <requires lib="gtk+" version="3.24"/> | 24 | <requires lib="gtk+" version="3.24"/> |
25 | <requires lib="libhandy" version="0.0"/> | 25 | <requires lib="libhandy" version="1.2"/> |
26 | <object class="HdyApplicationWindow"> | 26 | <object class="GtkSizeGroup"> |
27 | <widgets> | ||
28 | <widget name="new-group-label"/> | ||
29 | <widget name="new-platform-label"/> | ||
30 | <widget name="contacts-label"/> | ||
31 | <widget name="calls-label"/> | ||
32 | <widget name="settings-label"/> | ||
33 | <widget name="night-mode-label"/> | ||
34 | </widgets> | ||
35 | </object> | ||
36 | <object class="GtkApplicationWindow" id="main_window"> | ||
27 | <property name="can-focus">False</property> | 37 | <property name="can-focus">False</property> |
28 | <child> | 38 | <child> |
29 | <object class="GtkBox"> | 39 | <object class="HdyLeaflet"> |
40 | <property name="height-request">600</property> | ||
30 | <property name="visible">True</property> | 41 | <property name="visible">True</property> |
31 | <property name="can-focus">False</property> | 42 | <property name="can-focus">False</property> |
32 | <property name="orientation">vertical</property> | 43 | <property name="interpolate-size">True</property> |
33 | <child> | 44 | <child> |
34 | <object class="HdyTitleBar"> | 45 | <object class="HdyFlap" id="flap_user_details"> |
35 | <property name="visible">True</property> | 46 | <property name="visible">True</property> |
36 | <property name="can-focus">False</property> | 47 | <property name="can-focus">False</property> |
37 | <child> | 48 | <property name="fold-policy">always</property> |
38 | <object class="HdyHeaderBar"> | 49 | <child type="content"> |
50 | <object class="GtkBox"> | ||
39 | <property name="visible">True</property> | 51 | <property name="visible">True</property> |
40 | <property name="can-focus">False</property> | 52 | <property name="can-focus">False</property> |
41 | <property name="title" translatable="yes">Messenger</property> | 53 | <property name="orientation">vertical</property> |
42 | <property name="subtitle" translatable="yes">GNUnet</property> | ||
43 | <property name="show-close-button">True</property> | ||
44 | <child> | 54 | <child> |
45 | <object class="GtkButton"> | 55 | <object class="GtkBox" id="chats-header-box"> |
56 | <property name="visible">True</property> | ||
57 | <property name="can-focus">False</property> | ||
58 | <property name="margin-start">8</property> | ||
59 | <property name="margin-end">8</property> | ||
60 | <property name="margin-top">8</property> | ||
61 | <property name="margin-bottom">8</property> | ||
62 | <property name="spacing">8</property> | ||
63 | <child> | ||
64 | <object class="GtkButton" id="user_details_button"> | ||
65 | <property name="visible">True</property> | ||
66 | <property name="can-focus">True</property> | ||
67 | <property name="receives-default">True</property> | ||
68 | <property name="relief">none</property> | ||
69 | <child> | ||
70 | <object class="GtkImage"> | ||
71 | <property name="visible">True</property> | ||
72 | <property name="can-focus">False</property> | ||
73 | <property name="icon-name">open-menu-symbolic</property> | ||
74 | </object> | ||
75 | </child> | ||
76 | </object> | ||
77 | <packing> | ||
78 | <property name="expand">False</property> | ||
79 | <property name="fill">True</property> | ||
80 | <property name="position">0</property> | ||
81 | </packing> | ||
82 | </child> | ||
83 | <child> | ||
84 | <object class="GtkSearchEntry"> | ||
85 | <property name="width-request">250</property> | ||
86 | <property name="visible">True</property> | ||
87 | <property name="can-focus">True</property> | ||
88 | <property name="primary-icon-name">edit-find-symbolic</property> | ||
89 | <property name="primary-icon-activatable">False</property> | ||
90 | <property name="primary-icon-sensitive">False</property> | ||
91 | </object> | ||
92 | <packing> | ||
93 | <property name="expand">True</property> | ||
94 | <property name="fill">True</property> | ||
95 | <property name="position">1</property> | ||
96 | </packing> | ||
97 | </child> | ||
98 | </object> | ||
99 | <packing> | ||
100 | <property name="expand">False</property> | ||
101 | <property name="fill">True</property> | ||
102 | <property name="position">0</property> | ||
103 | </packing> | ||
104 | </child> | ||
105 | <child> | ||
106 | <object class="GtkScrolledWindow"> | ||
46 | <property name="visible">True</property> | 107 | <property name="visible">True</property> |
47 | <property name="can-focus">True</property> | 108 | <property name="can-focus">True</property> |
48 | <property name="receives-default">True</property> | 109 | <property name="shadow-type">in</property> |
49 | <property name="relief">half</property> | ||
50 | <child> | 110 | <child> |
51 | <object class="GtkImage"> | 111 | <object class="GtkViewport"> |
52 | <property name="visible">True</property> | 112 | <property name="visible">True</property> |
53 | <property name="can-focus">False</property> | 113 | <property name="can-focus">False</property> |
54 | <property name="icon-name">go-previous-symbolic</property> | 114 | <child> |
115 | <object class="GtkListBox"> | ||
116 | <property name="visible">True</property> | ||
117 | <property name="can-focus">False</property> | ||
118 | </object> | ||
119 | </child> | ||
55 | </object> | 120 | </object> |
56 | </child> | 121 | </child> |
57 | </object> | 122 | </object> |
123 | <packing> | ||
124 | <property name="expand">True</property> | ||
125 | <property name="fill">True</property> | ||
126 | <property name="position">1</property> | ||
127 | </packing> | ||
58 | </child> | 128 | </child> |
59 | </object> | 129 | </object> |
60 | </child> | 130 | </child> |
61 | </object> | 131 | <child type="separator"> |
62 | <packing> | 132 | <object class="GtkSeparator"> |
63 | <property name="expand">False</property> | ||
64 | <property name="fill">True</property> | ||
65 | <property name="position">0</property> | ||
66 | </packing> | ||
67 | </child> | ||
68 | <child> | ||
69 | <object class="HdyLeaflet"> | ||
70 | <property name="visible">True</property> | ||
71 | <property name="can-focus">False</property> | ||
72 | <property name="interpolate-size">True</property> | ||
73 | <child> | ||
74 | <object class="HdyFlap"> | ||
75 | <property name="visible">True</property> | 133 | <property name="visible">True</property> |
76 | <property name="can-focus">False</property> | 134 | <property name="can-focus">False</property> |
77 | <child type="content"> | 135 | </object> |
136 | </child> | ||
137 | <child type="flap"> | ||
138 | <object class="GtkBox"> | ||
139 | <property name="visible">True</property> | ||
140 | <property name="can-focus">False</property> | ||
141 | <property name="orientation">vertical</property> | ||
142 | <child> | ||
78 | <object class="GtkBox"> | 143 | <object class="GtkBox"> |
79 | <property name="visible">True</property> | 144 | <property name="visible">True</property> |
80 | <property name="can-focus">False</property> | 145 | <property name="can-focus">False</property> |
81 | <property name="orientation">vertical</property> | ||
82 | <child> | 146 | <child> |
83 | <object class="GtkBox" id="chats-header-box"> | 147 | <object class="GtkBox"> |
148 | <property name="width-request">150</property> | ||
149 | <property name="visible">True</property> | ||
150 | <property name="can-focus">False</property> | ||
151 | <property name="margin-start">16</property> | ||
152 | <property name="margin-end">16</property> | ||
153 | <property name="margin-top">16</property> | ||
154 | <property name="margin-bottom">16</property> | ||
155 | <property name="orientation">vertical</property> | ||
156 | <property name="spacing">16</property> | ||
157 | <child> | ||
158 | <object class="GtkImage"> | ||
159 | <property name="visible">True</property> | ||
160 | <property name="can-focus">False</property> | ||
161 | <property name="xalign">0</property> | ||
162 | <property name="icon-name">avatar-default-symbolic</property> | ||
163 | <property name="icon_size">6</property> | ||
164 | </object> | ||
165 | <packing> | ||
166 | <property name="expand">True</property> | ||
167 | <property name="fill">True</property> | ||
168 | <property name="position">0</property> | ||
169 | </packing> | ||
170 | </child> | ||
171 | <child> | ||
172 | <object class="GtkLabel"> | ||
173 | <property name="visible">True</property> | ||
174 | <property name="can-focus">False</property> | ||
175 | <property name="label" translatable="yes">Profile name</property> | ||
176 | <property name="xalign">0</property> | ||
177 | </object> | ||
178 | <packing> | ||
179 | <property name="expand">False</property> | ||
180 | <property name="fill">True</property> | ||
181 | <property name="position">1</property> | ||
182 | </packing> | ||
183 | </child> | ||
184 | </object> | ||
185 | <packing> | ||
186 | <property name="expand">True</property> | ||
187 | <property name="fill">True</property> | ||
188 | <property name="position">0</property> | ||
189 | </packing> | ||
190 | </child> | ||
191 | <child> | ||
192 | <object class="GtkBox"> | ||
84 | <property name="visible">True</property> | 193 | <property name="visible">True</property> |
85 | <property name="can-focus">False</property> | 194 | <property name="can-focus">False</property> |
86 | <property name="margin-start">8</property> | 195 | <property name="margin-start">8</property> |
87 | <property name="margin-end">8</property> | 196 | <property name="margin-end">8</property> |
88 | <property name="margin-top">8</property> | 197 | <property name="margin-top">8</property> |
89 | <property name="margin-bottom">8</property> | 198 | <property name="margin-bottom">8</property> |
199 | <property name="orientation">vertical</property> | ||
90 | <property name="spacing">8</property> | 200 | <property name="spacing">8</property> |
201 | <property name="homogeneous">True</property> | ||
91 | <child> | 202 | <child> |
92 | <object class="GtkButton"> | 203 | <object class="GtkButton" id="hide_user_details_button"> |
93 | <property name="visible">True</property> | 204 | <property name="visible">True</property> |
94 | <property name="can-focus">True</property> | 205 | <property name="can-focus">True</property> |
95 | <property name="receives-default">True</property> | 206 | <property name="receives-default">True</property> |
@@ -98,7 +209,7 @@ Author: Tobias Frisch | |||
98 | <object class="GtkImage"> | 209 | <object class="GtkImage"> |
99 | <property name="visible">True</property> | 210 | <property name="visible">True</property> |
100 | <property name="can-focus">False</property> | 211 | <property name="can-focus">False</property> |
101 | <property name="icon-name">open-menu-symbolic</property> | 212 | <property name="icon-name">go-previous-symbolic</property> |
102 | </object> | 213 | </object> |
103 | </child> | 214 | </child> |
104 | </object> | 215 | </object> |
@@ -109,13 +220,20 @@ Author: Tobias Frisch | |||
109 | </packing> | 220 | </packing> |
110 | </child> | 221 | </child> |
111 | <child> | 222 | <child> |
112 | <object class="GtkSearchEntry"> | 223 | <object class="GtkButton"> |
113 | <property name="width-request">250</property> | ||
114 | <property name="visible">True</property> | 224 | <property name="visible">True</property> |
115 | <property name="can-focus">True</property> | 225 | <property name="can-focus">True</property> |
116 | <property name="primary-icon-name">edit-find-symbolic</property> | 226 | <property name="receives-default">True</property> |
117 | <property name="primary-icon-activatable">False</property> | 227 | <property name="halign">center</property> |
118 | <property name="primary-icon-sensitive">False</property> | 228 | <property name="valign">center</property> |
229 | <property name="relief">none</property> | ||
230 | <child> | ||
231 | <object class="GtkImage"> | ||
232 | <property name="visible">True</property> | ||
233 | <property name="can-focus">False</property> | ||
234 | <property name="icon-name">user-bookmarks-symbolic</property> | ||
235 | </object> | ||
236 | </child> | ||
119 | </object> | 237 | </object> |
120 | <packing> | 238 | <packing> |
121 | <property name="expand">True</property> | 239 | <property name="expand">True</property> |
@@ -123,29 +241,27 @@ Author: Tobias Frisch | |||
123 | <property name="position">1</property> | 241 | <property name="position">1</property> |
124 | </packing> | 242 | </packing> |
125 | </child> | 243 | </child> |
126 | </object> | ||
127 | <packing> | ||
128 | <property name="expand">False</property> | ||
129 | <property name="fill">True</property> | ||
130 | <property name="position">0</property> | ||
131 | </packing> | ||
132 | </child> | ||
133 | <child> | ||
134 | <object class="GtkScrolledWindow"> | ||
135 | <property name="visible">True</property> | ||
136 | <property name="can-focus">True</property> | ||
137 | <property name="shadow-type">in</property> | ||
138 | <child> | 244 | <child> |
139 | <object class="GtkViewport"> | 245 | <object class="GtkButton" id="account_details_button"> |
140 | <property name="visible">True</property> | 246 | <property name="visible">True</property> |
141 | <property name="can-focus">False</property> | 247 | <property name="can-focus">True</property> |
248 | <property name="receives-default">True</property> | ||
249 | <property name="halign">center</property> | ||
250 | <property name="valign">center</property> | ||
251 | <property name="relief">none</property> | ||
142 | <child> | 252 | <child> |
143 | <object class="GtkListBox"> | 253 | <object class="GtkImage"> |
144 | <property name="visible">True</property> | 254 | <property name="visible">True</property> |
145 | <property name="can-focus">False</property> | 255 | <property name="can-focus">False</property> |
256 | <property name="icon-name">go-down-symbolic</property> | ||
146 | </object> | 257 | </object> |
147 | </child> | 258 | </child> |
148 | </object> | 259 | </object> |
260 | <packing> | ||
261 | <property name="expand">True</property> | ||
262 | <property name="fill">True</property> | ||
263 | <property name="position">2</property> | ||
264 | </packing> | ||
149 | </child> | 265 | </child> |
150 | </object> | 266 | </object> |
151 | <packing> | 267 | <packing> |
@@ -155,613 +271,389 @@ Author: Tobias Frisch | |||
155 | </packing> | 271 | </packing> |
156 | </child> | 272 | </child> |
157 | </object> | 273 | </object> |
274 | <packing> | ||
275 | <property name="expand">False</property> | ||
276 | <property name="fill">True</property> | ||
277 | <property name="position">1</property> | ||
278 | </packing> | ||
158 | </child> | 279 | </child> |
159 | <child type="separator"> | 280 | <child> |
160 | <object class="GtkSeparator"> | 281 | <object class="GtkScrolledWindow"> |
161 | <property name="visible">True</property> | ||
162 | <property name="can-focus">False</property> | ||
163 | </object> | ||
164 | </child> | ||
165 | <child type="flap"> | ||
166 | <object class="GtkBox"> | ||
167 | <property name="visible">True</property> | 282 | <property name="visible">True</property> |
168 | <property name="can-focus">False</property> | 283 | <property name="can-focus">True</property> |
169 | <property name="orientation">vertical</property> | ||
170 | <child> | 284 | <child> |
171 | <object class="GtkBox"> | 285 | <object class="GtkViewport"> |
172 | <property name="visible">True</property> | 286 | <property name="visible">True</property> |
173 | <property name="can-focus">False</property> | 287 | <property name="can-focus">False</property> |
288 | <property name="shadow-type">none</property> | ||
174 | <child> | 289 | <child> |
175 | <object class="GtkBox"> | 290 | <object class="GtkBox"> |
176 | <property name="width-request">150</property> | ||
177 | <property name="visible">True</property> | 291 | <property name="visible">True</property> |
178 | <property name="can-focus">False</property> | 292 | <property name="can-focus">False</property> |
179 | <property name="margin-start">16</property> | ||
180 | <property name="margin-end">16</property> | ||
181 | <property name="margin-top">16</property> | ||
182 | <property name="margin-bottom">16</property> | ||
183 | <property name="orientation">vertical</property> | 293 | <property name="orientation">vertical</property> |
184 | <property name="spacing">16</property> | ||
185 | <child> | 294 | <child> |
186 | <object class="GtkImage"> | 295 | <object class="GtkRevealer" id="account_details_revealer"> |
187 | <property name="visible">True</property> | 296 | <property name="visible">True</property> |
188 | <property name="can-focus">False</property> | 297 | <property name="can-focus">False</property> |
189 | <property name="xalign">0</property> | ||
190 | <property name="icon-name">avatar-default-symbolic</property> | ||
191 | <property name="icon_size">6</property> | ||
192 | </object> | ||
193 | <packing> | ||
194 | <property name="expand">False</property> | ||
195 | <property name="fill">True</property> | ||
196 | <property name="position">0</property> | ||
197 | </packing> | ||
198 | </child> | ||
199 | <child> | ||
200 | <object class="GtkLabel"> | ||
201 | <property name="visible">True</property> | ||
202 | <property name="can-focus">False</property> | ||
203 | <property name="label" translatable="yes">Profile name</property> | ||
204 | <property name="xalign">0</property> | ||
205 | </object> | ||
206 | <packing> | ||
207 | <property name="expand">False</property> | ||
208 | <property name="fill">True</property> | ||
209 | <property name="position">1</property> | ||
210 | </packing> | ||
211 | </child> | ||
212 | </object> | ||
213 | <packing> | ||
214 | <property name="expand">True</property> | ||
215 | <property name="fill">True</property> | ||
216 | <property name="position">0</property> | ||
217 | </packing> | ||
218 | </child> | ||
219 | <child> | ||
220 | <object class="GtkBox"> | ||
221 | <property name="visible">True</property> | ||
222 | <property name="can-focus">False</property> | ||
223 | <property name="margin-start">8</property> | ||
224 | <property name="margin-end">8</property> | ||
225 | <property name="margin-top">8</property> | ||
226 | <property name="margin-bottom">8</property> | ||
227 | <property name="orientation">vertical</property> | ||
228 | <property name="spacing">8</property> | ||
229 | <property name="homogeneous">True</property> | ||
230 | <child> | ||
231 | <object class="GtkButton"> | ||
232 | <property name="visible">True</property> | ||
233 | <property name="can-focus">True</property> | ||
234 | <property name="receives-default">True</property> | ||
235 | <property name="halign">center</property> | ||
236 | <property name="valign">center</property> | ||
237 | <property name="relief">none</property> | ||
238 | <child> | 298 | <child> |
239 | <object class="GtkImage"> | 299 | <object class="GtkScrolledWindow"> |
300 | <property name="height-request">300</property> | ||
240 | <property name="visible">True</property> | 301 | <property name="visible">True</property> |
241 | <property name="can-focus">False</property> | 302 | <property name="can-focus">True</property> |
242 | <property name="icon-name">user-bookmarks-symbolic</property> | 303 | <child> |
304 | <object class="GtkViewport"> | ||
305 | <property name="visible">True</property> | ||
306 | <property name="can-focus">False</property> | ||
307 | <child> | ||
308 | <object class="GtkListBox"> | ||
309 | <property name="visible">True</property> | ||
310 | <property name="can-focus">False</property> | ||
311 | </object> | ||
312 | </child> | ||
313 | </object> | ||
314 | </child> | ||
243 | </object> | 315 | </object> |
244 | </child> | 316 | </child> |
245 | </object> | 317 | </object> |
246 | <packing> | 318 | <packing> |
247 | <property name="expand">True</property> | 319 | <property name="expand">False</property> |
248 | <property name="fill">True</property> | 320 | <property name="fill">True</property> |
249 | <property name="position">0</property> | 321 | <property name="position">0</property> |
250 | </packing> | 322 | </packing> |
251 | </child> | 323 | </child> |
252 | <child> | 324 | <child> |
253 | <object class="GtkButton"> | ||
254 | <property name="visible">True</property> | ||
255 | <property name="can-focus">True</property> | ||
256 | <property name="receives-default">True</property> | ||
257 | <property name="halign">center</property> | ||
258 | <property name="valign">center</property> | ||
259 | <property name="relief">none</property> | ||
260 | <child> | ||
261 | <object class="GtkImage"> | ||
262 | <property name="visible">True</property> | ||
263 | <property name="can-focus">False</property> | ||
264 | <property name="icon-name">go-down-symbolic</property> | ||
265 | </object> | ||
266 | </child> | ||
267 | </object> | ||
268 | <packing> | ||
269 | <property name="expand">True</property> | ||
270 | <property name="fill">True</property> | ||
271 | <property name="position">1</property> | ||
272 | </packing> | ||
273 | </child> | ||
274 | </object> | ||
275 | <packing> | ||
276 | <property name="expand">True</property> | ||
277 | <property name="fill">True</property> | ||
278 | <property name="position">1</property> | ||
279 | </packing> | ||
280 | </child> | ||
281 | </object> | ||
282 | <packing> | ||
283 | <property name="expand">False</property> | ||
284 | <property name="fill">True</property> | ||
285 | <property name="position">0</property> | ||
286 | </packing> | ||
287 | </child> | ||
288 | <child> | ||
289 | <object class="GtkScrolledWindow"> | ||
290 | <property name="visible">True</property> | ||
291 | <property name="can-focus">True</property> | ||
292 | <child> | ||
293 | <object class="GtkViewport"> | ||
294 | <property name="visible">True</property> | ||
295 | <property name="can-focus">False</property> | ||
296 | <property name="shadow-type">none</property> | ||
297 | <child> | ||
298 | <object class="GtkBox"> | 325 | <object class="GtkBox"> |
299 | <property name="visible">True</property> | 326 | <property name="visible">True</property> |
300 | <property name="can-focus">False</property> | 327 | <property name="can-focus">False</property> |
301 | <property name="orientation">vertical</property> | 328 | <property name="orientation">vertical</property> |
302 | <child> | 329 | <child> |
303 | <object class="GtkRevealer"> | 330 | <object class="GtkButton"> |
304 | <property name="visible">True</property> | 331 | <property name="visible">True</property> |
305 | <property name="can-focus">False</property> | 332 | <property name="can-focus">True</property> |
306 | <property name="reveal-child">True</property> | 333 | <property name="receives-default">True</property> |
334 | <property name="relief">none</property> | ||
335 | <property name="always-show-image">True</property> | ||
307 | <child> | 336 | <child> |
308 | <object class="GtkScrolledWindow"> | 337 | <object class="GtkBox"> |
309 | <property name="visible">True</property> | 338 | <property name="visible">True</property> |
310 | <property name="can-focus">True</property> | 339 | <property name="can-focus">False</property> |
340 | <property name="margin-start">4</property> | ||
341 | <property name="margin-end">4</property> | ||
342 | <property name="margin-top">4</property> | ||
343 | <property name="margin-bottom">4</property> | ||
344 | <property name="spacing">16</property> | ||
311 | <child> | 345 | <child> |
312 | <object class="GtkViewport"> | 346 | <object class="GtkImage"> |
347 | <property name="visible">True</property> | ||
348 | <property name="can-focus">False</property> | ||
349 | <property name="icon-name">system-users-symbolic</property> | ||
350 | <property name="icon_size">3</property> | ||
351 | </object> | ||
352 | <packing> | ||
353 | <property name="expand">False</property> | ||
354 | <property name="fill">True</property> | ||
355 | <property name="position">0</property> | ||
356 | </packing> | ||
357 | </child> | ||
358 | <child> | ||
359 | <object class="GtkLabel" id="new-group-label"> | ||
313 | <property name="visible">True</property> | 360 | <property name="visible">True</property> |
314 | <property name="can-focus">False</property> | 361 | <property name="can-focus">False</property> |
315 | <child> | 362 | <property name="label" translatable="yes">New Group</property> |
316 | <object class="GtkListBox"> | 363 | <property name="xalign">0</property> |
317 | <property name="visible">True</property> | ||
318 | <property name="can-focus">False</property> | ||
319 | </object> | ||
320 | </child> | ||
321 | </object> | 364 | </object> |
365 | <packing> | ||
366 | <property name="expand">False</property> | ||
367 | <property name="fill">True</property> | ||
368 | <property name="position">1</property> | ||
369 | </packing> | ||
322 | </child> | 370 | </child> |
323 | </object> | 371 | </object> |
324 | </child> | 372 | </child> |
325 | </object> | 373 | </object> |
326 | <packing> | 374 | <packing> |
327 | <property name="expand">True</property> | 375 | <property name="expand">False</property> |
328 | <property name="fill">True</property> | 376 | <property name="fill">True</property> |
329 | <property name="position">0</property> | 377 | <property name="position">0</property> |
330 | </packing> | 378 | </packing> |
331 | </child> | 379 | </child> |
332 | <child> | 380 | <child> |
333 | <object class="GtkBox"> | 381 | <object class="GtkButton"> |
334 | <property name="visible">True</property> | 382 | <property name="visible">True</property> |
335 | <property name="can-focus">False</property> | 383 | <property name="can-focus">True</property> |
336 | <property name="orientation">vertical</property> | 384 | <property name="receives-default">True</property> |
385 | <property name="relief">none</property> | ||
386 | <property name="always-show-image">True</property> | ||
337 | <child> | 387 | <child> |
338 | <object class="GtkButton"> | 388 | <object class="GtkBox"> |
339 | <property name="visible">True</property> | 389 | <property name="visible">True</property> |
340 | <property name="can-focus">True</property> | 390 | <property name="can-focus">False</property> |
341 | <property name="receives-default">True</property> | 391 | <property name="margin-start">4</property> |
342 | <property name="relief">none</property> | 392 | <property name="margin-end">4</property> |
343 | <property name="always-show-image">True</property> | 393 | <property name="margin-top">4</property> |
394 | <property name="margin-bottom">4</property> | ||
395 | <property name="spacing">16</property> | ||
344 | <child> | 396 | <child> |
345 | <object class="GtkBox"> | 397 | <object class="GtkImage"> |
346 | <property name="visible">True</property> | 398 | <property name="visible">True</property> |
347 | <property name="can-focus">False</property> | 399 | <property name="can-focus">False</property> |
348 | <property name="margin-left">4</property> | 400 | <property name="icon-name">network-wired-symbolic</property> |
349 | <property name="margin-right">4</property> | 401 | <property name="icon_size">3</property> |
350 | <property name="margin-start">4</property> | ||
351 | <property name="margin-end">4</property> | ||
352 | <property name="margin-top">4</property> | ||
353 | <property name="margin-bottom">4</property> | ||
354 | <property name="spacing">16</property> | ||
355 | <child> | ||
356 | <object class="GtkImage"> | ||
357 | <property name="visible">True</property> | ||
358 | <property name="can-focus">False</property> | ||
359 | <property name="icon-name">system-users-symbolic</property> | ||
360 | <property name="icon_size">3</property> | ||
361 | </object> | ||
362 | <packing> | ||
363 | <property name="expand">False</property> | ||
364 | <property name="fill">True</property> | ||
365 | <property name="position">0</property> | ||
366 | </packing> | ||
367 | </child> | ||
368 | <child> | ||
369 | <object class="GtkLabel" id="new-group-label"> | ||
370 | <property name="visible">True</property> | ||
371 | <property name="can-focus">False</property> | ||
372 | <property name="label" translatable="yes">New Group</property> | ||
373 | <property name="xalign">0</property> | ||
374 | </object> | ||
375 | <packing> | ||
376 | <property name="expand">False</property> | ||
377 | <property name="fill">True</property> | ||
378 | <property name="position">1</property> | ||
379 | </packing> | ||
380 | </child> | ||
381 | </object> | 402 | </object> |
403 | <packing> | ||
404 | <property name="expand">False</property> | ||
405 | <property name="fill">True</property> | ||
406 | <property name="position">0</property> | ||
407 | </packing> | ||
382 | </child> | 408 | </child> |
383 | </object> | ||
384 | <packing> | ||
385 | <property name="expand">False</property> | ||
386 | <property name="fill">True</property> | ||
387 | <property name="position">0</property> | ||
388 | </packing> | ||
389 | </child> | ||
390 | <child> | ||
391 | <object class="GtkButton"> | ||
392 | <property name="visible">True</property> | ||
393 | <property name="can-focus">True</property> | ||
394 | <property name="receives-default">True</property> | ||
395 | <property name="relief">none</property> | ||
396 | <property name="always-show-image">True</property> | ||
397 | <child> | 409 | <child> |
398 | <object class="GtkBox"> | 410 | <object class="GtkLabel" id="new-platform-label"> |
399 | <property name="visible">True</property> | 411 | <property name="visible">True</property> |
400 | <property name="can-focus">False</property> | 412 | <property name="can-focus">False</property> |
401 | <property name="margin-left">4</property> | 413 | <property name="label" translatable="yes">New Platform</property> |
402 | <property name="margin-right">4</property> | 414 | <property name="xalign">0</property> |
403 | <property name="margin-start">4</property> | ||
404 | <property name="margin-end">4</property> | ||
405 | <property name="margin-top">4</property> | ||
406 | <property name="margin-bottom">4</property> | ||
407 | <property name="spacing">16</property> | ||
408 | <child> | ||
409 | <object class="GtkImage"> | ||
410 | <property name="visible">True</property> | ||
411 | <property name="can-focus">False</property> | ||
412 | <property name="icon-name">network-wired-symbolic</property> | ||
413 | <property name="icon_size">3</property> | ||
414 | </object> | ||
415 | <packing> | ||
416 | <property name="expand">False</property> | ||
417 | <property name="fill">True</property> | ||
418 | <property name="position">0</property> | ||
419 | </packing> | ||
420 | </child> | ||
421 | <child> | ||
422 | <object class="GtkLabel" id="new-platform-label"> | ||
423 | <property name="visible">True</property> | ||
424 | <property name="can-focus">False</property> | ||
425 | <property name="label" translatable="yes">New Platform</property> | ||
426 | <property name="xalign">0</property> | ||
427 | </object> | ||
428 | <packing> | ||
429 | <property name="expand">False</property> | ||
430 | <property name="fill">True</property> | ||
431 | <property name="position">1</property> | ||
432 | </packing> | ||
433 | </child> | ||
434 | </object> | 415 | </object> |
416 | <packing> | ||
417 | <property name="expand">False</property> | ||
418 | <property name="fill">True</property> | ||
419 | <property name="position">1</property> | ||
420 | </packing> | ||
435 | </child> | 421 | </child> |
436 | </object> | 422 | </object> |
437 | <packing> | ||
438 | <property name="expand">False</property> | ||
439 | <property name="fill">True</property> | ||
440 | <property name="position">1</property> | ||
441 | </packing> | ||
442 | </child> | 423 | </child> |
424 | </object> | ||
425 | <packing> | ||
426 | <property name="expand">False</property> | ||
427 | <property name="fill">True</property> | ||
428 | <property name="position">1</property> | ||
429 | </packing> | ||
430 | </child> | ||
431 | <child> | ||
432 | <object class="GtkButton"> | ||
433 | <property name="visible">True</property> | ||
434 | <property name="can-focus">True</property> | ||
435 | <property name="receives-default">True</property> | ||
436 | <property name="relief">none</property> | ||
437 | <property name="always-show-image">True</property> | ||
443 | <child> | 438 | <child> |
444 | <object class="GtkButton"> | 439 | <object class="GtkBox"> |
445 | <property name="visible">True</property> | 440 | <property name="visible">True</property> |
446 | <property name="can-focus">True</property> | 441 | <property name="can-focus">False</property> |
447 | <property name="receives-default">True</property> | 442 | <property name="margin-start">4</property> |
448 | <property name="relief">none</property> | 443 | <property name="margin-end">4</property> |
449 | <property name="always-show-image">True</property> | 444 | <property name="margin-top">4</property> |
445 | <property name="margin-bottom">4</property> | ||
446 | <property name="spacing">16</property> | ||
450 | <child> | 447 | <child> |
451 | <object class="GtkBox"> | 448 | <object class="GtkImage"> |
452 | <property name="visible">True</property> | 449 | <property name="visible">True</property> |
453 | <property name="can-focus">False</property> | 450 | <property name="can-focus">False</property> |
454 | <property name="margin-left">4</property> | 451 | <property name="icon-name">avatar-default-symbolic</property> |
455 | <property name="margin-right">4</property> | 452 | <property name="icon_size">3</property> |
456 | <property name="margin-start">4</property> | ||
457 | <property name="margin-end">4</property> | ||
458 | <property name="margin-top">4</property> | ||
459 | <property name="margin-bottom">4</property> | ||
460 | <property name="spacing">16</property> | ||
461 | <child> | ||
462 | <object class="GtkImage"> | ||
463 | <property name="visible">True</property> | ||
464 | <property name="can-focus">False</property> | ||
465 | <property name="icon-name">avatar-default-symbolic</property> | ||
466 | <property name="icon_size">3</property> | ||
467 | </object> | ||
468 | <packing> | ||
469 | <property name="expand">False</property> | ||
470 | <property name="fill">True</property> | ||
471 | <property name="position">0</property> | ||
472 | </packing> | ||
473 | </child> | ||
474 | <child> | ||
475 | <object class="GtkLabel" id="contacts-label"> | ||
476 | <property name="visible">True</property> | ||
477 | <property name="can-focus">False</property> | ||
478 | <property name="label" translatable="yes">Contacts</property> | ||
479 | <property name="xalign">0</property> | ||
480 | </object> | ||
481 | <packing> | ||
482 | <property name="expand">False</property> | ||
483 | <property name="fill">True</property> | ||
484 | <property name="position">1</property> | ||
485 | </packing> | ||
486 | </child> | ||
487 | </object> | 453 | </object> |
454 | <packing> | ||
455 | <property name="expand">False</property> | ||
456 | <property name="fill">True</property> | ||
457 | <property name="position">0</property> | ||
458 | </packing> | ||
488 | </child> | 459 | </child> |
489 | </object> | ||
490 | <packing> | ||
491 | <property name="expand">False</property> | ||
492 | <property name="fill">True</property> | ||
493 | <property name="position">2</property> | ||
494 | </packing> | ||
495 | </child> | ||
496 | <child> | ||
497 | <object class="GtkButton"> | ||
498 | <property name="visible">True</property> | ||
499 | <property name="can-focus">True</property> | ||
500 | <property name="receives-default">True</property> | ||
501 | <property name="relief">none</property> | ||
502 | <property name="always-show-image">True</property> | ||
503 | <child> | 460 | <child> |
504 | <object class="GtkBox"> | 461 | <object class="GtkLabel" id="contacts-label"> |
505 | <property name="visible">True</property> | 462 | <property name="visible">True</property> |
506 | <property name="can-focus">False</property> | 463 | <property name="can-focus">False</property> |
507 | <property name="margin-left">4</property> | 464 | <property name="label" translatable="yes">Contacts</property> |
508 | <property name="margin-right">4</property> | 465 | <property name="xalign">0</property> |
509 | <property name="margin-start">4</property> | ||
510 | <property name="margin-end">4</property> | ||
511 | <property name="margin-top">4</property> | ||
512 | <property name="margin-bottom">4</property> | ||
513 | <property name="spacing">16</property> | ||
514 | <child> | ||
515 | <object class="GtkImage"> | ||
516 | <property name="visible">True</property> | ||
517 | <property name="can-focus">False</property> | ||
518 | <property name="icon-name">call-start-symbolic</property> | ||
519 | <property name="icon_size">3</property> | ||
520 | </object> | ||
521 | <packing> | ||
522 | <property name="expand">False</property> | ||
523 | <property name="fill">True</property> | ||
524 | <property name="position">0</property> | ||
525 | </packing> | ||
526 | </child> | ||
527 | <child> | ||
528 | <object class="GtkLabel" id="calls-label"> | ||
529 | <property name="visible">True</property> | ||
530 | <property name="can-focus">False</property> | ||
531 | <property name="label" translatable="yes">Calls</property> | ||
532 | <property name="xalign">0</property> | ||
533 | </object> | ||
534 | <packing> | ||
535 | <property name="expand">False</property> | ||
536 | <property name="fill">True</property> | ||
537 | <property name="position">1</property> | ||
538 | </packing> | ||
539 | </child> | ||
540 | </object> | 466 | </object> |
467 | <packing> | ||
468 | <property name="expand">False</property> | ||
469 | <property name="fill">True</property> | ||
470 | <property name="position">1</property> | ||
471 | </packing> | ||
541 | </child> | 472 | </child> |
542 | </object> | 473 | </object> |
543 | <packing> | ||
544 | <property name="expand">False</property> | ||
545 | <property name="fill">True</property> | ||
546 | <property name="position">3</property> | ||
547 | </packing> | ||
548 | </child> | 474 | </child> |
475 | </object> | ||
476 | <packing> | ||
477 | <property name="expand">False</property> | ||
478 | <property name="fill">True</property> | ||
479 | <property name="position">2</property> | ||
480 | </packing> | ||
481 | </child> | ||
482 | <child> | ||
483 | <object class="GtkButton"> | ||
484 | <property name="visible">True</property> | ||
485 | <property name="can-focus">True</property> | ||
486 | <property name="receives-default">True</property> | ||
487 | <property name="relief">none</property> | ||
488 | <property name="always-show-image">True</property> | ||
549 | <child> | 489 | <child> |
550 | <object class="GtkButton"> | 490 | <object class="GtkBox"> |
551 | <property name="visible">True</property> | 491 | <property name="visible">True</property> |
552 | <property name="can-focus">True</property> | 492 | <property name="can-focus">False</property> |
553 | <property name="receives-default">True</property> | 493 | <property name="margin-start">4</property> |
554 | <property name="relief">none</property> | 494 | <property name="margin-end">4</property> |
555 | <property name="always-show-image">True</property> | 495 | <property name="margin-top">4</property> |
496 | <property name="margin-bottom">4</property> | ||
497 | <property name="spacing">16</property> | ||
556 | <child> | 498 | <child> |
557 | <object class="GtkBox"> | 499 | <object class="GtkImage"> |
558 | <property name="visible">True</property> | 500 | <property name="visible">True</property> |
559 | <property name="can-focus">False</property> | 501 | <property name="can-focus">False</property> |
560 | <property name="margin-left">4</property> | 502 | <property name="icon-name">call-start-symbolic</property> |
561 | <property name="margin-right">4</property> | 503 | <property name="icon_size">3</property> |
562 | <property name="margin-start">4</property> | ||
563 | <property name="margin-end">4</property> | ||
564 | <property name="margin-top">4</property> | ||
565 | <property name="margin-bottom">4</property> | ||
566 | <property name="spacing">16</property> | ||
567 | <child> | ||
568 | <object class="GtkImage"> | ||
569 | <property name="visible">True</property> | ||
570 | <property name="can-focus">False</property> | ||
571 | <property name="icon-name">emblem-system-symbolic</property> | ||
572 | <property name="icon_size">3</property> | ||
573 | </object> | ||
574 | <packing> | ||
575 | <property name="expand">False</property> | ||
576 | <property name="fill">True</property> | ||
577 | <property name="position">0</property> | ||
578 | </packing> | ||
579 | </child> | ||
580 | <child> | ||
581 | <object class="GtkLabel" id="settings-label"> | ||
582 | <property name="visible">True</property> | ||
583 | <property name="can-focus">False</property> | ||
584 | <property name="label" translatable="yes">Settings</property> | ||
585 | <property name="xalign">0</property> | ||
586 | </object> | ||
587 | <packing> | ||
588 | <property name="expand">False</property> | ||
589 | <property name="fill">True</property> | ||
590 | <property name="position">1</property> | ||
591 | </packing> | ||
592 | </child> | ||
593 | </object> | 504 | </object> |
505 | <packing> | ||
506 | <property name="expand">False</property> | ||
507 | <property name="fill">True</property> | ||
508 | <property name="position">0</property> | ||
509 | </packing> | ||
594 | </child> | 510 | </child> |
595 | </object> | ||
596 | <packing> | ||
597 | <property name="expand">False</property> | ||
598 | <property name="fill">True</property> | ||
599 | <property name="position">4</property> | ||
600 | </packing> | ||
601 | </child> | ||
602 | <child> | ||
603 | <object class="GtkButton"> | ||
604 | <property name="visible">True</property> | ||
605 | <property name="can-focus">True</property> | ||
606 | <property name="receives-default">True</property> | ||
607 | <property name="relief">none</property> | ||
608 | <property name="always-show-image">True</property> | ||
609 | <child> | 511 | <child> |
610 | <object class="GtkBox"> | 512 | <object class="GtkLabel" id="calls-label"> |
611 | <property name="visible">True</property> | 513 | <property name="visible">True</property> |
612 | <property name="can-focus">False</property> | 514 | <property name="can-focus">False</property> |
613 | <property name="margin-left">4</property> | 515 | <property name="label" translatable="yes">Calls</property> |
614 | <property name="margin-right">4</property> | 516 | <property name="xalign">0</property> |
615 | <property name="margin-start">4</property> | ||
616 | <property name="margin-end">4</property> | ||
617 | <property name="margin-top">4</property> | ||
618 | <property name="margin-bottom">4</property> | ||
619 | <property name="spacing">16</property> | ||
620 | <child> | ||
621 | <object class="GtkImage"> | ||
622 | <property name="visible">True</property> | ||
623 | <property name="can-focus">False</property> | ||
624 | <property name="icon-name">weather-clear-night-symbolic</property> | ||
625 | <property name="icon_size">3</property> | ||
626 | </object> | ||
627 | <packing> | ||
628 | <property name="expand">False</property> | ||
629 | <property name="fill">True</property> | ||
630 | <property name="position">0</property> | ||
631 | </packing> | ||
632 | </child> | ||
633 | <child> | ||
634 | <object class="GtkLabel" id="night-mode-label"> | ||
635 | <property name="visible">True</property> | ||
636 | <property name="can-focus">False</property> | ||
637 | <property name="label" translatable="yes">Night Mode</property> | ||
638 | <property name="xalign">0</property> | ||
639 | </object> | ||
640 | <packing> | ||
641 | <property name="expand">False</property> | ||
642 | <property name="fill">True</property> | ||
643 | <property name="position">1</property> | ||
644 | </packing> | ||
645 | </child> | ||
646 | </object> | 517 | </object> |
518 | <packing> | ||
519 | <property name="expand">False</property> | ||
520 | <property name="fill">True</property> | ||
521 | <property name="position">1</property> | ||
522 | </packing> | ||
647 | </child> | 523 | </child> |
648 | </object> | 524 | </object> |
649 | <packing> | ||
650 | <property name="expand">False</property> | ||
651 | <property name="fill">True</property> | ||
652 | <property name="position">5</property> | ||
653 | </packing> | ||
654 | </child> | 525 | </child> |
655 | </object> | 526 | </object> |
656 | <packing> | 527 | <packing> |
657 | <property name="expand">True</property> | 528 | <property name="expand">False</property> |
658 | <property name="fill">True</property> | 529 | <property name="fill">True</property> |
659 | <property name="position">1</property> | 530 | <property name="position">3</property> |
660 | </packing> | 531 | </packing> |
661 | </child> | 532 | </child> |
662 | <child> | 533 | <child> |
663 | <object class="GtkBox"> | 534 | <object class="GtkButton"> |
664 | <property name="visible">True</property> | 535 | <property name="visible">True</property> |
665 | <property name="can-focus">False</property> | 536 | <property name="can-focus">True</property> |
666 | <property name="margin-start">16</property> | 537 | <property name="receives-default">True</property> |
667 | <property name="margin-end">16</property> | 538 | <property name="relief">none</property> |
668 | <property name="margin-top">16</property> | 539 | <property name="always-show-image">True</property> |
669 | <property name="margin-bottom">16</property> | ||
670 | <property name="orientation">vertical</property> | ||
671 | <child> | 540 | <child> |
672 | <object class="GtkLabel"> | 541 | <object class="GtkBox"> |
673 | <property name="visible">True</property> | 542 | <property name="visible">True</property> |
674 | <property name="can-focus">False</property> | 543 | <property name="can-focus">False</property> |
675 | <property name="halign">start</property> | 544 | <property name="margin-start">4</property> |
676 | <property name="label" translatable="yes">GNUnet Messenger</property> | 545 | <property name="margin-end">4</property> |
677 | <attributes> | 546 | <property name="margin-top">4</property> |
678 | <attribute name="weight" value="bold"/> | 547 | <property name="margin-bottom">4</property> |
679 | </attributes> | 548 | <property name="spacing">16</property> |
549 | <child> | ||
550 | <object class="GtkImage"> | ||
551 | <property name="visible">True</property> | ||
552 | <property name="can-focus">False</property> | ||
553 | <property name="icon-name">emblem-system-symbolic</property> | ||
554 | <property name="icon_size">3</property> | ||
555 | </object> | ||
556 | <packing> | ||
557 | <property name="expand">False</property> | ||
558 | <property name="fill">True</property> | ||
559 | <property name="position">0</property> | ||
560 | </packing> | ||
561 | </child> | ||
562 | <child> | ||
563 | <object class="GtkLabel" id="settings-label"> | ||
564 | <property name="visible">True</property> | ||
565 | <property name="can-focus">False</property> | ||
566 | <property name="label" translatable="yes">Settings</property> | ||
567 | <property name="xalign">0</property> | ||
568 | </object> | ||
569 | <packing> | ||
570 | <property name="expand">False</property> | ||
571 | <property name="fill">True</property> | ||
572 | <property name="position">1</property> | ||
573 | </packing> | ||
574 | </child> | ||
680 | </object> | 575 | </object> |
681 | <packing> | ||
682 | <property name="expand">False</property> | ||
683 | <property name="fill">True</property> | ||
684 | <property name="position">0</property> | ||
685 | </packing> | ||
686 | </child> | 576 | </child> |
577 | </object> | ||
578 | <packing> | ||
579 | <property name="expand">False</property> | ||
580 | <property name="fill">True</property> | ||
581 | <property name="position">4</property> | ||
582 | </packing> | ||
583 | </child> | ||
584 | <child> | ||
585 | <object class="GtkButton"> | ||
586 | <property name="visible">True</property> | ||
587 | <property name="can-focus">True</property> | ||
588 | <property name="receives-default">True</property> | ||
589 | <property name="relief">none</property> | ||
590 | <property name="always-show-image">True</property> | ||
687 | <child> | 591 | <child> |
688 | <object class="GtkLabel"> | 592 | <object class="GtkBox"> |
689 | <property name="visible">True</property> | 593 | <property name="visible">True</property> |
690 | <property name="can-focus">False</property> | 594 | <property name="can-focus">False</property> |
691 | <property name="halign">start</property> | 595 | <property name="margin-start">4</property> |
692 | <property name="label" translatable="yes">Version 0.0.1</property> | 596 | <property name="margin-end">4</property> |
597 | <property name="margin-top">4</property> | ||
598 | <property name="margin-bottom">4</property> | ||
599 | <property name="spacing">16</property> | ||
600 | <child> | ||
601 | <object class="GtkImage"> | ||
602 | <property name="visible">True</property> | ||
603 | <property name="can-focus">False</property> | ||
604 | <property name="icon-name">weather-clear-night-symbolic</property> | ||
605 | <property name="icon_size">3</property> | ||
606 | </object> | ||
607 | <packing> | ||
608 | <property name="expand">False</property> | ||
609 | <property name="fill">True</property> | ||
610 | <property name="position">0</property> | ||
611 | </packing> | ||
612 | </child> | ||
613 | <child> | ||
614 | <object class="GtkLabel" id="night-mode-label"> | ||
615 | <property name="visible">True</property> | ||
616 | <property name="can-focus">False</property> | ||
617 | <property name="label" translatable="yes">Night Mode</property> | ||
618 | <property name="xalign">0</property> | ||
619 | </object> | ||
620 | <packing> | ||
621 | <property name="expand">False</property> | ||
622 | <property name="fill">True</property> | ||
623 | <property name="position">1</property> | ||
624 | </packing> | ||
625 | </child> | ||
693 | </object> | 626 | </object> |
694 | <packing> | ||
695 | <property name="expand">False</property> | ||
696 | <property name="fill">True</property> | ||
697 | <property name="position">1</property> | ||
698 | </packing> | ||
699 | </child> | 627 | </child> |
700 | </object> | 628 | </object> |
701 | <packing> | 629 | <packing> |
702 | <property name="expand">False</property> | 630 | <property name="expand">False</property> |
703 | <property name="fill">True</property> | 631 | <property name="fill">True</property> |
704 | <property name="pack-type">end</property> | 632 | <property name="position">5</property> |
705 | <property name="position">2</property> | ||
706 | </packing> | 633 | </packing> |
707 | </child> | 634 | </child> |
708 | </object> | 635 | </object> |
636 | <packing> | ||
637 | <property name="expand">True</property> | ||
638 | <property name="fill">True</property> | ||
639 | <property name="position">1</property> | ||
640 | </packing> | ||
709 | </child> | 641 | </child> |
710 | </object> | ||
711 | </child> | ||
712 | </object> | ||
713 | <packing> | ||
714 | <property name="expand">True</property> | ||
715 | <property name="fill">True</property> | ||
716 | <property name="position">4</property> | ||
717 | </packing> | ||
718 | </child> | ||
719 | </object> | ||
720 | </child> | ||
721 | </object> | ||
722 | </child> | ||
723 | <child> | ||
724 | <object class="GtkBox"> | ||
725 | <property name="visible">True</property> | ||
726 | <property name="can-focus">False</property> | ||
727 | <property name="hexpand">True</property> | ||
728 | <property name="orientation">vertical</property> | ||
729 | <child> | ||
730 | <object class="HdyFlap"> | ||
731 | <property name="visible">True</property> | ||
732 | <property name="can-focus">False</property> | ||
733 | <property name="flap-position">end</property> | ||
734 | <property name="reveal-flap">False</property> | ||
735 | <child type="content"> | ||
736 | <object class="GtkBox"> | ||
737 | <property name="visible">True</property> | ||
738 | <property name="can-focus">False</property> | ||
739 | <property name="orientation">vertical</property> | ||
740 | <child> | ||
741 | <object class="GtkBox" id="chat-header-box"> | ||
742 | <property name="visible">True</property> | ||
743 | <property name="can-focus">False</property> | ||
744 | <property name="margin-start">8</property> | ||
745 | <property name="margin-end">8</property> | ||
746 | <property name="margin-top">8</property> | ||
747 | <property name="margin-bottom">8</property> | ||
748 | <property name="spacing">8</property> | ||
749 | <child> | 642 | <child> |
750 | <object class="GtkBox"> | 643 | <object class="GtkBox"> |
751 | <property name="visible">True</property> | 644 | <property name="visible">True</property> |
752 | <property name="can-focus">False</property> | 645 | <property name="can-focus">False</property> |
753 | <property name="halign">start</property> | 646 | <property name="margin-start">16</property> |
754 | <property name="margin-left">4</property> | 647 | <property name="margin-end">16</property> |
755 | <property name="margin-right">4</property> | 648 | <property name="margin-top">16</property> |
756 | <property name="margin-start">4</property> | 649 | <property name="margin-bottom">16</property> |
757 | <property name="margin-end">4</property> | ||
758 | <property name="orientation">vertical</property> | 650 | <property name="orientation">vertical</property> |
759 | <child> | 651 | <child> |
760 | <object class="GtkLabel"> | 652 | <object class="GtkLabel"> |
761 | <property name="visible">True</property> | 653 | <property name="visible">True</property> |
762 | <property name="can-focus">False</property> | 654 | <property name="can-focus">False</property> |
763 | <property name="label" translatable="yes">Chat title</property> | 655 | <property name="halign">start</property> |
764 | <property name="xalign">0</property> | 656 | <property name="label" translatable="yes">GNUnet Messenger</property> |
765 | <attributes> | 657 | <attributes> |
766 | <attribute name="weight" value="bold"/> | 658 | <attribute name="weight" value="bold"/> |
767 | </attributes> | 659 | </attributes> |
@@ -776,327 +668,436 @@ Author: Tobias Frisch | |||
776 | <object class="GtkLabel"> | 668 | <object class="GtkLabel"> |
777 | <property name="visible">True</property> | 669 | <property name="visible">True</property> |
778 | <property name="can-focus">False</property> | 670 | <property name="can-focus">False</property> |
779 | <property name="label" translatable="yes">Chat subtitle</property> | 671 | <property name="halign">start</property> |
780 | <property name="xalign">0</property> | 672 | <property name="label" translatable="yes">Version 0.0.1</property> |
781 | <attributes> | ||
782 | <attribute name="weight" value="light"/> | ||
783 | </attributes> | ||
784 | </object> | 673 | </object> |
785 | <packing> | 674 | <packing> |
786 | <property name="expand">True</property> | 675 | <property name="expand">False</property> |
787 | <property name="fill">True</property> | 676 | <property name="fill">True</property> |
788 | <property name="position">1</property> | 677 | <property name="position">1</property> |
789 | </packing> | 678 | </packing> |
790 | </child> | 679 | </child> |
791 | </object> | 680 | </object> |
792 | <packing> | 681 | <packing> |
793 | <property name="expand">True</property> | 682 | <property name="expand">False</property> |
794 | <property name="fill">True</property> | 683 | <property name="fill">True</property> |
795 | <property name="position">0</property> | 684 | <property name="pack-type">end</property> |
685 | <property name="position">2</property> | ||
796 | </packing> | 686 | </packing> |
797 | </child> | 687 | </child> |
688 | </object> | ||
689 | </child> | ||
690 | </object> | ||
691 | </child> | ||
692 | </object> | ||
693 | <packing> | ||
694 | <property name="expand">True</property> | ||
695 | <property name="fill">True</property> | ||
696 | <property name="position">2</property> | ||
697 | </packing> | ||
698 | </child> | ||
699 | <style> | ||
700 | <class name="flap-background"/> | ||
701 | </style> | ||
702 | </object> | ||
703 | </child> | ||
704 | </object> | ||
705 | </child> | ||
706 | <child> | ||
707 | <object class="GtkBox"> | ||
708 | <property name="visible">True</property> | ||
709 | <property name="can-focus">False</property> | ||
710 | <property name="hexpand">True</property> | ||
711 | <property name="orientation">vertical</property> | ||
712 | <child> | ||
713 | <object class="HdyFlap" id="flap_chat_details"> | ||
714 | <property name="visible">True</property> | ||
715 | <property name="can-focus">False</property> | ||
716 | <property name="flap-position">end</property> | ||
717 | <property name="reveal-flap">False</property> | ||
718 | <property name="fold-policy">always</property> | ||
719 | <child type="content"> | ||
720 | <object class="GtkBox"> | ||
721 | <property name="visible">True</property> | ||
722 | <property name="can-focus">False</property> | ||
723 | <property name="orientation">vertical</property> | ||
724 | <child> | ||
725 | <object class="GtkBox" id="chat-header-box"> | ||
726 | <property name="visible">True</property> | ||
727 | <property name="can-focus">False</property> | ||
728 | <property name="margin-start">8</property> | ||
729 | <property name="margin-end">8</property> | ||
730 | <property name="margin-top">8</property> | ||
731 | <property name="margin-bottom">8</property> | ||
732 | <property name="spacing">8</property> | ||
733 | <child> | ||
734 | <object class="GtkBox"> | ||
735 | <property name="visible">True</property> | ||
736 | <property name="can-focus">False</property> | ||
737 | <property name="halign">start</property> | ||
738 | <property name="margin-start">4</property> | ||
739 | <property name="margin-end">4</property> | ||
740 | <property name="orientation">vertical</property> | ||
798 | <child> | 741 | <child> |
799 | <object class="GtkButton"> | 742 | <object class="GtkLabel"> |
800 | <property name="visible">True</property> | 743 | <property name="visible">True</property> |
801 | <property name="can-focus">True</property> | 744 | <property name="can-focus">False</property> |
802 | <property name="receives-default">True</property> | 745 | <property name="label" translatable="yes">Chat title</property> |
803 | <property name="relief">none</property> | 746 | <property name="xalign">0</property> |
804 | <child> | 747 | <attributes> |
805 | <object class="GtkImage"> | 748 | <attribute name="weight" value="bold"/> |
806 | <property name="visible">True</property> | 749 | </attributes> |
807 | <property name="can-focus">False</property> | ||
808 | <property name="icon-name">view-more-symbolic</property> | ||
809 | </object> | ||
810 | </child> | ||
811 | </object> | 750 | </object> |
812 | <packing> | 751 | <packing> |
813 | <property name="expand">False</property> | 752 | <property name="expand">False</property> |
814 | <property name="fill">True</property> | 753 | <property name="fill">True</property> |
815 | <property name="pack-type">end</property> | 754 | <property name="position">0</property> |
816 | <property name="position">1</property> | ||
817 | </packing> | 755 | </packing> |
818 | </child> | 756 | </child> |
819 | <child> | 757 | <child> |
820 | <object class="GtkButton"> | 758 | <object class="GtkLabel"> |
821 | <property name="visible">True</property> | 759 | <property name="visible">True</property> |
822 | <property name="can-focus">True</property> | 760 | <property name="can-focus">False</property> |
823 | <property name="receives-default">True</property> | 761 | <property name="label" translatable="yes">Chat subtitle</property> |
824 | <property name="relief">none</property> | 762 | <property name="xalign">0</property> |
825 | <child> | 763 | <attributes> |
826 | <object class="GtkImage"> | 764 | <attribute name="weight" value="light"/> |
827 | <property name="visible">True</property> | 765 | </attributes> |
828 | <property name="can-focus">False</property> | ||
829 | <property name="icon-name">system-search-symbolic</property> | ||
830 | </object> | ||
831 | </child> | ||
832 | </object> | 766 | </object> |
833 | <packing> | 767 | <packing> |
834 | <property name="expand">False</property> | 768 | <property name="expand">True</property> |
835 | <property name="fill">True</property> | 769 | <property name="fill">True</property> |
836 | <property name="pack-type">end</property> | 770 | <property name="position">1</property> |
837 | <property name="position">2</property> | ||
838 | </packing> | 771 | </packing> |
839 | </child> | 772 | </child> |
840 | </object> | 773 | </object> |
841 | <packing> | 774 | <packing> |
842 | <property name="expand">False</property> | 775 | <property name="expand">True</property> |
843 | <property name="fill">True</property> | 776 | <property name="fill">True</property> |
844 | <property name="position">0</property> | 777 | <property name="position">0</property> |
845 | </packing> | 778 | </packing> |
846 | </child> | 779 | </child> |
847 | <child> | 780 | <child> |
848 | <object class="GtkScrolledWindow"> | 781 | <object class="GtkButton"> |
849 | <property name="visible">True</property> | 782 | <property name="visible">True</property> |
850 | <property name="can-focus">True</property> | 783 | <property name="can-focus">True</property> |
784 | <property name="receives-default">True</property> | ||
785 | <property name="relief">none</property> | ||
851 | <child> | 786 | <child> |
852 | <object class="GtkViewport"> | 787 | <object class="GtkImage"> |
853 | <property name="visible">True</property> | 788 | <property name="visible">True</property> |
854 | <property name="can-focus">False</property> | 789 | <property name="can-focus">False</property> |
855 | <child> | 790 | <property name="icon-name">view-more-symbolic</property> |
856 | <object class="GtkStack"> | ||
857 | <property name="visible">True</property> | ||
858 | <property name="can-focus">False</property> | ||
859 | <child> | ||
860 | <placeholder/> | ||
861 | </child> | ||
862 | </object> | ||
863 | </child> | ||
864 | </object> | 791 | </object> |
865 | </child> | 792 | </child> |
866 | </object> | 793 | </object> |
867 | <packing> | 794 | <packing> |
868 | <property name="expand">True</property> | 795 | <property name="expand">False</property> |
869 | <property name="fill">True</property> | 796 | <property name="fill">True</property> |
797 | <property name="pack-type">end</property> | ||
870 | <property name="position">1</property> | 798 | <property name="position">1</property> |
871 | </packing> | 799 | </packing> |
872 | </child> | 800 | </child> |
873 | <child> | 801 | <child> |
874 | <object class="GtkBox"> | 802 | <object class="GtkButton"> |
803 | <property name="visible">True</property> | ||
804 | <property name="can-focus">True</property> | ||
805 | <property name="receives-default">True</property> | ||
806 | <property name="relief">none</property> | ||
807 | <child> | ||
808 | <object class="GtkImage"> | ||
809 | <property name="visible">True</property> | ||
810 | <property name="can-focus">False</property> | ||
811 | <property name="icon-name">system-search-symbolic</property> | ||
812 | </object> | ||
813 | </child> | ||
814 | </object> | ||
815 | <packing> | ||
816 | <property name="expand">False</property> | ||
817 | <property name="fill">True</property> | ||
818 | <property name="pack-type">end</property> | ||
819 | <property name="position">2</property> | ||
820 | </packing> | ||
821 | </child> | ||
822 | </object> | ||
823 | <packing> | ||
824 | <property name="expand">False</property> | ||
825 | <property name="fill">True</property> | ||
826 | <property name="position">0</property> | ||
827 | </packing> | ||
828 | </child> | ||
829 | <child> | ||
830 | <object class="GtkScrolledWindow"> | ||
831 | <property name="visible">True</property> | ||
832 | <property name="can-focus">True</property> | ||
833 | <child> | ||
834 | <object class="GtkViewport"> | ||
875 | <property name="visible">True</property> | 835 | <property name="visible">True</property> |
876 | <property name="can-focus">False</property> | 836 | <property name="can-focus">False</property> |
877 | <property name="margin-start">8</property> | ||
878 | <property name="margin-end">8</property> | ||
879 | <property name="margin-top">8</property> | ||
880 | <property name="margin-bottom">8</property> | ||
881 | <property name="spacing">8</property> | ||
882 | <child> | 837 | <child> |
883 | <object class="GtkButton"> | 838 | <object class="GtkStack"> |
884 | <property name="visible">True</property> | 839 | <property name="visible">True</property> |
885 | <property name="can-focus">True</property> | 840 | <property name="can-focus">False</property> |
886 | <property name="receives-default">True</property> | ||
887 | <property name="valign">end</property> | ||
888 | <property name="relief">none</property> | ||
889 | <child> | 841 | <child> |
890 | <object class="GtkImage"> | 842 | <placeholder/> |
891 | <property name="visible">True</property> | ||
892 | <property name="can-focus">False</property> | ||
893 | <property name="icon-name">mail-attachment-symbolic</property> | ||
894 | </object> | ||
895 | </child> | 843 | </child> |
896 | </object> | 844 | </object> |
897 | <packing> | ||
898 | <property name="expand">False</property> | ||
899 | <property name="fill">True</property> | ||
900 | <property name="position">0</property> | ||
901 | </packing> | ||
902 | </child> | 845 | </child> |
846 | </object> | ||
847 | </child> | ||
848 | </object> | ||
849 | <packing> | ||
850 | <property name="expand">True</property> | ||
851 | <property name="fill">True</property> | ||
852 | <property name="position">1</property> | ||
853 | </packing> | ||
854 | </child> | ||
855 | <child> | ||
856 | <object class="GtkBox"> | ||
857 | <property name="visible">True</property> | ||
858 | <property name="can-focus">False</property> | ||
859 | <property name="margin-start">8</property> | ||
860 | <property name="margin-end">8</property> | ||
861 | <property name="margin-top">8</property> | ||
862 | <property name="margin-bottom">8</property> | ||
863 | <property name="spacing">8</property> | ||
864 | <child> | ||
865 | <object class="GtkButton"> | ||
866 | <property name="visible">True</property> | ||
867 | <property name="can-focus">True</property> | ||
868 | <property name="receives-default">True</property> | ||
869 | <property name="valign">end</property> | ||
870 | <property name="relief">none</property> | ||
903 | <child> | 871 | <child> |
904 | <object class="GtkTextView"> | 872 | <object class="GtkImage"> |
905 | <property name="width-request">250</property> | ||
906 | <property name="visible">True</property> | 873 | <property name="visible">True</property> |
907 | <property name="can-focus">True</property> | 874 | <property name="can-focus">False</property> |
908 | <property name="valign">end</property> | 875 | <property name="icon-name">mail-attachment-symbolic</property> |
909 | <property name="wrap-mode">word-char</property> | ||
910 | <property name="left-margin">8</property> | ||
911 | <property name="right-margin">8</property> | ||
912 | <property name="top-margin">8</property> | ||
913 | <property name="bottom-margin">8</property> | ||
914 | <property name="input-hints">GTK_INPUT_HINT_SPELLCHECK | GTK_INPUT_HINT_WORD_COMPLETION | GTK_INPUT_HINT_INHIBIT_OSK | GTK_INPUT_HINT_EMOJI | GTK_INPUT_HINT_NONE</property> | ||
915 | </object> | 876 | </object> |
916 | <packing> | ||
917 | <property name="expand">True</property> | ||
918 | <property name="fill">True</property> | ||
919 | <property name="position">1</property> | ||
920 | </packing> | ||
921 | </child> | 877 | </child> |
878 | </object> | ||
879 | <packing> | ||
880 | <property name="expand">False</property> | ||
881 | <property name="fill">True</property> | ||
882 | <property name="position">0</property> | ||
883 | </packing> | ||
884 | </child> | ||
885 | <child> | ||
886 | <object class="GtkTextView"> | ||
887 | <property name="width-request">250</property> | ||
888 | <property name="visible">True</property> | ||
889 | <property name="can-focus">True</property> | ||
890 | <property name="valign">end</property> | ||
891 | <property name="wrap-mode">word-char</property> | ||
892 | <property name="left-margin">8</property> | ||
893 | <property name="right-margin">8</property> | ||
894 | <property name="top-margin">8</property> | ||
895 | <property name="bottom-margin">8</property> | ||
896 | <property name="input-hints">GTK_INPUT_HINT_SPELLCHECK | GTK_INPUT_HINT_WORD_COMPLETION | GTK_INPUT_HINT_INHIBIT_OSK | GTK_INPUT_HINT_EMOJI | GTK_INPUT_HINT_NONE</property> | ||
897 | </object> | ||
898 | <packing> | ||
899 | <property name="expand">True</property> | ||
900 | <property name="fill">True</property> | ||
901 | <property name="position">1</property> | ||
902 | </packing> | ||
903 | </child> | ||
904 | <child> | ||
905 | <object class="GtkButton"> | ||
906 | <property name="visible">True</property> | ||
907 | <property name="can-focus">True</property> | ||
908 | <property name="receives-default">True</property> | ||
909 | <property name="valign">end</property> | ||
910 | <property name="relief">none</property> | ||
922 | <child> | 911 | <child> |
923 | <object class="GtkButton"> | 912 | <object class="GtkImage"> |
924 | <property name="visible">True</property> | 913 | <property name="visible">True</property> |
925 | <property name="can-focus">True</property> | 914 | <property name="can-focus">False</property> |
926 | <property name="receives-default">True</property> | 915 | <property name="icon-name">face-smile-symbolic</property> |
927 | <property name="valign">end</property> | ||
928 | <property name="relief">none</property> | ||
929 | <child> | ||
930 | <object class="GtkImage"> | ||
931 | <property name="visible">True</property> | ||
932 | <property name="can-focus">False</property> | ||
933 | <property name="icon-name">face-smile-symbolic</property> | ||
934 | </object> | ||
935 | </child> | ||
936 | </object> | 916 | </object> |
937 | <packing> | ||
938 | <property name="expand">False</property> | ||
939 | <property name="fill">True</property> | ||
940 | <property name="position">2</property> | ||
941 | </packing> | ||
942 | </child> | 917 | </child> |
918 | </object> | ||
919 | <packing> | ||
920 | <property name="expand">False</property> | ||
921 | <property name="fill">True</property> | ||
922 | <property name="position">2</property> | ||
923 | </packing> | ||
924 | </child> | ||
925 | <child> | ||
926 | <object class="GtkButton"> | ||
927 | <property name="visible">True</property> | ||
928 | <property name="can-focus">True</property> | ||
929 | <property name="receives-default">True</property> | ||
930 | <property name="valign">end</property> | ||
931 | <property name="relief">none</property> | ||
943 | <child> | 932 | <child> |
944 | <object class="GtkButton"> | 933 | <object class="GtkImage"> |
945 | <property name="visible">True</property> | 934 | <property name="visible">True</property> |
946 | <property name="can-focus">True</property> | 935 | <property name="can-focus">False</property> |
947 | <property name="receives-default">True</property> | 936 | <property name="icon-name">audio-input-microphone-symbolic</property> |
948 | <property name="valign">end</property> | ||
949 | <property name="relief">none</property> | ||
950 | <child> | ||
951 | <object class="GtkImage"> | ||
952 | <property name="visible">True</property> | ||
953 | <property name="can-focus">False</property> | ||
954 | <property name="icon-name">audio-input-microphone-symbolic</property> | ||
955 | </object> | ||
956 | </child> | ||
957 | </object> | 937 | </object> |
958 | <packing> | ||
959 | <property name="expand">False</property> | ||
960 | <property name="fill">True</property> | ||
961 | <property name="position">3</property> | ||
962 | </packing> | ||
963 | </child> | 938 | </child> |
964 | </object> | 939 | </object> |
965 | <packing> | 940 | <packing> |
966 | <property name="expand">False</property> | 941 | <property name="expand">False</property> |
967 | <property name="fill">True</property> | 942 | <property name="fill">True</property> |
968 | <property name="position">2</property> | 943 | <property name="position">3</property> |
969 | </packing> | 944 | </packing> |
970 | </child> | 945 | </child> |
971 | </object> | 946 | </object> |
947 | <packing> | ||
948 | <property name="expand">False</property> | ||
949 | <property name="fill">True</property> | ||
950 | <property name="position">2</property> | ||
951 | </packing> | ||
972 | </child> | 952 | </child> |
973 | <child type="separator"> | 953 | </object> |
974 | <object class="GtkSeparator"> | 954 | </child> |
975 | <property name="visible">True</property> | 955 | <child type="separator"> |
976 | <property name="can-focus">False</property> | 956 | <object class="GtkSeparator"> |
977 | </object> | 957 | <property name="visible">True</property> |
978 | </child> | 958 | <property name="can-focus">False</property> |
979 | <child type="flap"> | 959 | </object> |
980 | <object class="GtkBox"> | 960 | </child> |
961 | <child type="flap"> | ||
962 | <object class="GtkBox"> | ||
963 | <property name="visible">True</property> | ||
964 | <property name="can-focus">False</property> | ||
965 | <property name="orientation">vertical</property> | ||
966 | <child> | ||
967 | <object class="GtkBox" id="details-header-box"> | ||
968 | <property name="width-request">250</property> | ||
981 | <property name="visible">True</property> | 969 | <property name="visible">True</property> |
982 | <property name="can-focus">False</property> | 970 | <property name="can-focus">False</property> |
983 | <property name="orientation">vertical</property> | 971 | <property name="margin-start">8</property> |
972 | <property name="margin-end">8</property> | ||
973 | <property name="margin-top">8</property> | ||
974 | <property name="margin-bottom">8</property> | ||
984 | <child> | 975 | <child> |
985 | <object class="GtkBox" id="details-header-box"> | 976 | <object class="GtkStack"> |
986 | <property name="width-request">250</property> | ||
987 | <property name="visible">True</property> | 977 | <property name="visible">True</property> |
988 | <property name="can-focus">False</property> | 978 | <property name="can-focus">False</property> |
989 | <property name="margin-start">8</property> | ||
990 | <property name="margin-end">8</property> | ||
991 | <property name="margin-top">8</property> | ||
992 | <property name="margin-bottom">8</property> | ||
993 | <child> | 979 | <child> |
994 | <object class="GtkStack"> | 980 | <object class="GtkBox"> |
995 | <property name="visible">True</property> | 981 | <property name="visible">True</property> |
996 | <property name="can-focus">False</property> | 982 | <property name="can-focus">False</property> |
983 | <property name="spacing">8</property> | ||
997 | <child> | 984 | <child> |
998 | <object class="GtkBox"> | 985 | <object class="GtkLabel"> |
999 | <property name="visible">True</property> | 986 | <property name="visible">True</property> |
1000 | <property name="can-focus">False</property> | 987 | <property name="can-focus">False</property> |
1001 | <property name="spacing">8</property> | 988 | <property name="xpad">8</property> |
989 | <property name="label" translatable="yes">Chat Details</property> | ||
990 | <property name="xalign">0</property> | ||
991 | </object> | ||
992 | <packing> | ||
993 | <property name="expand">True</property> | ||
994 | <property name="fill">True</property> | ||
995 | <property name="position">0</property> | ||
996 | </packing> | ||
997 | </child> | ||
998 | <child> | ||
999 | <object class="GtkButton"> | ||
1000 | <property name="visible">True</property> | ||
1001 | <property name="can-focus">True</property> | ||
1002 | <property name="receives-default">True</property> | ||
1003 | <property name="relief">none</property> | ||
1002 | <child> | 1004 | <child> |
1003 | <object class="GtkLabel"> | 1005 | <object class="GtkImage"> |
1004 | <property name="visible">True</property> | 1006 | <property name="visible">True</property> |
1005 | <property name="can-focus">False</property> | 1007 | <property name="can-focus">False</property> |
1006 | <property name="xpad">8</property> | 1008 | <property name="icon-name">window-close-symbolic</property> |
1007 | <property name="label" translatable="yes">Chat Details</property> | ||
1008 | <property name="xalign">0</property> | ||
1009 | </object> | ||
1010 | <packing> | ||
1011 | <property name="expand">True</property> | ||
1012 | <property name="fill">True</property> | ||
1013 | <property name="position">0</property> | ||
1014 | </packing> | ||
1015 | </child> | ||
1016 | <child> | ||
1017 | <object class="GtkButton"> | ||
1018 | <property name="visible">True</property> | ||
1019 | <property name="can-focus">True</property> | ||
1020 | <property name="receives-default">True</property> | ||
1021 | <property name="relief">none</property> | ||
1022 | <child> | ||
1023 | <object class="GtkImage"> | ||
1024 | <property name="visible">True</property> | ||
1025 | <property name="can-focus">False</property> | ||
1026 | <property name="icon-name">window-close-symbolic</property> | ||
1027 | </object> | ||
1028 | </child> | ||
1029 | </object> | 1009 | </object> |
1030 | <packing> | ||
1031 | <property name="expand">False</property> | ||
1032 | <property name="fill">True</property> | ||
1033 | <property name="pack-type">end</property> | ||
1034 | <property name="position">1</property> | ||
1035 | </packing> | ||
1036 | </child> | 1010 | </child> |
1037 | </object> | 1011 | </object> |
1038 | <packing> | 1012 | <packing> |
1039 | <property name="name">page0</property> | 1013 | <property name="expand">False</property> |
1040 | <property name="title" translatable="yes">page0</property> | 1014 | <property name="fill">True</property> |
1015 | <property name="pack-type">end</property> | ||
1016 | <property name="position">1</property> | ||
1041 | </packing> | 1017 | </packing> |
1042 | </child> | 1018 | </child> |
1043 | </object> | 1019 | </object> |
1044 | <packing> | 1020 | <packing> |
1045 | <property name="expand">True</property> | 1021 | <property name="name">page0</property> |
1046 | <property name="fill">True</property> | 1022 | <property name="title" translatable="yes">page0</property> |
1047 | <property name="position">0</property> | ||
1048 | </packing> | 1023 | </packing> |
1049 | </child> | 1024 | </child> |
1050 | </object> | 1025 | </object> |
1051 | <packing> | 1026 | <packing> |
1052 | <property name="expand">False</property> | 1027 | <property name="expand">True</property> |
1053 | <property name="fill">True</property> | 1028 | <property name="fill">True</property> |
1054 | <property name="position">0</property> | 1029 | <property name="position">0</property> |
1055 | </packing> | 1030 | </packing> |
1056 | </child> | 1031 | </child> |
1032 | </object> | ||
1033 | <packing> | ||
1034 | <property name="expand">False</property> | ||
1035 | <property name="fill">True</property> | ||
1036 | <property name="position">0</property> | ||
1037 | </packing> | ||
1038 | </child> | ||
1039 | <child> | ||
1040 | <object class="GtkScrolledWindow"> | ||
1041 | <property name="visible">True</property> | ||
1042 | <property name="can-focus">True</property> | ||
1057 | <child> | 1043 | <child> |
1058 | <object class="GtkScrolledWindow"> | 1044 | <object class="GtkViewport"> |
1059 | <property name="visible">True</property> | 1045 | <property name="visible">True</property> |
1060 | <property name="can-focus">True</property> | 1046 | <property name="can-focus">False</property> |
1061 | <child> | 1047 | <child> |
1062 | <object class="GtkViewport"> | 1048 | <object class="GtkStack"> |
1063 | <property name="visible">True</property> | 1049 | <property name="visible">True</property> |
1064 | <property name="can-focus">False</property> | 1050 | <property name="can-focus">False</property> |
1065 | <child> | 1051 | <child> |
1066 | <object class="GtkStack"> | 1052 | <placeholder/> |
1067 | <property name="visible">True</property> | ||
1068 | <property name="can-focus">False</property> | ||
1069 | <child> | ||
1070 | <placeholder/> | ||
1071 | </child> | ||
1072 | </object> | ||
1073 | </child> | 1053 | </child> |
1074 | </object> | 1054 | </object> |
1075 | </child> | 1055 | </child> |
1076 | </object> | 1056 | </object> |
1077 | <packing> | ||
1078 | <property name="expand">True</property> | ||
1079 | <property name="fill">True</property> | ||
1080 | <property name="position">1</property> | ||
1081 | </packing> | ||
1082 | </child> | 1057 | </child> |
1083 | </object> | 1058 | </object> |
1059 | <packing> | ||
1060 | <property name="expand">True</property> | ||
1061 | <property name="fill">True</property> | ||
1062 | <property name="position">1</property> | ||
1063 | </packing> | ||
1084 | </child> | 1064 | </child> |
1065 | <style> | ||
1066 | <class name="flap-background"/> | ||
1067 | </style> | ||
1085 | </object> | 1068 | </object> |
1086 | <packing> | ||
1087 | <property name="expand">True</property> | ||
1088 | <property name="fill">True</property> | ||
1089 | <property name="position">3</property> | ||
1090 | </packing> | ||
1091 | </child> | 1069 | </child> |
1092 | </object> | 1070 | </object> |
1071 | <packing> | ||
1072 | <property name="expand">True</property> | ||
1073 | <property name="fill">True</property> | ||
1074 | <property name="position">3</property> | ||
1075 | </packing> | ||
1076 | </child> | ||
1077 | </object> | ||
1078 | </child> | ||
1079 | </object> | ||
1080 | </child> | ||
1081 | <child type="titlebar"> | ||
1082 | <object class="HdyHeaderBar" id="title_bar"> | ||
1083 | <property name="visible">True</property> | ||
1084 | <property name="can-focus">False</property> | ||
1085 | <property name="title" translatable="yes">Messenger</property> | ||
1086 | <property name="subtitle" translatable="yes">GNUnet</property> | ||
1087 | <property name="interpolate-size">True</property> | ||
1088 | <child> | ||
1089 | <object class="GtkButton"> | ||
1090 | <property name="visible">True</property> | ||
1091 | <property name="can-focus">True</property> | ||
1092 | <property name="receives-default">True</property> | ||
1093 | <child> | ||
1094 | <object class="GtkImage"> | ||
1095 | <property name="visible">True</property> | ||
1096 | <property name="can-focus">False</property> | ||
1097 | <property name="icon-name">go-previous-symbolic</property> | ||
1098 | </object> | ||
1093 | </child> | 1099 | </child> |
1094 | </object> | 1100 | </object> |
1095 | <packing> | ||
1096 | <property name="expand">True</property> | ||
1097 | <property name="fill">True</property> | ||
1098 | <property name="position">1</property> | ||
1099 | </packing> | ||
1100 | </child> | 1101 | </child> |
1101 | </object> | 1102 | </object> |
1102 | </child> | 1103 | </child> |
@@ -1109,14 +1110,4 @@ Author: Tobias Frisch | |||
1109 | <widget name="details-header-box"/> | 1110 | <widget name="details-header-box"/> |
1110 | </widgets> | 1111 | </widgets> |
1111 | </object> | 1112 | </object> |
1112 | <object class="GtkSizeGroup"> | ||
1113 | <widgets> | ||
1114 | <widget name="new-group-label"/> | ||
1115 | <widget name="new-platform-label"/> | ||
1116 | <widget name="contacts-label"/> | ||
1117 | <widget name="calls-label"/> | ||
1118 | <widget name="settings-label"/> | ||
1119 | <widget name="night-mode-label"/> | ||
1120 | </widgets> | ||
1121 | </object> | ||
1122 | </interface> | 1113 | </interface> |
diff --git a/src/messenger_gtk.c b/src/messenger_gtk.c index 089d07b..cfc4b84 100644 --- a/src/messenger_gtk.c +++ b/src/messenger_gtk.c | |||
@@ -23,11 +23,112 @@ | |||
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include <gtk-3.0/gtk/gtk.h> | 25 | #include <gtk-3.0/gtk/gtk.h> |
26 | #include <libhandy-1/handy.h> | ||
27 | |||
26 | #include <gnunet/gnunet_chat_lib.h> | 28 | #include <gnunet/gnunet_chat_lib.h> |
27 | 29 | ||
30 | G_MODULE_EXPORT void handle_user_details_button_click(GtkButton* button, | ||
31 | gpointer user_data) | ||
32 | { | ||
33 | HdyFlap* flap = HDY_FLAP(user_data); | ||
34 | |||
35 | if (TRUE == hdy_flap_get_reveal_flap(flap)) { | ||
36 | hdy_flap_set_reveal_flap(flap, FALSE); | ||
37 | } else { | ||
38 | hdy_flap_set_reveal_flap(flap, TRUE); | ||
39 | } | ||
40 | } | ||
41 | |||
42 | G_MODULE_EXPORT void handle_account_details_button_click(GtkButton* button, | ||
43 | gpointer user_data) | ||
44 | { | ||
45 | GtkRevealer* revealer = GTK_REVEALER(user_data); | ||
46 | |||
47 | if (TRUE == gtk_revealer_get_reveal_child(revealer)) { | ||
48 | gtk_revealer_set_reveal_child(revealer, FALSE); | ||
49 | } else { | ||
50 | gtk_revealer_set_reveal_child(revealer, TRUE); | ||
51 | } | ||
52 | } | ||
53 | |||
28 | int main(int argc, char** argv) { | 54 | int main(int argc, char** argv) { |
29 | gtk_init(&argc, &argv); | 55 | gtk_init(&argc, &argv); |
30 | 56 | ||
31 | GNUNET_CHAT_test("Hello world"); | 57 | GtkBuilder* builder = gtk_builder_new(); |
58 | gtk_builder_add_from_file( | ||
59 | builder, | ||
60 | "resources/ui/messenger.ui", | ||
61 | NULL | ||
62 | ); | ||
63 | |||
64 | GtkApplicationWindow* window = GTK_APPLICATION_WINDOW( | ||
65 | gtk_builder_get_object(builder, "main_window") | ||
66 | ); | ||
67 | |||
68 | GdkScreen* screen = gdk_screen_get_default(); | ||
69 | |||
70 | GtkCssProvider* provider = gtk_css_provider_new(); | ||
71 | gtk_css_provider_load_from_path( | ||
72 | provider, | ||
73 | "resources/css/style.css", | ||
74 | NULL | ||
75 | ); | ||
76 | |||
77 | gtk_style_context_add_provider_for_screen( | ||
78 | screen, | ||
79 | GTK_STYLE_PROVIDER(provider), | ||
80 | GTK_STYLE_PROVIDER_PRIORITY_APPLICATION | ||
81 | ); | ||
82 | |||
83 | HdyHeaderBar* title_bar = HDY_HEADER_BAR( | ||
84 | gtk_builder_get_object(builder, "title_bar") | ||
85 | ); | ||
86 | |||
87 | GtkButton* user_details_button = GTK_BUTTON( | ||
88 | gtk_builder_get_object(builder, "user_details_button") | ||
89 | ); | ||
90 | |||
91 | GtkButton* hide_user_details_button = GTK_BUTTON( | ||
92 | gtk_builder_get_object(builder, "hide_user_details_button") | ||
93 | ); | ||
94 | |||
95 | HdyFlap* flap_user_details = HDY_FLAP( | ||
96 | gtk_builder_get_object(builder, "flap_user_details") | ||
97 | ); | ||
98 | |||
99 | g_signal_connect( | ||
100 | user_details_button, | ||
101 | "clicked", | ||
102 | G_CALLBACK(handle_user_details_button_click), | ||
103 | flap_user_details | ||
104 | ); | ||
105 | |||
106 | g_signal_connect( | ||
107 | hide_user_details_button, | ||
108 | "clicked", | ||
109 | G_CALLBACK(handle_user_details_button_click), | ||
110 | flap_user_details | ||
111 | ); | ||
112 | |||
113 | GtkButton* account_details_button = GTK_BUTTON( | ||
114 | gtk_builder_get_object(builder, "account_details_button") | ||
115 | ); | ||
116 | |||
117 | GtkRevealer* account_details_revealer = GTK_REVEALER( | ||
118 | gtk_builder_get_object(builder, "account_details_revealer") | ||
119 | ); | ||
120 | |||
121 | g_signal_connect( | ||
122 | account_details_button, | ||
123 | "clicked", | ||
124 | G_CALLBACK(handle_account_details_button_click), | ||
125 | account_details_revealer | ||
126 | ); | ||
127 | |||
128 | gtk_widget_show(GTK_WIDGET(window)); | ||
129 | |||
130 | g_signal_connect(window, "destroy", G_CALLBACK(gtk_main_quit), NULL); | ||
131 | |||
132 | gtk_main(); | ||
32 | return 0; | 133 | return 0; |
33 | } | 134 | } |