Skip to content

Commit

Permalink
onNotificationClosed
Browse files Browse the repository at this point in the history
  • Loading branch information
ravachol committed Sep 17, 2024
1 parent 7028d16 commit c735cc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/soundcommon.c
Original file line number Diff line number Diff line change
Expand Up @@ -1172,9 +1172,9 @@ gint64 getLengthInMicroSec(double duration)
#ifdef USE_LIBNOTIFY
void onNotificationClosed(NotifyNotification *notification, gpointer user_data)
{
(void)notification;
(void)user_data;

g_object_unref(notification);
previous_notification = NULL;
}

Expand Down Expand Up @@ -1260,7 +1260,7 @@ int displaySongNotification(const char *artist, const char *title, const char *c
coverExists ? cover : NULL
);

g_signal_connect(previous_notification, "closed", G_CALLBACK(onNotificationClosed), NULL);
g_signal_connect(previous_notification, "closed", G_CALLBACK(onNotificationClosed), NULL);
}
else
{
Expand Down

0 comments on commit c735cc1

Please sign in to comment.