summaryrefslogtreecommitdiff
path: root/src/mate-screensaver-preferences.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-02-27 22:38:43 +0100
committerraveit65 <[email protected]>2020-03-13 16:43:30 +0100
commit242b68ceddb217a42547d578898be841dca2f4a3 (patch)
tree6e661efc8f713cf00400e7526b4c20c3659c2c81 /src/mate-screensaver-preferences.c
parentec8db2297fc1d435d26de2006b429b1e6ffdc8a3 (diff)
downloadmate-screensaver-242b68ceddb217a42547d578898be841dca2f4a3.tar.bz2
mate-screensaver-242b68ceddb217a42547d578898be841dca2f4a3.tar.xz
Remove warnings: cast between incompatible function types
Diffstat (limited to 'src/mate-screensaver-preferences.c')
-rw-r--r--src/mate-screensaver-preferences.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mate-screensaver-preferences.c b/src/mate-screensaver-preferences.c
index 844be50..4ead5ed 100644
--- a/src/mate-screensaver-preferences.c
+++ b/src/mate-screensaver-preferences.c
@@ -807,8 +807,7 @@ theme_installer_run (GtkWidget *prefs_dialog, GList *files)
GtkWidget *copy_dialog;
copy_dialog = copy_theme_dialog_new (files);
- g_list_foreach (files, (GFunc) (g_object_unref), NULL);
- g_list_free (files);
+ g_list_free_full (files, g_object_unref);
gtk_window_set_transient_for (GTK_WINDOW (copy_dialog),
GTK_WINDOW (prefs_dialog));