diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2015-11-10 14:07:41 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2015-11-10 14:07:41 +0000 |
commit | 90c15c294e198efc236b1a7d81cdfaa4c3454443 (patch) | |
tree | 03826f7e5cd6a051247f98e843bc52191f485ab5 /gtk/gtkdialog.h | |
parent | 93369788c907b9c61204ff377854729cd404e25f (diff) | |
download | gtk+-90c15c294e198efc236b1a7d81cdfaa4c3454443.tar.gz |
Move GtkDialog autocleanup to the class header
Diffstat (limited to 'gtk/gtkdialog.h')
-rw-r--r-- | gtk/gtkdialog.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk/gtkdialog.h b/gtk/gtkdialog.h index 87b4678196..9474f0d1c6 100644 --- a/gtk/gtkdialog.h +++ b/gtk/gtkdialog.h @@ -25,14 +25,12 @@ #ifndef __GTK_DIALOG_H__ #define __GTK_DIALOG_H__ - #if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) #error "Only <gtk/gtk.h> can be included directly." #endif #include <gtk/gtkwindow.h> - G_BEGIN_DECLS /** @@ -208,6 +206,10 @@ GtkWidget * gtk_dialog_get_content_area (GtkDialog *dialog); GDK_AVAILABLE_IN_3_12 GtkWidget * gtk_dialog_get_header_bar (GtkDialog *dialog); +#ifndef __GI_SCANNER__ +G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkDialog, g_object_unref) +#endif + G_END_DECLS #endif /* __GTK_DIALOG_H__ */ |