cinnamon-settings-daemon: fix build

Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
Jürgen Buchmüller 2018-10-26 09:57:34 +02:00
parent d74eef5c93
commit 009d5743e5
No known key found for this signature in database
GPG Key ID: 6764EC32352D0647
2 changed files with 29 additions and 1 deletions

View File

@ -0,0 +1,28 @@
Source: pullmoll
Upstream: No
Reason: Add wrapper because 2nd parameter for g_clear_pointer() is void (*func)(NotifyNotification* n)
--- plugins/housekeeping/csd-disk-space.c 2018-06-22 20:58:17.000000000 +0200
+++ plugins/housekeeping/csd-disk-space.c 2018-10-26 09:48:30.754831801 +0200
@@ -216,6 +216,12 @@
}
static void
+notify_close_callback (NotifyNotification *n)
+{
+ notify_notification_close (n, NULL);
+}
+
+static void
nemo_empty_trash_cb (GObject *object,
GAsyncResult *res,
gpointer _unused)
@@ -796,7 +802,7 @@
g_clear_object (&ldsm_monitor);
g_clear_object (&settings);
g_clear_object (&dialog);
- g_clear_pointer (&notification, notify_notification_close);
+ g_clear_pointer (&notification, notify_close_callback);
g_slist_free_full (ignore_paths, g_free);
ignore_paths = NULL;
}

View File

@ -6,7 +6,7 @@ short_desc="The Cinnamon Settings Daemon"
build_style=gnu-configure
configure_args=" --disable-static --disable-schemas-compile --disable-gconf"
hostmakedepends="dbus-glib-devel gettext-devel glib-devel gnome-common
gobject-introspection intltool pkg-config"
gobject-introspection intltool libtool pkg-config"
makedepends="cinnamon-desktop-devel elogind-devel ibus-devel json-glib-devel
libSM-devel libcanberra-devel libgnomekbd-devel libgudev-devel libnotify-devel
nss-devel polkit-devel pulseaudio-devel upower-devel"