summaryrefslogtreecommitdiff
path: root/gtk/gtkborder.h
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2015-11-10 13:59:36 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2015-11-10 13:59:36 +0000
commit93369788c907b9c61204ff377854729cd404e25f (patch)
tree7b952164ccebb6c46be79b1cbb38129f33a47332 /gtk/gtkborder.h
parentd589170754af9620feabb0e598b626116470557f (diff)
downloadgtk+-93369788c907b9c61204ff377854729cd404e25f.tar.gz
Start recursively moving autocleanups macros to their headers
* Cover letter Having a single header file for all autocleanups definitions was a reasonable stop-gap measure, but now GTK+ is starting to use G_DECLARE_* macros. This means that every class using a G_DECLARE_* macro will need to include "gtk.h" to avoid compiler warnings, which is not acceptable. By moving the G_DEFINE_AUTO* use to the header that defines the type we allow using the G_DECLARE_* macros without sacrificing the ability to include only the needed files when deriving from a class. * Commit This commit changes all includes relative to GtkWindow to define their own autocleanup macros.
Diffstat (limited to 'gtk/gtkborder.h')
-rw-r--r--gtk/gtkborder.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkborder.h b/gtk/gtkborder.h
index b22ded7eca..362a7d00ba 100644
--- a/gtk/gtkborder.h
+++ b/gtk/gtkborder.h
@@ -65,6 +65,9 @@ GtkBorder *gtk_border_copy (const GtkBorder *border_);
GDK_AVAILABLE_IN_ALL
void gtk_border_free (GtkBorder *border_);
+#ifndef __GI_SCANNER__
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkBorder, gtk_border_free)
+#endif
G_END_DECLS