pidgin/pidgincontactlist.c

changeset 42052
e575534f450d
parent 42025
f37c11d0200a
child 42054
7aa77854392d
--- 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 @@
 	}
 }
 
+static gboolean
+pidgin_contact_list_message_visible_cb(G_GNUC_UNUSED GtkListItem *item,
+                                       const char *message)
+{
+	/* If we have a message, return TRUE because this is bound to the label's
+	 * visibility.
+	 */
+	return (message != NULL);
+}
+
 /******************************************************************************
  * GObject Implementation
  *****************************************************************************/
@@ -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);
 }
 
 /******************************************************************************

mercurial