[rhythmbox/wip/hadess/cleanups: 5/33] shell: Add g_autoptr() support for RBShell




commit 60a249731e4cb5ec92c05490de61cedb177366f1
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Oct 18 16:05:29 2021 +0200

    shell: Add g_autoptr() support for RBShell

 shell/rb-shell.h | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/shell/rb-shell.h b/shell/rb-shell.h
index e784cbc18..9da7a43e9 100644
--- a/shell/rb-shell.h
+++ b/shell/rb-shell.h
@@ -101,6 +101,8 @@ struct _RBShellClass
        void     (*database_load_complete) (RBShell *shell);
 };
 
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(RBShell, g_object_unref)
+
 GType          rb_shell_get_type       (void);
 
 gboolean        rb_shell_present        (RBShell *shell, guint32 timestamp, GError **error);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]