From 01c31060d2e3e2e96788e2a76d97ba334905ae05 Mon Sep 17 00:00:00 2001 From: Emilio Pozuelo Monfort Date: Mon, 25 Nov 2013 10:49:32 +0100 Subject: Add a clock to the panel --- shell/clock.h | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 shell/clock.h (limited to 'shell/clock.h') diff --git a/shell/clock.h b/shell/clock.h new file mode 100644 index 0000000..4493b88 --- /dev/null +++ b/shell/clock.h @@ -0,0 +1,38 @@ +/* + * Copyright (C) 2013 Collabora Ltd. + * + * Author: Emilio Pozuelo Monfort + */ + +#ifndef __WESTON_GTK_CLOCK_H__ +#define __WESTON_GTK_CLOCK_H__ + +#include + +#define WESTON_GTK_CLOCK_TYPE (weston_gtk_clock_get_type ()) +#define WESTON_GTK_CLOCK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), WESTON_GTK_CLOCK_TYPE, WestonGtkClock)) +#define WESTON_GTK_CLOCK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), WESTON_GTK_CLOCK_TYPE, WestonGtkClockClass)) +#define WESTON_GTK_IS_CLOCK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), WESTON_GTK_CLOCK_TYPE)) +#define WESTON_GTK_IS_CLOCK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), WESTON_GTK_CLOCK_TYPE)) +#define WESTON_GTK_CLOCK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), WESTON_GTK_CLOCK_TYPE, WestonGtkClockClass)) + +typedef struct WestonGtkClock WestonGtkClock; +typedef struct WestonGtkClockClass WestonGtkClockClass; +typedef struct WestonGtkClockPrivate WestonGtkClockPrivate; + +struct WestonGtkClock +{ + GtkLabel parent; + + WestonGtkClockPrivate *priv; +}; + +struct WestonGtkClockClass +{ + GtkLabelClass parent_class; +}; + +GType weston_gtk_clock_get_type (void) G_GNUC_CONST; +GtkWidget *weston_gtk_clock_new (void); + +#endif /* __WESTON_GTK_CLOCK_H__ */ -- cgit v1.3.1