From d34df9832f460c2bca79257aae4b5cfc77c959a1 Mon Sep 17 00:00:00 2001 From: rbuj Date: Thu, 27 Feb 2020 20:49:54 +0100 Subject: Remove warnings: cast between incompatible function types --- cut-n-paste/toolbar-editor/egg-editable-toolbar.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'cut-n-paste/toolbar-editor') diff --git a/cut-n-paste/toolbar-editor/egg-editable-toolbar.c b/cut-n-paste/toolbar-editor/egg-editable-toolbar.c index 3be8f5d..c059ee5 100644 --- a/cut-n-paste/toolbar-editor/egg-editable-toolbar.c +++ b/cut-n-paste/toolbar-editor/egg-editable-toolbar.c @@ -1312,8 +1312,7 @@ egg_editable_toolbar_deconstruct (EggEditableToolbar *toolbar) } children = gtk_container_get_children (GTK_CONTAINER (toolbar)); - g_list_foreach (children, (GFunc) gtk_widget_destroy, NULL); - g_list_free (children); + g_list_free_full (children, (GDestroyNotify) gtk_widget_destroy); } void @@ -1382,8 +1381,7 @@ egg_editable_toolbar_dispose (GObject *object) if (priv->visibility_paths) { children = priv->visibility_paths; - g_list_foreach (children, (GFunc) g_free, NULL); - g_list_free (children); + g_list_free_full (children, g_free); priv->visibility_paths = NULL; } -- cgit v1.2.1