projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b890e87
)
gtksearchengine: Add autoptr handler for this type
author
Carlos Garnacho
<carlosg@gnome.org>
Sat, 16 May 2020 22:04:15 +0000
(
00:04
+0200)
committer
Carlos 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
patch
|
blob
|
history
diff --git
a/gtk/gtksearchengine.h
b/gtk/gtksearchengine.h
index 0c11324d0409db0bf80ae5af23d075176009430a..6a016d5d21f9416e43e8bb25aa718d76497766ef 100644
(file)
--- 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;