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.
This commit is contained in:
Matthias Clasen 2013-03-20 14:38:59 -04:00
parent 28fb54256b
commit 8470eb84c0
4 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,5 @@
/*** BEGIN file-header ***/ /*** BEGIN file-header ***/
#include "config.h"
#include "gtk.h" #include "gtk.h"
#include "gtkprivate.h" #include "gtkprivate.h"
#include "gtkprivatetypebuiltins.h" #include "gtkprivatetypebuiltins.h"

View File

@ -7,6 +7,7 @@
#define __GTK_PRIVATE_TYPE_BUILTINS_H__ #define __GTK_PRIVATE_TYPE_BUILTINS_H__
#include <glib-object.h> #include <glib-object.h>
#include <gdk/gdk.h>
G_BEGIN_DECLS G_BEGIN_DECLS
/*** END file-header ***/ /*** END file-header ***/

View File

@ -1,4 +1,5 @@
/*** BEGIN file-header ***/ /*** BEGIN file-header ***/
#include "config.h"
#include "gtk.h" #include "gtk.h"
#include "gtkprivate.h" #include "gtkprivate.h"

View File

@ -7,6 +7,7 @@
#define __GTK_TYPE_BUILTINS_H__ #define __GTK_TYPE_BUILTINS_H__
#include <glib-object.h> #include <glib-object.h>
#include <gdk/gdk.h>
G_BEGIN_DECLS G_BEGIN_DECLS
/*** END file-header ***/ /*** END file-header ***/
@ -17,7 +18,7 @@ G_BEGIN_DECLS
/*** END file-production ***/ /*** END file-production ***/
/*** BEGIN value-header ***/ /*** 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 ()) #define @ENUMPREFIX@_TYPE_@ENUMSHORT@ (@enum_name@_get_type ())
/*** END value-header ***/ /*** END value-header ***/