pidgin/resources/Dialogs/addbuddy.ui

Tue, 17 Oct 2023 03:13:07 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Tue, 17 Oct 2023 03:13:07 -0500
changeset 42365
45ce6d3f6386
parent 41901
55a099a1e619
permissions
-rw-r--r--

Create PidginAccountRow which subclasses AdwRow

This allows account selection to fit in to a list view much more naturally.

Testing Done:
Added a buddy and opened the get user info dialog to tests the requests side.

Reviewed at https://reviews.imfreedom.org/r/2660/

41491
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
2 <!-- Generated with glade 3.38.2
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
3
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
4 Pidgin - Internet Messenger
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
5 Copyright (C) Pidgin Developers <devel@pidgin.im>
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
6
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
7 This program is free software; you can redistribute it and/or
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
8 modify it under the terms of the GNU General Public License
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
9 as published by the Free Software Foundation; either version 2
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
10 of the License, or (at your option) any later version.
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
11
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
12 This program is distributed in the hope that it will be useful,
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
15 GNU General Public License for more details.
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
16
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
17 You should have received a copy of the GNU General Public License
41561
ac5416e7e4f5 Port PidginAddBuddyDialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents: 41491
diff changeset
18 along with this program; if not, see <https://www.gnu.org/licenses/>.
41491
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
19
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
20 -->
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
21 <interface>
41561
ac5416e7e4f5 Port PidginAddBuddyDialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents: 41491
diff changeset
22 <requires lib="gtk" version="4.0"/>
41491
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
23 <requires lib="pidgin" version="3.0"/>
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
24 <!-- interface-license-type gplv2 -->
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
25 <!-- interface-name Pidgin -->
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
26 <!-- interface-description Internet Messenger -->
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
27 <!-- interface-copyright Pidgin Developers <devel@pidgin.im> -->
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
28 <template class="PidginAddBuddyDialog" parent="GtkDialog">
41561
ac5416e7e4f5 Port PidginAddBuddyDialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents: 41491
diff changeset
29 <property name="title" translatable="1">Add Buddy</property>
ac5416e7e4f5 Port PidginAddBuddyDialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents: 41491
diff changeset
30 <property name="resizable">0</property>
41491
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
31 <signal name="response" handler="pidgin_add_buddy_dialog_response_cb" swapped="no"/>
41561
ac5416e7e4f5 Port PidginAddBuddyDialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents: 41491
diff changeset
32 <child internal-child="content_area">
41491
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
33 <object class="GtkBox">
41901
55a099a1e619 Modernize add buddy/chat dialogs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41896
diff changeset
34 <property name="margin-bottom">24</property>
55a099a1e619 Modernize add buddy/chat dialogs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41896
diff changeset
35 <property name="margin-end">24</property>
55a099a1e619 Modernize add buddy/chat dialogs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41896
diff changeset
36 <property name="margin-start">24</property>
55a099a1e619 Modernize add buddy/chat dialogs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41896
diff changeset
37 <property name="margin-top">24</property>
41491
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
38 <property name="orientation">vertical</property>
41901
55a099a1e619 Modernize add buddy/chat dialogs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41896
diff changeset
39 <property name="spacing">24</property>
41491
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
40 <child>
41588
1d0457d4b245 Fix up the add buddy dialog
Gary Kramlich <grim@reaperworld.com>
parents: 41561
diff changeset
41 <object class="GtkLabel">
41901
55a099a1e619 Modernize add buddy/chat dialogs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41896
diff changeset
42 <property name="css-classes">title-1</property>
55a099a1e619 Modernize add buddy/chat dialogs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41896
diff changeset
43 <property name="label" translatable="1">Add a buddy</property>
41588
1d0457d4b245 Fix up the add buddy dialog
Gary Kramlich <grim@reaperworld.com>
parents: 41561
diff changeset
44 </object>
1d0457d4b245 Fix up the add buddy dialog
Gary Kramlich <grim@reaperworld.com>
parents: 41561
diff changeset
45 </child>
1d0457d4b245 Fix up the add buddy dialog
Gary Kramlich <grim@reaperworld.com>
parents: 41561
diff changeset
46 <child>
42365
45ce6d3f6386 Create PidginAccountRow which subclasses AdwRow
Gary Kramlich <grim@reaperworld.com>
parents: 41901
diff changeset
47 <object class="AdwPreferencesGroup">
45ce6d3f6386 Create PidginAccountRow which subclasses AdwRow
Gary Kramlich <grim@reaperworld.com>
parents: 41901
diff changeset
48 <property name="title" translatable="1">Buddy information</property>
41588
1d0457d4b245 Fix up the add buddy dialog
Gary Kramlich <grim@reaperworld.com>
parents: 41561
diff changeset
49 <child>
42365
45ce6d3f6386 Create PidginAccountRow which subclasses AdwRow
Gary Kramlich <grim@reaperworld.com>
parents: 41901
diff changeset
50 <object class="PidginAccountRow" id="account">
41588
1d0457d4b245 Fix up the add buddy dialog
Gary Kramlich <grim@reaperworld.com>
parents: 41561
diff changeset
51 <property name="hexpand">1</property>
41864
6f490dec468f Move PidginAccountChooser to GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41854
diff changeset
52 <property name="filter">
6f490dec468f Move PidginAccountChooser to GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41854
diff changeset
53 <object class="GtkEveryFilter">
6f490dec468f Move PidginAccountChooser to GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41854
diff changeset
54 <child>
6f490dec468f Move PidginAccountChooser to GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41854
diff changeset
55 <object class="GtkCustomFilter" id="filter"/>
6f490dec468f Move PidginAccountChooser to GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41854
diff changeset
56 </child>
6f490dec468f Move PidginAccountChooser to GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41854
diff changeset
57 <child>
6f490dec468f Move PidginAccountChooser to GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41854
diff changeset
58 <object class="PidginAccountFilterConnected"/>
6f490dec468f Move PidginAccountChooser to GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41854
diff changeset
59 </child>
6f490dec468f Move PidginAccountChooser to GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41854
diff changeset
60 </object>
6f490dec468f Move PidginAccountChooser to GtkDropDown
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41854
diff changeset
61 </property>
41854
c1d7e7445b0f Avoid GtkComboBox-isms with PidginAccountChooser
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41633
diff changeset
62 <signal name="notify::account" handler="pidgin_add_buddy_dialog_account_changed_cb" swapped="no"/>
41588
1d0457d4b245 Fix up the add buddy dialog
Gary Kramlich <grim@reaperworld.com>
parents: 41561
diff changeset
63 </object>
1d0457d4b245 Fix up the add buddy dialog
Gary Kramlich <grim@reaperworld.com>
parents: 41561
diff changeset
64 </child>
1d0457d4b245 Fix up the add buddy dialog
Gary Kramlich <grim@reaperworld.com>
parents: 41561
diff changeset
65 <child>
41901
55a099a1e619 Modernize add buddy/chat dialogs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41896
diff changeset
66 <object class="AdwEntryRow" id="username">
55a099a1e619 Modernize add buddy/chat dialogs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41896
diff changeset
67 <property name="title" translatable="1">Buddy&apos;s _username</property>
41588
1d0457d4b245 Fix up the add buddy dialog
Gary Kramlich <grim@reaperworld.com>
parents: 41561
diff changeset
68 <property name="use-underline">1</property>
41901
55a099a1e619 Modernize add buddy/chat dialogs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41896
diff changeset
69 <property name="activates-default">1</property>
55a099a1e619 Modernize add buddy/chat dialogs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41896
diff changeset
70 <signal name="changed" handler="pidgin_add_buddy_dialog_username_changed_cb" object="PidginAddBuddyDialog" swapped="no"/>
41491
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
71 </object>
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
72 </child>
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
73 <child>
41901
55a099a1e619 Modernize add buddy/chat dialogs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41896
diff changeset
74 <object class="AdwEntryRow" id="alias">
55a099a1e619 Modernize add buddy/chat dialogs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41896
diff changeset
75 <property name="title" translatable="1">(Optional) A_lias</property>
41588
1d0457d4b245 Fix up the add buddy dialog
Gary Kramlich <grim@reaperworld.com>
parents: 41561
diff changeset
76 <property name="use-underline">1</property>
41491
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
77 </object>
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
78 </child>
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
79 <child>
41901
55a099a1e619 Modernize add buddy/chat dialogs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41896
diff changeset
80 <object class="AdwEntryRow" id="message">
55a099a1e619 Modernize add buddy/chat dialogs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41896
diff changeset
81 <property name="title" translatable="1">(Optional) _Invite message</property>
41588
1d0457d4b245 Fix up the add buddy dialog
Gary Kramlich <grim@reaperworld.com>
parents: 41561
diff changeset
82 <property name="use-underline">1</property>
41901
55a099a1e619 Modernize add buddy/chat dialogs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41896
diff changeset
83 <property name="sensitive">0</property>
41491
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
84 </object>
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
85 </child>
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
86 <child>
41901
55a099a1e619 Modernize add buddy/chat dialogs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41896
diff changeset
87 <object class="AdwActionRow">
55a099a1e619 Modernize add buddy/chat dialogs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41896
diff changeset
88 <property name="activatable-widget">group</property>
55a099a1e619 Modernize add buddy/chat dialogs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41896
diff changeset
89 <property name="focusable">0</property>
55a099a1e619 Modernize add buddy/chat dialogs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41896
diff changeset
90 <property name="title" translatable="1">Add buddy to _group</property>
41588
1d0457d4b245 Fix up the add buddy dialog
Gary Kramlich <grim@reaperworld.com>
parents: 41561
diff changeset
91 <property name="use-underline">1</property>
41901
55a099a1e619 Modernize add buddy/chat dialogs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41896
diff changeset
92 <child>
55a099a1e619 Modernize add buddy/chat dialogs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41896
diff changeset
93 <object class="GtkComboBoxText" id="group">
55a099a1e619 Modernize add buddy/chat dialogs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41896
diff changeset
94 <property name="hexpand">1</property>
55a099a1e619 Modernize add buddy/chat dialogs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41896
diff changeset
95 <property name="has-entry">1</property>
55a099a1e619 Modernize add buddy/chat dialogs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41896
diff changeset
96 <property name="valign">center</property>
55a099a1e619 Modernize add buddy/chat dialogs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41896
diff changeset
97 </object>
55a099a1e619 Modernize add buddy/chat dialogs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41896
diff changeset
98 </child>
41491
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
99 </object>
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
100 </child>
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
101 </object>
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
102 </child>
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
103 </object>
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
104 </child>
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
105 <action-widgets>
41896
6ff3224e40da Use response names in .ui dialog files
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41864
diff changeset
106 <action-widget response="cancel">button1</action-widget>
6ff3224e40da Use response names in .ui dialog files
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41864
diff changeset
107 <action-widget response="ok">button2</action-widget>
41491
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
108 </action-widgets>
41588
1d0457d4b245 Fix up the add buddy dialog
Gary Kramlich <grim@reaperworld.com>
parents: 41561
diff changeset
109 <child type="action">
1d0457d4b245 Fix up the add buddy dialog
Gary Kramlich <grim@reaperworld.com>
parents: 41561
diff changeset
110 <object class="GtkButton" id="button1">
1d0457d4b245 Fix up the add buddy dialog
Gary Kramlich <grim@reaperworld.com>
parents: 41561
diff changeset
111 <property name="label" translatable="1">_Cancel</property>
1d0457d4b245 Fix up the add buddy dialog
Gary Kramlich <grim@reaperworld.com>
parents: 41561
diff changeset
112 <property name="focusable">1</property>
1d0457d4b245 Fix up the add buddy dialog
Gary Kramlich <grim@reaperworld.com>
parents: 41561
diff changeset
113 <property name="receives-default">1</property>
1d0457d4b245 Fix up the add buddy dialog
Gary Kramlich <grim@reaperworld.com>
parents: 41561
diff changeset
114 <property name="use-underline">1</property>
1d0457d4b245 Fix up the add buddy dialog
Gary Kramlich <grim@reaperworld.com>
parents: 41561
diff changeset
115 </object>
1d0457d4b245 Fix up the add buddy dialog
Gary Kramlich <grim@reaperworld.com>
parents: 41561
diff changeset
116 </child>
1d0457d4b245 Fix up the add buddy dialog
Gary Kramlich <grim@reaperworld.com>
parents: 41561
diff changeset
117 <child type="action">
1d0457d4b245 Fix up the add buddy dialog
Gary Kramlich <grim@reaperworld.com>
parents: 41561
diff changeset
118 <object class="GtkButton" id="button2">
41901
55a099a1e619 Modernize add buddy/chat dialogs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41896
diff changeset
119 <property name="css-classes">suggested-action</property>
55a099a1e619 Modernize add buddy/chat dialogs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41896
diff changeset
120 <property name="focusable">1</property>
41588
1d0457d4b245 Fix up the add buddy dialog
Gary Kramlich <grim@reaperworld.com>
parents: 41561
diff changeset
121 <property name="label" translatable="1">_Add</property>
41901
55a099a1e619 Modernize add buddy/chat dialogs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41896
diff changeset
122 <property name="receives-default">1</property>
41588
1d0457d4b245 Fix up the add buddy dialog
Gary Kramlich <grim@reaperworld.com>
parents: 41561
diff changeset
123 <property name="sensitive">0</property>
1d0457d4b245 Fix up the add buddy dialog
Gary Kramlich <grim@reaperworld.com>
parents: 41561
diff changeset
124 <property name="use-underline">1</property>
41561
ac5416e7e4f5 Port PidginAddBuddyDialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents: 41491
diff changeset
125 </object>
ac5416e7e4f5 Port PidginAddBuddyDialog to GTK4
Gary Kramlich <grim@reaperworld.com>
parents: 41491
diff changeset
126 </child>
41491
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
127 </template>
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
128 </interface>

mercurial