m-standard-event-source: Emit 'select-collection' event for all added objects

This new event has higher priority than the 'added' event, and it is meant to
be used by hooks that collect objects into collections.
This commit is contained in:
Julian Bouzas 2025-12-10 14:55:24 -05:00
parent 2941151d1a
commit b8a6e9fa9a

View file

@ -350,6 +350,7 @@ on_node_state_changed (WpNode *obj, WpNodeState old_state,
static void
on_object_added (WpObjectManager *om, WpObject *obj, WpStandardEventSource *self)
{
wp_standard_event_source_push_event (self, "select-collection", obj, NULL);
wp_standard_event_source_push_event (self, "added", obj, NULL);
if (WP_IS_PIPEWIRE_OBJECT (obj)) {