[gtk+] 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+] gtk: Use GDK_AVAILABLE_IN_ALL for generated enum types
- Date: Sun, 5 May 2013 19:38:58 +0000 (UTC)
commit 8470eb84c080718120b5daf130db744bf6ec220b
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Mar 20 14:38:59 2013 -0400
gtk: 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.
gtk/gtkprivatetypebuiltins.c.template | 1 +
gtk/gtkprivatetypebuiltins.h.template | 1 +
gtk/gtktypebuiltins.c.template | 1 +
gtk/gtktypebuiltins.h.template | 3 ++-
4 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkprivatetypebuiltins.c.template b/gtk/gtkprivatetypebuiltins.c.template
index b8db5a4..db65d1e 100644
--- a/gtk/gtkprivatetypebuiltins.c.template
+++ b/gtk/gtkprivatetypebuiltins.c.template
@@ -1,4 +1,5 @@
/*** BEGIN file-header ***/
+#include "config.h"
#include "gtk.h"
#include "gtkprivate.h"
#include "gtkprivatetypebuiltins.h"
diff --git a/gtk/gtkprivatetypebuiltins.h.template b/gtk/gtkprivatetypebuiltins.h.template
index c3618ed..a21e9aa 100644
--- a/gtk/gtkprivatetypebuiltins.h.template
+++ b/gtk/gtkprivatetypebuiltins.h.template
@@ -7,6 +7,7 @@
#define __GTK_PRIVATE_TYPE_BUILTINS_H__
#include <glib-object.h>
+#include <gdk/gdk.h>
G_BEGIN_DECLS
/*** END file-header ***/
diff --git a/gtk/gtktypebuiltins.c.template b/gtk/gtktypebuiltins.c.template
index 828d6d1..fbd21db 100644
--- a/gtk/gtktypebuiltins.c.template
+++ b/gtk/gtktypebuiltins.c.template
@@ -1,4 +1,5 @@
/*** BEGIN file-header ***/
+#include "config.h"
#include "gtk.h"
#include "gtkprivate.h"
diff --git a/gtk/gtktypebuiltins.h.template b/gtk/gtktypebuiltins.h.template
index ae41837..ac24777 100644
--- a/gtk/gtktypebuiltins.h.template
+++ b/gtk/gtktypebuiltins.h.template
@@ -7,6 +7,7 @@
#define __GTK_TYPE_BUILTINS_H__
#include <glib-object.h>
+#include <gdk/gdk.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]