pidgin/pidgin

Make PidginInfoPane generic

5 months ago, Gary Kramlich
ddaa27826ccc
Make PidginInfoPane generic

This removes the conversation property and replaces it with title and subtitle
properties.

It also adds a child property so that user can add custom widgets.

Testing Done:
Opened some conversations and verified everything still worked as expected without any warnings or errors.

Reviewed at https://reviews.imfreedom.org/r/2909/
<?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>
<template class="GtkListItem">
<property name="child">
<object class="GtkBox">
<property name="orientation">horizontal</property>
<property name="spacing">6</property>
<child>
<object class="GtkGestureClick">
<property name="button">3</property>
<signal name="released" handler="pidgin_conversation_member_list_context_cb"/>
</object>
</child>
<child>
<object class="GtkBox">
<property name="orientation">horizontal</property>
<child>
<object class="GtkLabel">
<property name="xalign">0</property>
<property name="use-markup">1</property>
<binding name="label">
<lookup name="name-for-display" type="PurpleContactInfo">
<lookup name="contact-info" type="PurpleConversationMember">
<lookup name="item">GtkListItem</lookup>
</lookup>
</lookup>
</binding>
</object>
</child>
</object>
</child>
</object>
</property>
</template>
</interface>