finch/finchnotifications.c

changeset 41936
c4a96b5eecba
parent 41619
f19b4c13bc90
child 42079
679258d92a92
--- a/finch/finchnotifications.c	Wed Nov 23 23:03:30 2022 -0600
+++ b/finch/finchnotifications.c	Thu Nov 24 00:23:08 2022 -0600
@@ -330,7 +330,6 @@
  ******************************************************************************/
 void
 finch_notifications_window_show(void) {
-	PurpleNotificationManager *manager = NULL;
 	GntWidget *wid, *box;
 	GListModel *model = NULL;
 
@@ -358,8 +357,7 @@
 	                 G_CALLBACK(finch_notifications_activate_cb), NULL);
 
 	/* Get the notification manager to get the model and populate the list. */
-	manager = purple_notification_manager_get_default();
-	model = purple_notification_manager_get_model(manager);
+	model = purple_notification_manager_get_default_as_model();
 	finch_notifications_update(GNT_TREE(notifications.list), model);
 	g_signal_connect_object(model, "items-changed",
 	                        G_CALLBACK(finch_notifications_changed_cb),

mercurial