pidgin/resources/display-window.ui

Sun, 10 Aug 2025 23:44:08 +0800

author
Gong Zhile <gongzl@stu.hebust.edu.cn>
date
Sun, 10 Aug 2025 23:44:08 +0800
branch
purple_conversation_find_message_by_id
changeset 43309
099e1dfb856b
parent 43194
77aadc520684
permissions
-rw-r--r--

Add Purple.Conversation.find_message_by_id

The method was added so that a protocol or plugin could easily lookup
for the reference for a message. This will be especially useful when a
protocol received a quoted message but only with an id.

40577
953d563429b8 Create a new PidginConversationWindow widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
41527
4dff8cd4e9ea Convert PidginConversationWindow to GTK4
Gary Kramlich <grim@reaperworld.com>
parents: 41476
diff changeset
2 <!--
40577
953d563429b8 Create a new PidginConversationWindow widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
3 Pidgin - Internet Messenger
953d563429b8 Create a new PidginConversationWindow widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
4 Copyright (C) Pidgin Developers <devel@pidgin.im>
953d563429b8 Create a new PidginConversationWindow widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
5
953d563429b8 Create a new PidginConversationWindow widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
6 This program is free software; you can redistribute it and/or
953d563429b8 Create a new PidginConversationWindow widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
7 modify it under the terms of the GNU General Public License
953d563429b8 Create a new PidginConversationWindow widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
8 as published by the Free Software Foundation; either version 2
953d563429b8 Create a new PidginConversationWindow widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
9 of the License, or (at your option) any later version.
953d563429b8 Create a new PidginConversationWindow widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
10
953d563429b8 Create a new PidginConversationWindow widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
11 This program is distributed in the hope that it will be useful,
953d563429b8 Create a new PidginConversationWindow widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
953d563429b8 Create a new PidginConversationWindow widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
953d563429b8 Create a new PidginConversationWindow widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
14 GNU General Public License for more details.
953d563429b8 Create a new PidginConversationWindow widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
15
953d563429b8 Create a new PidginConversationWindow widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
16 You should have received a copy of the GNU General Public License
41527
4dff8cd4e9ea Convert PidginConversationWindow to GTK4
Gary Kramlich <grim@reaperworld.com>
parents: 41476
diff changeset
17 along with this library; if not, see <https://www.gnu.org/licenses/>.
40577
953d563429b8 Create a new PidginConversationWindow widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
18 -->
953d563429b8 Create a new PidginConversationWindow widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
19 <interface>
41527
4dff8cd4e9ea Convert PidginConversationWindow to GTK4
Gary Kramlich <grim@reaperworld.com>
parents: 41476
diff changeset
20 <requires lib="gtk" version="4.0"/>
41557
479fdb903b82 Convert the conversations status page to adwaita
Gary Kramlich <grim@reaperworld.com>
parents: 41527
diff changeset
21 <requires lib="Adw" version="1.0"/>
41223
e75da8f45164 Add the status box to the conversation window
Gary Kramlich <grim@reaperworld.com>
parents: 41184
diff changeset
22 <requires lib="pidgin" version="3.0"/>
40577
953d563429b8 Create a new PidginConversationWindow widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
23 <!-- interface-license-type gplv2 -->
953d563429b8 Create a new PidginConversationWindow widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
24 <!-- interface-name Pidgin -->
953d563429b8 Create a new PidginConversationWindow widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
25 <!-- interface-description Internet Messenger -->
953d563429b8 Create a new PidginConversationWindow widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
26 <!-- interface-copyright Pidgin Developers <devel@pidgin.im> -->
42798
1c536113a68a Add a menu to Pidgin.DisplayItem for Conversations that allows you to leave them
Gary Kramlich <grim@reaperworld.com>
parents: 42797
diff changeset
27 <menu id="conversation_menu">
1c536113a68a Add a menu to Pidgin.DisplayItem for Conversations that allows you to leave them
Gary Kramlich <grim@reaperworld.com>
parents: 42797
diff changeset
28 <section>
1c536113a68a Add a menu to Pidgin.DisplayItem for Conversations that allows you to leave them
Gary Kramlich <grim@reaperworld.com>
parents: 42797
diff changeset
29 <item>
1c536113a68a Add a menu to Pidgin.DisplayItem for Conversations that allows you to leave them
Gary Kramlich <grim@reaperworld.com>
parents: 42797
diff changeset
30 <attribute name="label" translatable="yes">Leave</attribute>
1c536113a68a Add a menu to Pidgin.DisplayItem for Conversations that allows you to leave them
Gary Kramlich <grim@reaperworld.com>
parents: 42797
diff changeset
31 <attribute name="action">conversation.leave</attribute>
1c536113a68a Add a menu to Pidgin.DisplayItem for Conversations that allows you to leave them
Gary Kramlich <grim@reaperworld.com>
parents: 42797
diff changeset
32 <attribute name="dynamic-target">id</attribute>
1c536113a68a Add a menu to Pidgin.DisplayItem for Conversations that allows you to leave them
Gary Kramlich <grim@reaperworld.com>
parents: 42797
diff changeset
33 </item>
1c536113a68a Add a menu to Pidgin.DisplayItem for Conversations that allows you to leave them
Gary Kramlich <grim@reaperworld.com>
parents: 42797
diff changeset
34 </section>
1c536113a68a Add a menu to Pidgin.DisplayItem for Conversations that allows you to leave them
Gary Kramlich <grim@reaperworld.com>
parents: 42797
diff changeset
35 </menu>
42050
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
36 <object class="GListStore" id="base_model">
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
37 <property name="item-type">PidginDisplayItem</property>
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
38 <child>
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
39 <object class="PidginDisplayItem">
42766
d823c3372e97 Some cleanups for PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42762
diff changeset
40 <property name="icon-name">system-users-symbolic</property>
42050
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
41 <property name="id">__contacts__</property>
43194
77aadc520684 Make all ui files use translatable="yes"
Gary Kramlich <grim@reaperworld.com>
parents: 42798
diff changeset
42 <property name="title" translatable="yes">Contacts</property>
42050
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
43 <property name="widget">
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
44 <object class="GtkScrolledWindow">
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
45 <child>
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
46 <object class="PidginContactList" id="contact_list"/>
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
47 </child>
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
48 </object>
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
49 </property>
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
50 </object>
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
51 </child>
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
52 <child>
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
53 <object class="PidginDisplayItem">
42766
d823c3372e97 Some cleanups for PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42762
diff changeset
54 <property name="icon-name">emblem-important-symbolic</property>
42050
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
55 <property name="id">__notifications__</property>
43194
77aadc520684 Make all ui files use translatable="yes"
Gary Kramlich <grim@reaperworld.com>
parents: 42798
diff changeset
56 <property name="title" translatable="yes">Notifications</property>
42050
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
57 <property name="widget">
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
58 <object class="GtkScrolledWindow">
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
59 <child>
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
60 <object class="PidginNotificationList" id="notification_list">
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
61 <property name="orientation">vertical</property>
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
62 </object>
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
63 </child>
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
64 </object>
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
65 </property>
42758
f95b932717bb Implement PidginNotifiable on PidginNotificationList
Gary Kramlich <grim@reaperworld.com>
parents: 42597
diff changeset
66 <binding name="needs-attention">
f95b932717bb Implement PidginNotifiable on PidginNotificationList
Gary Kramlich <grim@reaperworld.com>
parents: 42597
diff changeset
67 <lookup name="needs-attention">notification_list</lookup>
f95b932717bb Implement PidginNotifiable on PidginNotificationList
Gary Kramlich <grim@reaperworld.com>
parents: 42597
diff changeset
68 </binding>
f95b932717bb Implement PidginNotifiable on PidginNotificationList
Gary Kramlich <grim@reaperworld.com>
parents: 42597
diff changeset
69 <binding name="badge-number">
f95b932717bb Implement PidginNotifiable on PidginNotificationList
Gary Kramlich <grim@reaperworld.com>
parents: 42597
diff changeset
70 <lookup name="notification-count">notification_list</lookup>
f95b932717bb Implement PidginNotifiable on PidginNotificationList
Gary Kramlich <grim@reaperworld.com>
parents: 42597
diff changeset
71 </binding>
42050
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
72 </object>
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
73 </child>
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
74 <child>
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
75 <object class="PidginDisplayItem">
42766
d823c3372e97 Some cleanups for PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42762
diff changeset
76 <property name="icon-name">application-x-addon-symbolic</property>
42597
cc322d213d2e Add the Plugins list to the PidginDisplayWindow
Gary Kramlich <grim@reaperworld.com>
parents: 42526
diff changeset
77 <property name="id">__plugins__</property>
43194
77aadc520684 Make all ui files use translatable="yes"
Gary Kramlich <grim@reaperworld.com>
parents: 42798
diff changeset
78 <property name="title" translatable="yes">Plugins</property>
42797
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42795
diff changeset
79 <property name="menu">
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42795
diff changeset
80 <object class="PidginPluginsMenu"/>
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42795
diff changeset
81 </property>
42597
cc322d213d2e Add the Plugins list to the PidginDisplayWindow
Gary Kramlich <grim@reaperworld.com>
parents: 42526
diff changeset
82 <property name="widget">
cc322d213d2e Add the Plugins list to the PidginDisplayWindow
Gary Kramlich <grim@reaperworld.com>
parents: 42526
diff changeset
83 <object class="GtkBox">
cc322d213d2e Add the Plugins list to the PidginDisplayWindow
Gary Kramlich <grim@reaperworld.com>
parents: 42526
diff changeset
84 <property name="orientation">vertical</property>
cc322d213d2e Add the Plugins list to the PidginDisplayWindow
Gary Kramlich <grim@reaperworld.com>
parents: 42526
diff changeset
85 <child>
cc322d213d2e Add the Plugins list to the PidginDisplayWindow
Gary Kramlich <grim@reaperworld.com>
parents: 42526
diff changeset
86 <object class="PidginInfoPane">
cc322d213d2e Add the Plugins list to the PidginDisplayWindow
Gary Kramlich <grim@reaperworld.com>
parents: 42526
diff changeset
87 <property name="title" translatable="yes">Plugins</property>
cc322d213d2e Add the Plugins list to the PidginDisplayWindow
Gary Kramlich <grim@reaperworld.com>
parents: 42526
diff changeset
88 <child>
cc322d213d2e Add the Plugins list to the PidginDisplayWindow
Gary Kramlich <grim@reaperworld.com>
parents: 42526
diff changeset
89 <object class="GtkBox">
cc322d213d2e Add the Plugins list to the PidginDisplayWindow
Gary Kramlich <grim@reaperworld.com>
parents: 42526
diff changeset
90 <property name="margin-end">6</property>
cc322d213d2e Add the Plugins list to the PidginDisplayWindow
Gary Kramlich <grim@reaperworld.com>
parents: 42526
diff changeset
91 <property name="orientation">horizontal</property>
cc322d213d2e Add the Plugins list to the PidginDisplayWindow
Gary Kramlich <grim@reaperworld.com>
parents: 42526
diff changeset
92 <property name="spacing">6</property>
cc322d213d2e Add the Plugins list to the PidginDisplayWindow
Gary Kramlich <grim@reaperworld.com>
parents: 42526
diff changeset
93 <property name="valign">center</property>
cc322d213d2e Add the Plugins list to the PidginDisplayWindow
Gary Kramlich <grim@reaperworld.com>
parents: 42526
diff changeset
94 <child>
cc322d213d2e Add the Plugins list to the PidginDisplayWindow
Gary Kramlich <grim@reaperworld.com>
parents: 42526
diff changeset
95 <object class="GtkButton">
cc322d213d2e Add the Plugins list to the PidginDisplayWindow
Gary Kramlich <grim@reaperworld.com>
parents: 42526
diff changeset
96 <property name="tooltip-text" translatable="yes">Refresh</property>
cc322d213d2e Add the Plugins list to the PidginDisplayWindow
Gary Kramlich <grim@reaperworld.com>
parents: 42526
diff changeset
97 <!-- we can't actually refresh the gplugin pluging list right now, so we just show an insensitive button to remind us to fix it later. -->
cc322d213d2e Add the Plugins list to the PidginDisplayWindow
Gary Kramlich <grim@reaperworld.com>
parents: 42526
diff changeset
98 <property name="sensitive">false</property>
cc322d213d2e Add the Plugins list to the PidginDisplayWindow
Gary Kramlich <grim@reaperworld.com>
parents: 42526
diff changeset
99 <child>
cc322d213d2e Add the Plugins list to the PidginDisplayWindow
Gary Kramlich <grim@reaperworld.com>
parents: 42526
diff changeset
100 <object class="GtkImage">
cc322d213d2e Add the Plugins list to the PidginDisplayWindow
Gary Kramlich <grim@reaperworld.com>
parents: 42526
diff changeset
101 <property name="icon-name">view-refresh-symbolic</property>
cc322d213d2e Add the Plugins list to the PidginDisplayWindow
Gary Kramlich <grim@reaperworld.com>
parents: 42526
diff changeset
102 </object>
cc322d213d2e Add the Plugins list to the PidginDisplayWindow
Gary Kramlich <grim@reaperworld.com>
parents: 42526
diff changeset
103 </child>
cc322d213d2e Add the Plugins list to the PidginDisplayWindow
Gary Kramlich <grim@reaperworld.com>
parents: 42526
diff changeset
104 </object>
cc322d213d2e Add the Plugins list to the PidginDisplayWindow
Gary Kramlich <grim@reaperworld.com>
parents: 42526
diff changeset
105 </child>
cc322d213d2e Add the Plugins list to the PidginDisplayWindow
Gary Kramlich <grim@reaperworld.com>
parents: 42526
diff changeset
106 </object>
cc322d213d2e Add the Plugins list to the PidginDisplayWindow
Gary Kramlich <grim@reaperworld.com>
parents: 42526
diff changeset
107 </child>
cc322d213d2e Add the Plugins list to the PidginDisplayWindow
Gary Kramlich <grim@reaperworld.com>
parents: 42526
diff changeset
108 </object>
cc322d213d2e Add the Plugins list to the PidginDisplayWindow
Gary Kramlich <grim@reaperworld.com>
parents: 42526
diff changeset
109 </child>
cc322d213d2e Add the Plugins list to the PidginDisplayWindow
Gary Kramlich <grim@reaperworld.com>
parents: 42526
diff changeset
110 <child>
cc322d213d2e Add the Plugins list to the PidginDisplayWindow
Gary Kramlich <grim@reaperworld.com>
parents: 42526
diff changeset
111 <object class="GPluginGtkView" id="plugin_list">
cc322d213d2e Add the Plugins list to the PidginDisplayWindow
Gary Kramlich <grim@reaperworld.com>
parents: 42526
diff changeset
112 <property name="orientation">vertical</property>
cc322d213d2e Add the Plugins list to the PidginDisplayWindow
Gary Kramlich <grim@reaperworld.com>
parents: 42526
diff changeset
113 </object>
cc322d213d2e Add the Plugins list to the PidginDisplayWindow
Gary Kramlich <grim@reaperworld.com>
parents: 42526
diff changeset
114 </child>
cc322d213d2e Add the Plugins list to the PidginDisplayWindow
Gary Kramlich <grim@reaperworld.com>
parents: 42526
diff changeset
115 </object>
cc322d213d2e Add the Plugins list to the PidginDisplayWindow
Gary Kramlich <grim@reaperworld.com>
parents: 42526
diff changeset
116 </property>
cc322d213d2e Add the Plugins list to the PidginDisplayWindow
Gary Kramlich <grim@reaperworld.com>
parents: 42526
diff changeset
117 </object>
cc322d213d2e Add the Plugins list to the PidginDisplayWindow
Gary Kramlich <grim@reaperworld.com>
parents: 42526
diff changeset
118 </child>
cc322d213d2e Add the Plugins list to the PidginDisplayWindow
Gary Kramlich <grim@reaperworld.com>
parents: 42526
diff changeset
119 <child>
42795
fedfa85c0b40 Implement presenting and selecting conversations
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
120 <object class="PidginDisplayItem" id="conversations_item">
42766
d823c3372e97 Some cleanups for PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42762
diff changeset
121 <property name="icon-name">user-available-symbolic</property>
42050
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
122 <property name="id">__conversations__</property>
43194
77aadc520684 Make all ui files use translatable="yes"
Gary Kramlich <grim@reaperworld.com>
parents: 42798
diff changeset
123 <property name="title" translatable="yes">Conversations</property>
42050
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
124 <property name="widget">
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
125 <object class="AdwStatusPage">
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
126 <property name="icon-name">mail-send-symbolic</property>
43194
77aadc520684 Make all ui files use translatable="yes"
Gary Kramlich <grim@reaperworld.com>
parents: 42798
diff changeset
127 <property name="title" translatable="yes">Conversations</property>
77aadc520684 Make all ui files use translatable="yes"
Gary Kramlich <grim@reaperworld.com>
parents: 42798
diff changeset
128 <property name="description" translatable="yes">When you send a message to a friend or join a chat it will show up here!</property>
42050
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
129 </object>
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
130 </property>
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
131 <property name="children">
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
132 <object class="GListStore" id="conversation_model">
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
133 <property name="item-type">PidginDisplayItem</property>
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
134 </object>
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
135 </property>
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
136 </object>
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
137 </child>
41184
05b5c210352b Move conversation management from gtkconv.c to PidginConversationWindow.
Gary Kramlich <grim@reaperworld.com>
parents: 40824
diff changeset
138 </object>
41696
35f8ce475b21 Rename PidginConversationWindow to PidginDisplayWindow as it holds more than conversations now
Gary Kramlich <grim@reaperworld.com>
parents: 41635
diff changeset
139 <template class="PidginDisplayWindow" parent="GtkApplicationWindow">
41582
4ee4a8ddc190 Explicitly set show-menubar so our menubars are shown
Gary Kramlich <grim@reaperworld.com>
parents: 41571
diff changeset
140 <property name="show-menubar">1</property>
41635
5f18f53da695 Set default sizes for some windows
William Goodspeed <>
parents: 41606
diff changeset
141 <property name="default-height">450</property>
5f18f53da695 Set default sizes for some windows
William Goodspeed <>
parents: 41606
diff changeset
142 <property name="default-width">950</property>
41527
4dff8cd4e9ea Convert PidginConversationWindow to GTK4
Gary Kramlich <grim@reaperworld.com>
parents: 41476
diff changeset
143 <child>
4dff8cd4e9ea Convert PidginConversationWindow to GTK4
Gary Kramlich <grim@reaperworld.com>
parents: 41476
diff changeset
144 <object class="GtkEventControllerKey">
41571
49f620ec5902 Port conversations to GTK4
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41557
diff changeset
145 <property name="propagation-phase">capture</property>
41696
35f8ce475b21 Rename PidginConversationWindow to PidginDisplayWindow as it holds more than conversations now
Gary Kramlich <grim@reaperworld.com>
parents: 41635
diff changeset
146 <signal name="key-pressed" handler="pidgin_display_window_key_pressed_cb"/>
41527
4dff8cd4e9ea Convert PidginConversationWindow to GTK4
Gary Kramlich <grim@reaperworld.com>
parents: 41476
diff changeset
147 </object>
4dff8cd4e9ea Convert PidginConversationWindow to GTK4
Gary Kramlich <grim@reaperworld.com>
parents: 41476
diff changeset
148 </child>
40577
953d563429b8 Create a new PidginConversationWindow widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
149 <child>
953d563429b8 Create a new PidginConversationWindow widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
150 <object class="GtkBox" id="vbox">
953d563429b8 Create a new PidginConversationWindow widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
151 <property name="orientation">vertical</property>
953d563429b8 Create a new PidginConversationWindow widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
152 <child>
41184
05b5c210352b Move conversation management from gtkconv.c to PidginConversationWindow.
Gary Kramlich <grim@reaperworld.com>
parents: 40824
diff changeset
153 <object class="GtkPaned" id="paned">
41527
4dff8cd4e9ea Convert PidginConversationWindow to GTK4
Gary Kramlich <grim@reaperworld.com>
parents: 41476
diff changeset
154 <property name="vexpand">1</property>
4dff8cd4e9ea Convert PidginConversationWindow to GTK4
Gary Kramlich <grim@reaperworld.com>
parents: 41476
diff changeset
155 <property name="focusable">1</property>
41635
5f18f53da695 Set default sizes for some windows
William Goodspeed <>
parents: 41606
diff changeset
156 <property name="position">220</property>
41184
05b5c210352b Move conversation management from gtkconv.c to PidginConversationWindow.
Gary Kramlich <grim@reaperworld.com>
parents: 40824
diff changeset
157 <child>
41223
e75da8f45164 Add the status box to the conversation window
Gary Kramlich <grim@reaperworld.com>
parents: 41184
diff changeset
158 <object class="GtkBox">
41527
4dff8cd4e9ea Convert PidginConversationWindow to GTK4
Gary Kramlich <grim@reaperworld.com>
parents: 41476
diff changeset
159 <property name="margin-top">6</property>
4dff8cd4e9ea Convert PidginConversationWindow to GTK4
Gary Kramlich <grim@reaperworld.com>
parents: 41476
diff changeset
160 <property name="margin-start">6</property>
4dff8cd4e9ea Convert PidginConversationWindow to GTK4
Gary Kramlich <grim@reaperworld.com>
parents: 41476
diff changeset
161 <property name="margin-end">6</property>
4dff8cd4e9ea Convert PidginConversationWindow to GTK4
Gary Kramlich <grim@reaperworld.com>
parents: 41476
diff changeset
162 <property name="margin-bottom">6</property>
41223
e75da8f45164 Add the status box to the conversation window
Gary Kramlich <grim@reaperworld.com>
parents: 41184
diff changeset
163 <property name="orientation">vertical</property>
e75da8f45164 Add the status box to the conversation window
Gary Kramlich <grim@reaperworld.com>
parents: 41184
diff changeset
164 <property name="spacing">6</property>
41184
05b5c210352b Move conversation management from gtkconv.c to PidginConversationWindow.
Gary Kramlich <grim@reaperworld.com>
parents: 40824
diff changeset
165 <child>
41223
e75da8f45164 Add the status box to the conversation window
Gary Kramlich <grim@reaperworld.com>
parents: 41184
diff changeset
166 <object class="GtkScrolledWindow">
41527
4dff8cd4e9ea Convert PidginConversationWindow to GTK4
Gary Kramlich <grim@reaperworld.com>
parents: 41476
diff changeset
167 <property name="vexpand">1</property>
4dff8cd4e9ea Convert PidginConversationWindow to GTK4
Gary Kramlich <grim@reaperworld.com>
parents: 41476
diff changeset
168 <property name="focusable">1</property>
4dff8cd4e9ea Convert PidginConversationWindow to GTK4
Gary Kramlich <grim@reaperworld.com>
parents: 41476
diff changeset
169 <property name="propagate-natural-width">1</property>
42050
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
170 <style>
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
171 <class name="sidebar"/>
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
172 </style>
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
173 <child>
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
174 <object class="GtkListView" id="view">
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
175 <property name="model">
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
176 <object class="GtkSingleSelection" id="selection_model">
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
177 <property name="autoselect">1</property>
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
178 <property name="can-unselect">0</property>
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
179 <signal name="notify::selected-item" handler="pidgin_display_window_selected_item_changed_cb"/>
41223
e75da8f45164 Add the status box to the conversation window
Gary Kramlich <grim@reaperworld.com>
parents: 41184
diff changeset
180 </object>
42050
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
181 </property>
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
182 <property name="factory">
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
183 <object class="GtkBuilderListItemFactory">
42758
f95b932717bb Implement PidginNotifiable on PidginNotificationList
Gary Kramlich <grim@reaperworld.com>
parents: 42597
diff changeset
184 <property name="resource">/im/pidgin/Pidgin3/display-item.ui</property>
41223
e75da8f45164 Add the status box to the conversation window
Gary Kramlich <grim@reaperworld.com>
parents: 41184
diff changeset
185 </object>
42050
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
186 </property>
41184
05b5c210352b Move conversation management from gtkconv.c to PidginConversationWindow.
Gary Kramlich <grim@reaperworld.com>
parents: 40824
diff changeset
187 </object>
42050
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
188 </child>
41184
05b5c210352b Move conversation management from gtkconv.c to PidginConversationWindow.
Gary Kramlich <grim@reaperworld.com>
parents: 40824
diff changeset
189 </object>
05b5c210352b Move conversation management from gtkconv.c to PidginConversationWindow.
Gary Kramlich <grim@reaperworld.com>
parents: 40824
diff changeset
190 </child>
05b5c210352b Move conversation management from gtkconv.c to PidginConversationWindow.
Gary Kramlich <grim@reaperworld.com>
parents: 40824
diff changeset
191 </object>
05b5c210352b Move conversation management from gtkconv.c to PidginConversationWindow.
Gary Kramlich <grim@reaperworld.com>
parents: 40824
diff changeset
192 </child>
05b5c210352b Move conversation management from gtkconv.c to PidginConversationWindow.
Gary Kramlich <grim@reaperworld.com>
parents: 40824
diff changeset
193 <child>
42050
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
194 <object class="AdwBin" id="bin">
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
195 <property name="vexpand">1</property>
5ac6db2b8c2d Make the DisplayWindow use a GtkListView
Gary Kramlich <grim@reaperworld.com>
parents: 42011
diff changeset
196 <property name="hexpand">1</property>
41184
05b5c210352b Move conversation management from gtkconv.c to PidginConversationWindow.
Gary Kramlich <grim@reaperworld.com>
parents: 40824
diff changeset
197 </object>
05b5c210352b Move conversation management from gtkconv.c to PidginConversationWindow.
Gary Kramlich <grim@reaperworld.com>
parents: 40824
diff changeset
198 </child>
05b5c210352b Move conversation management from gtkconv.c to PidginConversationWindow.
Gary Kramlich <grim@reaperworld.com>
parents: 40824
diff changeset
199 </object>
40577
953d563429b8 Create a new PidginConversationWindow widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
200 </child>
953d563429b8 Create a new PidginConversationWindow widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
201 </object>
953d563429b8 Create a new PidginConversationWindow widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
202 </child>
953d563429b8 Create a new PidginConversationWindow widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
203 </template>
953d563429b8 Create a new PidginConversationWindow widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
204 </interface>

mercurial