tests: Make gtkgears compile without complaints

This commit is contained in:
Benjamin Otte 2014-10-14 14:33:08 +02:00
parent f5da87dde8
commit e0040acefc
2 changed files with 10 additions and 6 deletions

View File

@ -48,7 +48,7 @@ static gboolean gtk_gears_tick (GtkWidget *widget,
gpointer user_data);
GtkWidget *
gtk_gears_new ()
gtk_gears_new (void)
{
GtkWidget *gears;

View File

@ -20,16 +20,20 @@ enum {
#define GTK_IS_GEARS(inst) (G_TYPE_CHECK_INSTANCE_TYPE ((inst), \
GTK_TYPE_GEARS))
typedef struct {
typedef struct _GtkGears GtkGears;
typedef struct _GtkGearsClass GtkGearsClass;
struct _GtkGears {
GtkGLArea parent;
} GtkGears;
};
typedef struct {
struct _GtkGearsClass {
GtkGLAreaClass parent_class;
} GtkGearsClass;
};
GType gtk_gears_get_type (void) G_GNUC_CONST;
GtkWidget *gtk_gears_new ();
GtkWidget *gtk_gears_new (void);
void gtk_gears_set_axis (GtkGears *gears,
int axis,
double value);