[vte] Add autocleanups for all exported types



commit 9069734acd66f4fcf28dfe140718a4e3357b9c75
Author: Debarshi Ray <debarshir gnome org>
Date:   Mon Apr 18 16:40:09 2016 +0200

    Add autocleanups for all exported types
    
    https://bugzilla.gnome.org/show_bug.cgi?id=765217

 src/vte/vtepty.h      |    4 ++++
 src/vte/vteregex.h    |    4 ++++
 src/vte/vteterminal.h |    4 ++++
 3 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/src/vte/vtepty.h b/src/vte/vtepty.h
index fe4bbdf..bc03bed 100644
--- a/src/vte/vtepty.h
+++ b/src/vte/vtepty.h
@@ -91,6 +91,10 @@ gboolean vte_pty_set_utf8 (VtePty *pty,
                            gboolean utf8,
                            GError **error) _VTE_GNUC_NONNULL(1);
 
+#if GLIB_CHECK_VERSION(2, 44, 0)
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(VtePty, g_object_unref)
+#endif
+
 G_END_DECLS
 
 #endif /* __VTE_VTE_PTY_H__ */
diff --git a/src/vte/vteregex.h b/src/vte/vteregex.h
index ced5ca6..c64c127 100644
--- a/src/vte/vteregex.h
+++ b/src/vte/vteregex.h
@@ -67,6 +67,10 @@ gboolean  vte_regex_jit     (VteRegex *regex,
                              guint32   flags,
                              GError  **error) _VTE_GNUC_NONNULL(1);
 
+#if GLIB_CHECK_VERSION(2, 44, 0)
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(VteRegex, vte_regex_unref)
+#endif
+
 G_END_DECLS
 
 #endif /* __VTE_VTE_REGEX_H__ */
diff --git a/src/vte/vteterminal.h b/src/vte/vteterminal.h
index c5b900e..7836271 100644
--- a/src/vte/vteterminal.h
+++ b/src/vte/vteterminal.h
@@ -452,6 +452,10 @@ gboolean vte_terminal_write_contents_sync (VteTerminal *terminal,
                                            GCancellable *cancellable,
                                            GError **error) _VTE_GNUC_NONNULL(1) _VTE_GNUC_NONNULL(2);
 
+#if GLIB_CHECK_VERSION(2, 44, 0)
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(VteTerminal, g_object_unref)
+#endif
+
 G_END_DECLS
 
 #endif /* __VTE_VTE_TERMINAL_H__ */


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