[gtk/wip/carlosg/tracker3-3-24: 2/4] 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-3-24: 2/4] gtksearchengine: Add autoptr handler for this type
- Date: Tue, 19 May 2020 21:41:18 +0000 (UTC)
commit 5858f7c5bd48de5cd7b951be1460b23f5e43b657
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]