Tue, 02 Jan 2024 00:36:32 -0600
Create a full widget for the new instant message window
This now uses AdwMessageDialog and is self contained but PidginApplication
manages a singleton of it.
Previously this used the request api. I'm not sure why, as the request fields
were created by the ui itself.
Testing Done:
Created an im with `Echo` on a `demo` account and was able to send and receive messages.
Reviewed at https://reviews.imfreedom.org/r/2896/
|
42562
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
1 | <?xml version="1.0" encoding="UTF-8"?> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
2 | <!-- |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
3 | Pidgin - Internet Messenger |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
4 | Copyright (C) Pidgin Developers <devel@pidgin.im> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
5 | |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
6 | This program is free software; you can redistribute it and/or |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
7 | modify it under the terms of the GNU General Public License |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
8 | as published by the Free Software Foundation; either version 2 |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
9 | of the License, or (at your option) any later version. |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
10 | |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
11 | This program is distributed in the hope that it will be useful, |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
14 | GNU General Public License for more details. |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
15 | |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
16 | You should have received a copy of the GNU General Public License |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
17 | along with this library; if not, see <https://www.gnu.org/licenses/>. |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
18 | --> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
19 | <interface> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
20 | <requires lib="gtk" version="4.0"/> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
21 | <!-- interface-license-type gplv2 --> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
22 | <!-- interface-name Pidgin --> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
23 | <!-- interface-description Internet Messenger --> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
24 | <!-- interface-copyright Pidgin Developers <devel@pidgin.im> --> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
25 | <template class="PidginIMWindow" parent="AdwMessageDialog"> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
26 | <property name="heading" translatable="yes">New Instant Message</property> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
27 | <property name="body" translatable="yes">Please enter the username or alias of the person you would like to IM.</property> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
28 | <property name="extra-child"> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
29 | <object class="AdwPreferencesGroup"> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
30 | <property name="vexpand">true</property> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
31 | <property name="hexpand">true</property> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
32 | <child> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
33 | <object class="PidginAccountRow" id="account"> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
34 | <property name="filter"> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
35 | <object class="GtkEveryFilter"> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
36 | <child> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
37 | <object class="GtkCustomFilter" id="filter"/> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
38 | </child> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
39 | <child> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
40 | <object class="PidginAccountFilterConnected"/> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
41 | </child> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
42 | </object> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
43 | </property> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
44 | </object> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
45 | </child> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
46 | <child> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
47 | <object class="AdwEntryRow" id="username"> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
48 | <property name="focusable">no</property> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
49 | <property name="title" translatable="yes">_Username</property> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
50 | <property name="use-underline">yes</property> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
51 | <property name="activates-default">yes</property> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
52 | <signal name="changed" handler="pidgin_im_window_username_changed_cb"/> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
53 | </object> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
54 | </child> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
55 | </object> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
56 | </property> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
57 | <property name="default-response">okay</property> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
58 | <property name="close-response">cancel</property> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
59 | <responses> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
60 | <response id="cancel" translatable="yes">_Cancel</response> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
61 | <response id="okay" translatable="yes" appearance="suggested" enabled="false">_Okay</response> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
62 | </responses> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
63 | <signal name="response" handler="pidgin_im_window_response_cb"/> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
64 | </template> |
|
f02878f30f91
Create a full widget for the new instant message window
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
65 | </interface> |