pidgin/resources/display-item.ui

Tue, 13 May 2025 14:29:06 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Tue, 13 May 2025 14:29:06 -0500
changeset 43251
8bd7eee2f178
parent 43208
b81c104ccbe0
permissions
-rw-r--r--

Create a Privacy preference page with the send typing notification preference

This only controls whether or not the conversation window will send typing
notifications, plugins can still do this on their own.

Testing Done:
Used ngrep to verify if the irc typing messages were being sent or not. Also manually modified the settings file and verified the ui update and vice versa.

Bugs closed: PIDGIN-17450

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

42758
f95b932717bb Implement PidginNotifiable on PidginNotificationList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
f95b932717bb Implement PidginNotifiable on PidginNotificationList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
2 <interface>
f95b932717bb Implement PidginNotifiable on PidginNotificationList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
3 <template class="GtkListItem">
f95b932717bb Implement PidginNotifiable on PidginNotificationList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
4 <property name="child">
f95b932717bb Implement PidginNotifiable on PidginNotificationList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
5 <object class="GtkTreeExpander" id="expander">
f95b932717bb Implement PidginNotifiable on PidginNotificationList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
6 <binding name="list-row">
f95b932717bb Implement PidginNotifiable on PidginNotificationList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
7 <lookup name="item">GtkListItem</lookup>
f95b932717bb Implement PidginNotifiable on PidginNotificationList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
8 </binding>
f95b932717bb Implement PidginNotifiable on PidginNotificationList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
9 <property name="child">
f95b932717bb Implement PidginNotifiable on PidginNotificationList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
10 <object class="GtkBox">
f95b932717bb Implement PidginNotifiable on PidginNotificationList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
11 <property name="orientation">horizontal</property>
f95b932717bb Implement PidginNotifiable on PidginNotificationList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
12 <property name="spacing">6</property>
42766
d823c3372e97 Some cleanups for PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42758
diff changeset
13 <binding name="tooltip-text">
d823c3372e97 Some cleanups for PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42758
diff changeset
14 <lookup name="title" type="PidginDisplayItem">
d823c3372e97 Some cleanups for PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42758
diff changeset
15 <lookup name="item">expander</lookup>
d823c3372e97 Some cleanups for PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42758
diff changeset
16 </lookup>
d823c3372e97 Some cleanups for PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42758
diff changeset
17 </binding>
d823c3372e97 Some cleanups for PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42758
diff changeset
18 <child>
42797
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
19 <object class="GtkEventControllerMotion" id="motion_controller"/>
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
20 </child>
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
21 <child>
42766
d823c3372e97 Some cleanups for PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42758
diff changeset
22 <object class="GtkImage">
d823c3372e97 Some cleanups for PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42758
diff changeset
23 <binding name="icon-name">
d823c3372e97 Some cleanups for PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42758
diff changeset
24 <lookup name="icon-name" type="PidginDisplayItem">
d823c3372e97 Some cleanups for PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42758
diff changeset
25 <lookup name="item">expander</lookup>
d823c3372e97 Some cleanups for PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42758
diff changeset
26 </lookup>
d823c3372e97 Some cleanups for PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42758
diff changeset
27 </binding>
d823c3372e97 Some cleanups for PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42758
diff changeset
28 </object>
d823c3372e97 Some cleanups for PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42758
diff changeset
29 </child>
42758
f95b932717bb Implement PidginNotifiable on PidginNotificationList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
30 <child>
f95b932717bb Implement PidginNotifiable on PidginNotificationList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
31 <object class="GtkLabel">
f95b932717bb Implement PidginNotifiable on PidginNotificationList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
32 <property name="xalign">0</property>
42766
d823c3372e97 Some cleanups for PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42758
diff changeset
33 <property name="hexpand">1</property>
d823c3372e97 Some cleanups for PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42758
diff changeset
34 <property name="ellipsize">end</property>
42758
f95b932717bb Implement PidginNotifiable on PidginNotificationList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
35 <binding name="label">
f95b932717bb Implement PidginNotifiable on PidginNotificationList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
36 <lookup name="title" type="PidginDisplayItem">
f95b932717bb Implement PidginNotifiable on PidginNotificationList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
37 <lookup name="item">expander</lookup>
f95b932717bb Implement PidginNotifiable on PidginNotificationList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
38 </lookup>
f95b932717bb Implement PidginNotifiable on PidginNotificationList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
39 </binding>
f95b932717bb Implement PidginNotifiable on PidginNotificationList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
40 </object>
f95b932717bb Implement PidginNotifiable on PidginNotificationList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
41 </child>
f95b932717bb Implement PidginNotifiable on PidginNotificationList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
42 <child>
42797
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
43 <object class="GtkStack">
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
44 <property name="transition-type">crossfade</property>
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
45 <binding name="visible-child-name">
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
46 <closure type="gchararray" function="pidgin_display_window_show_item_actions_cb">
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
47 <lookup name="selected">GtkListItem</lookup>
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
48 <lookup name="contains-pointer">motion_controller</lookup>
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
49 <lookup name="active">menu_button</lookup>
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
50 </closure>
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
51 </binding>
42766
d823c3372e97 Some cleanups for PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42758
diff changeset
52 <child>
42797
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
53 <object class="GtkStackPage">
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
54 <property name="name">notifications</property>
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
55 <property name="child">
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
56 <object class="GtkBox">
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
57 <property name="spacing">6</property>
43208
b81c104ccbe0 Fix an alignment issue with the conversation 3 vertical dots menu
Gary Kramlich <grim@reaperworld.com>
parents: 42797
diff changeset
58 <property name="halign">end</property>
b81c104ccbe0 Fix an alignment issue with the conversation 3 vertical dots menu
Gary Kramlich <grim@reaperworld.com>
parents: 42797
diff changeset
59 <property name="hexpand">true</property>
b81c104ccbe0 Fix an alignment issue with the conversation 3 vertical dots menu
Gary Kramlich <grim@reaperworld.com>
parents: 42797
diff changeset
60 <property name="orientation">horizontal</property>
42797
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
61 <child>
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
62 <object class="GtkLabel">
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
63 <style>
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
64 <class name="notification-count"/>
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
65 </style>
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
66 <property name="valign">center</property>
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
67 <binding name="visible">
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
68 <lookup name="needs-attention" type="PidginDisplayItem">
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
69 <lookup name="item">expander</lookup>
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
70 </lookup>
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
71 </binding>
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
72 <binding name="label">
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
73 <lookup name="badge-number" type="PidginDisplayItem">
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
74 <lookup name="item">expander</lookup>
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
75 </lookup>
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
76 </binding>
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
77 </object>
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
78 </child>
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
79 </object>
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
80 </property>
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
81 </object>
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
82 </child>
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
83 <child>
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
84 <object class="GtkStackPage">
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
85 <property name="name">actions</property>
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
86 <property name="child">
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
87 <object class="GtkBox">
43208
b81c104ccbe0 Fix an alignment issue with the conversation 3 vertical dots menu
Gary Kramlich <grim@reaperworld.com>
parents: 42797
diff changeset
88 <property name="spacing">6</property>
b81c104ccbe0 Fix an alignment issue with the conversation 3 vertical dots menu
Gary Kramlich <grim@reaperworld.com>
parents: 42797
diff changeset
89 <property name="halign">end</property>
b81c104ccbe0 Fix an alignment issue with the conversation 3 vertical dots menu
Gary Kramlich <grim@reaperworld.com>
parents: 42797
diff changeset
90 <property name="hexpand">true</property>
42797
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
91 <property name="orientation">horizontal</property>
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
92 <child>
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
93 <object class="GtkMenuButton" id="menu_button">
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
94 <style>
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
95 <class name="flat"/>
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
96 </style>
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
97 <property name="icon-name">view-more-symbolic</property>
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
98 <binding name="menu-model">
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
99 <lookup name="menu" type="PidginDisplayItem">
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
100 <lookup name="item">expander</lookup>
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
101 </lookup>
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
102 </binding>
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
103 <binding name="visible">
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
104 <closure type="gboolean" function="pidgin_display_window_show_item_menu_cb">
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
105 <lookup name="item">expander</lookup>
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
106 </closure>
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
107 </binding>
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
108 </object>
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
109 </child>
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
110 </object>
767b7685a4a4 Add a menu to PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42766
diff changeset
111 </property>
42766
d823c3372e97 Some cleanups for PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42758
diff changeset
112 </object>
d823c3372e97 Some cleanups for PidginDisplayItem
Gary Kramlich <grim@reaperworld.com>
parents: 42758
diff changeset
113 </child>
42758
f95b932717bb Implement PidginNotifiable on PidginNotificationList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
114 </object>
f95b932717bb Implement PidginNotifiable on PidginNotificationList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
115 </child>
f95b932717bb Implement PidginNotifiable on PidginNotificationList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
116 </object>
f95b932717bb Implement PidginNotifiable on PidginNotificationList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
117 </property>
f95b932717bb Implement PidginNotifiable on PidginNotificationList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
118 </object>
f95b932717bb Implement PidginNotifiable on PidginNotificationList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
119 </property>
f95b932717bb Implement PidginNotifiable on PidginNotificationList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
120 </template>
f95b932717bb Implement PidginNotifiable on PidginNotificationList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
121 </interface>

mercurial