Commit 8470eb84 authored by Matthias Clasen's avatar Matthias Clasen

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.
parent 28fb5425
/*** BEGIN file-header ***/
#include "config.h"
#include "gtk.h"
#include "gtkprivate.h"
#include "gtkprivatetypebuiltins.h"
......
......@@ -7,6 +7,7 @@
#define __GTK_PRIVATE_TYPE_BUILTINS_H__
#include <glib-object.h>
#include <gdk/gdk.h>
G_BEGIN_DECLS
/*** END file-header ***/
......
/*** BEGIN file-header ***/
#include "config.h"
#include "gtk.h"
#include "gtkprivate.h"
......
......@@ -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 ***/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment