[gtk+] Use GDK_AVAILABLE_IN_ALL for generated enum types
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Use GDK_AVAILABLE_IN_ALL for generated enum types
- Date: Sun, 5 May 2013 19:38:38 +0000 (UTC)
commit 96d1a1e9c5251b6a44f8a83fbdd60b7bd88f12a4
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Mar 15 06:50:34 2013 -0400
Use GDK_AVAILABLE_IN_ALL for generated enum types
glib-mkenums is not currently clever enough to know which version an
enum type was added in, so just mark all the _get_type() functions as
available in all versions.
gdk/gdkenumtypes.h.template | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gdk/gdkenumtypes.h.template b/gdk/gdkenumtypes.h.template
index 7475ee8..49ee8b4 100644
--- a/gdk/gdkenumtypes.h.template
+++ b/gdk/gdkenumtypes.h.template
@@ -7,6 +7,7 @@
#define __GDK_ENUM_TYPES_H__
#include <glib-object.h>
+#include <gdk/gdkversionmacros.h>
G_BEGIN_DECLS
/*** END file-header ***/
@@ -17,7 +18,7 @@ G_BEGIN_DECLS
/*** END file-production ***/
/*** BEGIN value-header ***/
-GType @enum_name _get_type (void) G_GNUC_CONST;
+GDK_AVAILABLE_IN_ALL GType @enum_name _get_type (void) G_GNUC_CONST;
#define @ENUMPREFIX _TYPE_@ENUMSHORT@ (@enum_name _get_type ())
/*** END value-header ***/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]