Skip to content

Add a Notifications DBus Property#579

Merged
emersion merged 1 commit into
emersion:masterfrom
Queuecumber:dbus-notifications
Apr 3, 2025
Merged

Add a Notifications DBus Property#579
emersion merged 1 commit into
emersion:masterfrom
Queuecumber:dbus-notifications

Conversation

@Queuecumber

Copy link
Copy Markdown
Contributor

This PR adds a Notifications property to the Mako DBus object, this holds the current list of notifications in the same format as the ListNotifications method and publishes state changes when notifications are added or removed.

The intention is that other applications wishing to respond to Mako's state can easily do so.

This is a followup from #578

This was referenced Apr 2, 2025
Signed-off-by: Max Ehrlich <max.ehr@gmail.com>

@emersion emersion left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@emersion emersion merged commit 2763e92 into emersion:master Apr 3, 2025
Comment thread notification.c
destroy_notification(notif);
}

emit_notifications_changed(notif->state);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

notif has already been freed here in case you don't want it added to the history.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Fixed in 30d36f2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants