gtksearchengine: Add autoptr handler for this type
authorCarlos Garnacho <carlosg@gnome.org>
Sat, 16 May 2020 22:04:15 +0000 (00:04 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Tue, 19 May 2020 20:04:25 +0000 (22:04 +0200)
So subclasses can just use G_DECLARE_*_TYPE.

gtk/gtksearchengine.h

index 0c11324d0409db0bf80ae5af23d075176009430a..6a016d5d21f9416e43e8bb25aa718d76497766ef 100644 (file)
@@ -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;