[gnome-panel] panel-applets-manager: fix cast-function-type warning



commit 2b637c553124b48e4bc174c3128fb2828789174a
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Mon Sep 17 18:37:26 2018 +0300

    panel-applets-manager: fix cast-function-type warning

 gnome-panel/panel-applets-manager.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/gnome-panel/panel-applets-manager.c b/gnome-panel/panel-applets-manager.c
index 83b9463f5..e6dd9d588 100644
--- a/gnome-panel/panel-applets-manager.c
+++ b/gnome-panel/panel-applets-manager.c
@@ -47,8 +47,7 @@ static GSList *panel_applets_managers = NULL;
 static void
 _panel_applets_manager_cleanup (gpointer data)
 {
-       g_slist_foreach (panel_applets_managers, (GFunc) g_object_unref, NULL);
-       g_slist_free (panel_applets_managers);
+       g_slist_free_full (panel_applets_managers, g_object_unref);
        panel_applets_managers = NULL;
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]