--- a/pidgin/pidgincontactlist.c Fri Feb 10 00:52:05 2023 -0600
+++ b/pidgin/pidgincontactlist.c Fri Feb 10 00:59:09 2023 -0600
@@ -113,6 +113,16 @@
+pidgin_contact_list_message_visible_cb(G_GNUC_UNUSED GtkListItem *item, + /* If we have a message, return TRUE because this is bound to the label's + return (message != NULL); /******************************************************************************
*****************************************************************************/
@@ -146,6 +156,8 @@
pidgin_contact_list_avatar_cb);
gtk_widget_class_bind_template_callback(widget_class,
pidgin_contact_list_activate_cb);
+ gtk_widget_class_bind_template_callback(widget_class, + pidgin_contact_list_message_visible_cb); /******************************************************************************
--- a/pidgin/resources/ContactList/widget.ui Fri Feb 10 00:52:05 2023 -0600
+++ b/pidgin/resources/ContactList/widget.ui Fri Feb 10 00:59:09 2023 -0600
@@ -50,16 +50,53 @@
- <object class="GtkLabel">
- <property name="xalign">0</property>
- <property name="use-markup">1</property>
- <lookup name="name-for-display" type="PurpleContactInfo">
- <lookup name="priority-contact-info" type="PurplePerson">
- <lookup name="item">GtkListItem</lookup>
+ <object class="GtkBox"> + <property name="hexpand">1</property> + <property name="orientation">vertical</property> + <property name="vexpand">1</property> + <property name="valign">center</property> + <object class="GtkLabel"> + <property name="xalign">0</property> + <property name="use-markup">1</property> + <lookup name="name-for-display" type="PurpleContactInfo"> + <lookup name="priority-contact-info" type="PurplePerson"> + <lookup name="item">GtkListItem</lookup> + <object class="GtkLabel" id="status_message"> + <class name="dim-label"/> + <property name="xalign">0</property> + <property name="ellipsize">end</property> + <lookup name="message" type="PurplePresence"> + <lookup name="presence" type="PurpleContactInfo"> + <lookup name="priority-contact-info" type="PurplePerson"> + <lookup name="item">GtkListItem</lookup> + <binding name="visible"> + <closure type="gboolean" function="pidgin_contact_list_message_visible_cb"> + <lookup name="message" type="PurplePresence"> + <lookup name="presence" type="PurpleContactInfo"> + <lookup name="priority-contact-info" type="PurplePerson"> + <lookup name="item">GtkListItem</lookup>