[sound-juicer/wip/hadess/fix-prefs-warning: 6/7] main: Add g_autoptr support for some Brasero objects
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sound-juicer/wip/hadess/fix-prefs-warning: 6/7] main: Add g_autoptr support for some Brasero objects
- Date: Thu, 22 Jul 2021 09:20:28 +0000 (UTC)
commit 2778546ca6938a16bbceb8c5a652313ac8f8d323
Author: Bastien Nocera <hadess hadess net>
Date: Thu Feb 11 18:31:53 2021 +0100
main: Add g_autoptr support for some Brasero objects
src/sj-prefs.c | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/src/sj-prefs.c b/src/sj-prefs.c
index a8ce37f8..b645278c 100644
--- a/src/sj-prefs.c
+++ b/src/sj-prefs.c
@@ -274,6 +274,13 @@ static void settings_changed_cb (GSettings *settings, const gchar *key, gpointer
pattern_label_update ();
}
+#ifndef BraseroMediumMonitor_autoptr
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(BraseroMediumMonitor, g_object_unref)
+#endif
+#ifndef BraseroDrive_autoptr
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(BraseroDrive, g_object_unref)
+#endif
+
/**
* Default device changed (either GSettings key or the widget)
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]