[gtk/wip/carlosg/tracker3: 2/5] gtksearchengine: Add autoptr handler for this type
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/carlosg/tracker3: 2/5] gtksearchengine: Add autoptr handler for this type
- Date: Tue, 19 May 2020 21:33:36 +0000 (UTC)
commit de68925f0c58f910efd4d79a783881950597cc8f
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun May 17 00:04:15 2020 +0200
gtksearchengine: Add autoptr handler for this type
So subclasses can just use G_DECLARE_*_TYPE.
gtk/gtksearchengine.h | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gtk/gtksearchengine.h b/gtk/gtksearchengine.h
index 0c11324d04..6a016d5d21 100644
--- a/gtk/gtksearchengine.h
+++ b/gtk/gtksearchengine.h
@@ -40,6 +40,8 @@ typedef struct _GtkSearchEngineClass GtkSearchEngineClass;
typedef struct _GtkSearchEnginePrivate GtkSearchEnginePrivate;
typedef struct _GtkSearchHit GtkSearchHit;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GtkSearchEngine, g_object_unref)
+
struct _GtkSearchHit
{
GFile *file;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]