From: Carlos Garnacho Date: Sat, 16 May 2020 22:04:15 +0000 (+0200) Subject: gtksearchengine: Add autoptr handler for this type X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~16^2~145^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=de68925f0c58f910efd4d79a783881950597cc8f;p=gtk4.git gtksearchengine: Add autoptr handler for this type So subclasses can just use G_DECLARE_*_TYPE. --- 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;