summaryrefslogtreecommitdiff
path: root/cut-n-paste/toolbar-editor
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-02-27 20:49:54 +0100
committerraveit65 <[email protected]>2020-03-10 20:29:47 +0100
commitd34df9832f460c2bca79257aae4b5cfc77c959a1 (patch)
tree74e7a06c4b018f9045ebd97d7252fa71f87066ab /cut-n-paste/toolbar-editor
parent0c8d17a76050af39b22f26b33f7b47de949ef379 (diff)
downloadeom-d34df9832f460c2bca79257aae4b5cfc77c959a1.tar.bz2
eom-d34df9832f460c2bca79257aae4b5cfc77c959a1.tar.xz
Remove warnings: cast between incompatible function types
Diffstat (limited to 'cut-n-paste/toolbar-editor')
-rw-r--r--cut-n-paste/toolbar-editor/egg-editable-toolbar.c6
1 files changed, 2 insertions, 4 deletions
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;
}