pidgin/resources/infopane.ui

Tue, 17 Sep 2024 00:56:55 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Tue, 17 Sep 2024 00:56:55 -0500
changeset 42940
240eb66a3795
parent 42566
ddaa27826ccc
child 43041
ea212a081e9c
permissions
-rw-r--r--

Create Pidgin.Notification to simplify the custom widgets

This should be much easier to maintain as it keeps everything encapsulated.

PidginNotificationAuthorizationRequest was removed as nothing creates these
notifications right now.

PidginNotificationConnectionError was removed as we are currently in the
process of reworking the way connection errors work and this is in the way of
that.

Testing Done:
Created a bunch of test notifications with the demo protocol plugin and called in the turtles.

Bugs closed: PIDGIN-17929, PIDGIN-17942

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

40858
2bd48c93678a Create a new standalone info pane widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
41592
8e279e150bce Port PidginInfoPane and PidginPresenceIcon to GTK4
Gary Kramlich <grim@reaperworld.com>
parents: 41436
diff changeset
2 <!--
40858
2bd48c93678a Create a new standalone info pane widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
3 Pidgin - Internet Messenger
2bd48c93678a Create a new standalone info pane widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
4 Copyright (C) Pidgin Developers <devel@pidgin.im>
2bd48c93678a Create a new standalone info pane widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
5
2bd48c93678a Create a new standalone info pane widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
6 This program is free software; you can redistribute it and/or
2bd48c93678a Create a new standalone info pane widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
7 modify it under the terms of the GNU General Public License
2bd48c93678a Create a new standalone info pane widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
8 as published by the Free Software Foundation; either version 2
2bd48c93678a Create a new standalone info pane widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
9 of the License, or (at your option) any later version.
2bd48c93678a Create a new standalone info pane widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
10
2bd48c93678a Create a new standalone info pane widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
11 This program is distributed in the hope that it will be useful,
2bd48c93678a Create a new standalone info pane widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
2bd48c93678a Create a new standalone info pane widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2bd48c93678a Create a new standalone info pane widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
14 GNU General Public License for more details.
2bd48c93678a Create a new standalone info pane widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
15
2bd48c93678a Create a new standalone info pane widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
16 You should have received a copy of the GNU General Public License
41592
8e279e150bce Port PidginInfoPane and PidginPresenceIcon to GTK4
Gary Kramlich <grim@reaperworld.com>
parents: 41436
diff changeset
17 along with this library; if not, see <https://www.gnu.org/licenses/>.
40858
2bd48c93678a Create a new standalone info pane widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
18 -->
2bd48c93678a Create a new standalone info pane widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
19 <interface>
41592
8e279e150bce Port PidginInfoPane and PidginPresenceIcon to GTK4
Gary Kramlich <grim@reaperworld.com>
parents: 41436
diff changeset
20 <requires lib="gtk" version="4.0"/>
40858
2bd48c93678a Create a new standalone info pane widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
21 <requires lib="pidgin" version="3.0"/>
2bd48c93678a Create a new standalone info pane widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
22 <!-- interface-license-type gplv2 -->
2bd48c93678a Create a new standalone info pane widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
23 <!-- interface-name Pidgin -->
2bd48c93678a Create a new standalone info pane widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
24 <!-- interface-description Internet Messenger -->
2bd48c93678a Create a new standalone info pane widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
25 <!-- interface-copyright Pidgin Developers <devel@pidgin.im> -->
2bd48c93678a Create a new standalone info pane widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
26 <template class="PidginInfoPane" parent="GtkBox">
2bd48c93678a Create a new standalone info pane widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
27 <child>
42521
a8e758b503eb Simplify PidginInfoPane by using bindings everywhere
Gary Kramlich <grim@reaperworld.com>
parents: 42367
diff changeset
28 <object class="GtkBox">
40858
2bd48c93678a Create a new standalone info pane widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
29 <property name="spacing">6</property>
2bd48c93678a Create a new standalone info pane widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
30 <child>
42566
ddaa27826ccc Make PidginInfoPane generic
Gary Kramlich <grim@reaperworld.com>
parents: 42521
diff changeset
31 <object class="PidginAvatar"></object>
40858
2bd48c93678a Create a new standalone info pane widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
32 </child>
2bd48c93678a Create a new standalone info pane widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
33 <child>
2bd48c93678a Create a new standalone info pane widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
34 <object class="GtkBox">
41592
8e279e150bce Port PidginInfoPane and PidginPresenceIcon to GTK4
Gary Kramlich <grim@reaperworld.com>
parents: 41436
diff changeset
35 <property name="hexpand">1</property>
40858
2bd48c93678a Create a new standalone info pane widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
36 <property name="orientation">vertical</property>
42367
12b865212d37 Rework the info pane a bit
Gary Kramlich <grim@reaperworld.com>
parents: 41629
diff changeset
37 <property name="valign">center</property>
40858
2bd48c93678a Create a new standalone info pane widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
38 <child>
42566
ddaa27826ccc Make PidginInfoPane generic
Gary Kramlich <grim@reaperworld.com>
parents: 42521
diff changeset
39 <object class="GtkLabel" id="title">
42521
a8e758b503eb Simplify PidginInfoPane by using bindings everywhere
Gary Kramlich <grim@reaperworld.com>
parents: 42367
diff changeset
40 <binding name="label">
42566
ddaa27826ccc Make PidginInfoPane generic
Gary Kramlich <grim@reaperworld.com>
parents: 42521
diff changeset
41 <lookup name="title">PidginInfoPane</lookup>
42521
a8e758b503eb Simplify PidginInfoPane by using bindings everywhere
Gary Kramlich <grim@reaperworld.com>
parents: 42367
diff changeset
42 </binding>
40858
2bd48c93678a Create a new standalone info pane widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
43 <property name="xalign">0</property>
42521
a8e758b503eb Simplify PidginInfoPane by using bindings everywhere
Gary Kramlich <grim@reaperworld.com>
parents: 42367
diff changeset
44 <style>
a8e758b503eb Simplify PidginInfoPane by using bindings everywhere
Gary Kramlich <grim@reaperworld.com>
parents: 42367
diff changeset
45 <class name="title-2"/>
a8e758b503eb Simplify PidginInfoPane by using bindings everywhere
Gary Kramlich <grim@reaperworld.com>
parents: 42367
diff changeset
46 </style>
40858
2bd48c93678a Create a new standalone info pane widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
47 </object>
2bd48c93678a Create a new standalone info pane widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
48 </child>
2bd48c93678a Create a new standalone info pane widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
49 <child>
42566
ddaa27826ccc Make PidginInfoPane generic
Gary Kramlich <grim@reaperworld.com>
parents: 42521
diff changeset
50 <object class="GtkLabel" id="subtitle_label">
42521
a8e758b503eb Simplify PidginInfoPane by using bindings everywhere
Gary Kramlich <grim@reaperworld.com>
parents: 42367
diff changeset
51 <binding name="label">
42566
ddaa27826ccc Make PidginInfoPane generic
Gary Kramlich <grim@reaperworld.com>
parents: 42521
diff changeset
52 <closure type="gchararray" function="pidgin_info_pane_linkify_text_cb" object="subtitle_label">
ddaa27826ccc Make PidginInfoPane generic
Gary Kramlich <grim@reaperworld.com>
parents: 42521
diff changeset
53 <lookup name="subtitle">PidginInfoPane</lookup>
42521
a8e758b503eb Simplify PidginInfoPane by using bindings everywhere
Gary Kramlich <grim@reaperworld.com>
parents: 42367
diff changeset
54 </closure>
a8e758b503eb Simplify PidginInfoPane by using bindings everywhere
Gary Kramlich <grim@reaperworld.com>
parents: 42367
diff changeset
55 </binding>
a8e758b503eb Simplify PidginInfoPane by using bindings everywhere
Gary Kramlich <grim@reaperworld.com>
parents: 42367
diff changeset
56 <property name="ellipsize">end</property>
a8e758b503eb Simplify PidginInfoPane by using bindings everywhere
Gary Kramlich <grim@reaperworld.com>
parents: 42367
diff changeset
57 <property name="lines">2</property>
a8e758b503eb Simplify PidginInfoPane by using bindings everywhere
Gary Kramlich <grim@reaperworld.com>
parents: 42367
diff changeset
58 <property name="use-markup">yes</property>
a8e758b503eb Simplify PidginInfoPane by using bindings everywhere
Gary Kramlich <grim@reaperworld.com>
parents: 42367
diff changeset
59 <property name="wrap">yes</property>
a8e758b503eb Simplify PidginInfoPane by using bindings everywhere
Gary Kramlich <grim@reaperworld.com>
parents: 42367
diff changeset
60 <property name="wrap-mode">word-char</property>
40858
2bd48c93678a Create a new standalone info pane widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
61 <property name="xalign">0</property>
2bd48c93678a Create a new standalone info pane widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
62 </object>
2bd48c93678a Create a new standalone info pane widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
63 </child>
2bd48c93678a Create a new standalone info pane widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
64 </object>
2bd48c93678a Create a new standalone info pane widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
65 </child>
2bd48c93678a Create a new standalone info pane widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
66 </object>
2bd48c93678a Create a new standalone info pane widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
67 </child>
2bd48c93678a Create a new standalone info pane widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
68 </template>
2bd48c93678a Create a new standalone info pane widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
69 </interface>

mercurial