summaryrefslogtreecommitdiff
path: root/pidgin/resources
diff options
context:
space:
mode:
Diffstat (limited to 'pidgin/resources')
-rw-r--r--pidgin/resources/Accounts/chooser.ui26
-rw-r--r--pidgin/resources/Accounts/display.ui37
-rw-r--r--pidgin/resources/pidgin.gresource.xml1
3 files changed, 42 insertions, 22 deletions
diff --git a/pidgin/resources/Accounts/chooser.ui b/pidgin/resources/Accounts/chooser.ui
index bda398f733..175d531867 100644
--- a/pidgin/resources/Accounts/chooser.ui
+++ b/pidgin/resources/Accounts/chooser.ui
@@ -33,28 +33,10 @@ along with this library; if not, see <https://www.gnu.org/licenses/>.
<interface>
<template class="GtkListItem">
<property name="child">
- <object class="GtkBox">
- <property name="orientation">horizontal</property>
- <property name="spacing">6</property>
- <child>
- <object class="GtkImage">
- <binding name="icon-name">
- <closure type="gchararray" function="pidgin_account_chooser_icon_name_cb">
- <lookup name="item">GtkListItem</lookup>
- </closure>
- </binding>
- </object>
- </child>
- <child>
- <object class="GtkLabel">
- <property name="xalign">0</property>
- <binding name="label">
- <closure type="gchararray" function="pidgin_account_chooser_label_cb">
- <lookup name="item">GtkListItem</lookup>
- </closure>
- </binding>
- </object>
- </child>
+ <object class="PidginAccountDisplay">
+ <binding name="account">
+ <lookup name="item">GtkListItem</lookup>
+ </binding>
</object>
</property>
</template>
diff --git a/pidgin/resources/Accounts/display.ui b/pidgin/resources/Accounts/display.ui
new file mode 100644
index 0000000000..2b2ff6e421
--- /dev/null
+++ b/pidgin/resources/Accounts/display.ui
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Pidgin - Internet Messenger
+Copyright (C) Pidgin Developers <devel@pidgin.im>
+
+This program is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License
+as published by the Free Software Foundation; either version 2
+of the License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this library; if not, see <https://www.gnu.org/licenses/>.
+-->
+<interface>
+ <requires lib="gtk" version="4.0"/>
+ <!-- interface-license-type gplv2 -->
+ <!-- interface-name Pidgin -->
+ <!-- interface-description Internet Messenger -->
+ <!-- interface-copyright Pidgin Developers <devel@pidgin.im> -->
+ <template class="PidginAccountDisplay" parent="GtkBox">
+ <property name="orientation">horizontal</property>
+ <property name="spacing">6</property>
+ <child>
+ <object class="GtkImage" id="image"></object>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label">
+ <property name="xalign">0</property>
+ </object>
+ </child>
+ </template>
+</interface>
diff --git a/pidgin/resources/pidgin.gresource.xml b/pidgin/resources/pidgin.gresource.xml
index 4fe9a70a5e..aa1505c603 100644
--- a/pidgin/resources/pidgin.gresource.xml
+++ b/pidgin/resources/pidgin.gresource.xml
@@ -6,6 +6,7 @@
<file compressed="true" preprocess="json-stripblanks">About/credits.json</file>
<file compressed="true" preprocess="xml-stripblanks">Accounts/account-row.ui</file>
<file compressed="true" preprocess="xml-stripblanks">Accounts/chooser.ui</file>
+ <file compressed="true" preprocess="xml-stripblanks">Accounts/display.ui</file>
<file compressed="true" preprocess="xml-stripblanks">Accounts/editor.ui</file>
<file compressed="true" preprocess="xml-stripblanks">Accounts/manager.ui</file>
<file compressed="true" preprocess="xml-stripblanks">Avatar/avatar.ui</file>