[gtk+] Remove introspection scanner guards around autocleanups



commit 9ebe95f4a9be83b6d6269fd7ea1a96489da6d8c1
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Tue Nov 10 15:11:29 2015 +0000

    Remove introspection scanner guards around autocleanups
    
    They are not needed.

 gtk/gtkaboutdialog.h |    2 --
 gtk/gtkaccelgroup.h  |    2 --
 gtk/gtkaccellabel.h  |    2 --
 gtk/gtkaccelmap.h    |    2 --
 gtk/gtkapplication.h |    2 --
 gtk/gtkbin.h         |    2 --
 gtk/gtkborder.h      |    2 --
 gtk/gtkcontainer.h   |    2 --
 gtk/gtkdialog.h      |    2 --
 gtk/gtklabel.h       |    2 --
 gtk/gtklistbox.h     |    2 --
 gtk/gtkmenu.h        |    2 --
 gtk/gtkmenushell.h   |    2 --
 gtk/gtkwidget.h      |    2 --
 gtk/gtkwindow.h      |    2 --
 15 files changed, 0 insertions(+), 30 deletions(-)
---
diff --git a/gtk/gtkaboutdialog.h b/gtk/gtkaboutdialog.h
index fd7081c..98279fb 100644
--- a/gtk/gtkaboutdialog.h
+++ b/gtk/gtkaboutdialog.h
@@ -204,9 +204,7 @@ void                  gtk_about_dialog_add_credit_section      (GtkAboutDialog
                                                                 const gchar     *section_name,
                                                                 const gchar    **people);
 
-#ifndef __GI_SCANNER__
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkAboutDialog, g_object_unref)
-#endif
 
 G_END_DECLS
 
diff --git a/gtk/gtkaccelgroup.h b/gtk/gtkaccelgroup.h
index ce117f1..d63a65d 100644
--- a/gtk/gtkaccelgroup.h
+++ b/gtk/gtkaccelgroup.h
@@ -242,9 +242,7 @@ struct _GtkAccelGroupEntry
   GQuark       accel_path_quark;
 };
 
-#ifndef __GI_SCANNER__
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkAccelGroup, g_object_unref)
-#endif
 
 G_END_DECLS
 
diff --git a/gtk/gtkaccellabel.h b/gtk/gtkaccellabel.h
index fa7ea51..3f5a15e 100644
--- a/gtk/gtkaccellabel.h
+++ b/gtk/gtkaccellabel.h
@@ -109,9 +109,7 @@ gchar *    _gtk_accel_label_class_get_accelerator_label (GtkAccelLabelClass *kla
                                                         guint               accelerator_key,
                                                         GdkModifierType     accelerator_mods);
 
-#ifndef __GI_SCANNER__
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkAccelLabel, g_object_unref)
-#endif
 
 G_END_DECLS
 
diff --git a/gtk/gtkaccelmap.h b/gtk/gtkaccelmap.h
index de5d4a1..e04f251 100644
--- a/gtk/gtkaccelmap.h
+++ b/gtk/gtkaccelmap.h
@@ -102,9 +102,7 @@ GType        gtk_accel_map_get_type (void) G_GNUC_CONST;
 GDK_AVAILABLE_IN_ALL
 GtkAccelMap *gtk_accel_map_get      (void);
 
-#ifndef __GI_SCANNER__
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkAccelMap, g_object_unref)
-#endif
 
 G_END_DECLS
 
diff --git a/gtk/gtkapplication.h b/gtk/gtkapplication.h
index 3cf905b..ad6ac06 100644
--- a/gtk/gtkapplication.h
+++ b/gtk/gtkapplication.h
@@ -162,9 +162,7 @@ GDK_AVAILABLE_IN_3_14
 GMenu *          gtk_application_get_menu_by_id                  (GtkApplication       *application,
                                                                   const gchar          *id);
 
-#ifndef __GI_SCANNER__
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkApplication, g_object_unref)
-#endif
 
 G_END_DECLS
 
diff --git a/gtk/gtkbin.h b/gtk/gtkbin.h
index 6322140..9bbd89d 100644
--- a/gtk/gtkbin.h
+++ b/gtk/gtkbin.h
@@ -81,9 +81,7 @@ GtkWidget *gtk_bin_get_child (GtkBin *bin);
 void       _gtk_bin_set_child (GtkBin    *bin,
                                GtkWidget *widget);
 
-#ifndef __GI_SCANNER__
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkBin, g_object_unref)
-#endif
 
 G_END_DECLS
 
diff --git a/gtk/gtkborder.h b/gtk/gtkborder.h
index 362a7d0..adfa29e 100644
--- a/gtk/gtkborder.h
+++ b/gtk/gtkborder.h
@@ -65,9 +65,7 @@ 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
 
diff --git a/gtk/gtkcontainer.h b/gtk/gtkcontainer.h
index da75f34..ea87bd9 100644
--- a/gtk/gtkcontainer.h
+++ b/gtk/gtkcontainer.h
@@ -299,9 +299,7 @@ GDK_AVAILABLE_IN_ALL
 GtkWidgetPath * gtk_container_get_path_for_child (GtkContainer      *container,
                                                   GtkWidget         *child);
 
-#ifndef __GI_SCANNER__
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkContainer, g_object_unref)
-#endif
 
 G_END_DECLS
 
diff --git a/gtk/gtkdialog.h b/gtk/gtkdialog.h
index 9474f0d..17f0503 100644
--- a/gtk/gtkdialog.h
+++ b/gtk/gtkdialog.h
@@ -206,9 +206,7 @@ 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
 
diff --git a/gtk/gtklabel.h b/gtk/gtklabel.h
index 58ee934..14d0a44 100644
--- a/gtk/gtklabel.h
+++ b/gtk/gtklabel.h
@@ -225,9 +225,7 @@ void         gtk_label_set_yalign (GtkLabel *label,
 GDK_AVAILABLE_IN_3_16
 gfloat       gtk_label_get_yalign (GtkLabel *label);
 
-#ifndef __GI_SCANNER__
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkLabel, g_object_unref)
-#endif
 
 G_END_DECLS
 
diff --git a/gtk/gtklistbox.h b/gtk/gtklistbox.h
index 61c00d8..e796b98 100644
--- a/gtk/gtklistbox.h
+++ b/gtk/gtklistbox.h
@@ -313,10 +313,8 @@ void           gtk_list_box_bind_model                   (GtkListBox
                                                           gpointer                      user_data,
                                                           GDestroyNotify                user_data_free_func);
 
-#ifndef __GI_SCANNER__
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkListBox, g_object_unref)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkListBoxRow, g_object_unref)
-#endif
 
 G_END_DECLS
 
diff --git a/gtk/gtkmenu.h b/gtk/gtkmenu.h
index f66200a..76c3ec9 100644
--- a/gtk/gtkmenu.h
+++ b/gtk/gtkmenu.h
@@ -249,9 +249,7 @@ void     gtk_menu_set_reserve_toggle_size (GtkMenu  *menu,
 GDK_AVAILABLE_IN_ALL
 gboolean gtk_menu_get_reserve_toggle_size (GtkMenu  *menu);
 
-#ifndef __GI_SCANNER__
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkMenu, g_object_unref)
-#endif
 
 G_END_DECLS
 
diff --git a/gtk/gtkmenushell.h b/gtk/gtkmenushell.h
index 34db130..a321f77 100644
--- a/gtk/gtkmenushell.h
+++ b/gtk/gtkmenushell.h
@@ -130,9 +130,7 @@ void       gtk_menu_shell_bind_model   (GtkMenuShell *menu_shell,
                                         const gchar  *action_namespace,
                                         gboolean      with_separators);
 
-#ifndef __GI_SCANNER__
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkMenuShell, g_object_unref)
-#endif
 
 G_END_DECLS
 
diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h
index 208a9d1..863d70d 100644
--- a/gtk/gtkwidget.h
+++ b/gtk/gtkwidget.h
@@ -1490,10 +1490,8 @@ void                    gtk_widget_set_font_map         (GtkWidget             *
 GDK_AVAILABLE_IN_3_18
 PangoFontMap *          gtk_widget_get_font_map         (GtkWidget             *widget);
 
-#ifndef __GI_SCANNER__
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkWidget, g_object_unref)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkRequisition, gtk_requisition_free)
-#endif
 
 G_END_DECLS
 
diff --git a/gtk/gtkwindow.h b/gtk/gtkwindow.h
index 9ca45bd..23407dc 100644
--- a/gtk/gtkwindow.h
+++ b/gtk/gtkwindow.h
@@ -497,10 +497,8 @@ gboolean gtk_window_is_maximized           (GtkWindow    *window);
 GDK_AVAILABLE_IN_3_14
 void     gtk_window_set_interactive_debugging (gboolean enable);
 
-#ifndef __GI_SCANNER__
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkWindow, g_object_unref)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkWindowGroup, g_object_unref)
-#endif
 
 G_END_DECLS
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]