move enum GtkToolbarChildType before typedef to make gtktoolbar.h compile with c++ (or egcs at least :)

This commit is contained in:
Radek Doulik 1998-02-01 08:50:08 +00:00
parent b0de5e73f5
commit 81fe36047e

View File

@ -38,12 +38,6 @@ extern "C" {
#define GTK_TOOLBAR_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gtk_toolbar_get_type (), GtkToolbarClass)
#define GTK_IS_TOOLBAR(obj) GTK_CHECK_TYPE (obj, gtk_toolbar_get_type ())
typedef enum _GtkToolbarChildType GtkToolbarChildType;
typedef struct _GtkToolbarChild GtkToolbarChild;
typedef struct _GtkToolbar GtkToolbar;
typedef struct _GtkToolbarClass GtkToolbarClass;
enum _GtkToolbarChildType
{
GTK_TOOLBAR_CHILD_SPACE,
@ -51,6 +45,11 @@ enum _GtkToolbarChildType
GTK_TOOLBAR_CHILD_WIDGET
};
typedef enum _GtkToolbarChildType GtkToolbarChildType;
typedef struct _GtkToolbarChild GtkToolbarChild;
typedef struct _GtkToolbar GtkToolbar;
typedef struct _GtkToolbarClass GtkToolbarClass;
struct _GtkToolbarChild
{
GtkToolbarChildType type;
@ -59,7 +58,6 @@ struct _GtkToolbarChild
GtkWidget *label;
};
struct _GtkToolbar
{
GtkContainer container;