diff options
author | Perberos <[email protected]> | 2011-12-01 22:56:10 -0300 |
---|---|---|
committer | Perberos <[email protected]> | 2011-12-01 22:56:10 -0300 |
commit | c51ef797a707f4e2c6f9688d4378f2b0e9898a66 (patch) | |
tree | 019ae92bb53c19b30077545cb14743cbd1b57aef /applets/clock/clock-face.h | |
download | mate-panel-c51ef797a707f4e2c6f9688d4378f2b0e9898a66.tar.bz2 mate-panel-c51ef797a707f4e2c6f9688d4378f2b0e9898a66.tar.xz |
moving from https://github.com/perberos/mate-desktop-environment
Diffstat (limited to 'applets/clock/clock-face.h')
-rw-r--r-- | applets/clock/clock-face.h | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/applets/clock/clock-face.h b/applets/clock/clock-face.h new file mode 100644 index 00000000..3c665c63 --- /dev/null +++ b/applets/clock/clock-face.h @@ -0,0 +1,64 @@ +/** + * clock.h + * + * A GTK+ widget that implements a clock face + * + * (c) 2007, Peter Teichman + * (c) 2005-2006, Davyd Madeley + * + * Authors: + * Davyd Madeley <[email protected]> + * Peter Teichman <[email protected]> + */ + +#ifndef __INTL_CLOCK_FACE_H__ +#define __INTL_CLOCK_FACE_H__ + +#include <gtk/gtk.h> +#include "clock-location.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#define INTL_TYPE_CLOCK_FACE (clock_face_get_type ()) +#define CLOCK_FACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), INTL_TYPE_CLOCK_FACE, ClockFace)) +#define CLOCK_FACE_CLASS(obj) (G_TYPE_CHECK_CLASS_CAST ((obj), INTL_CLOCK_FACE, ClockFaceClass)) +#define INTL_IS_CLOCK_FACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), INTL_TYPE_CLOCK_FACE)) +#define INTL_IS_CLOCK_FACE_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE ((obj), INTL_TYPE_CLOCK_FACE)) +#define CLOCK_FACE_GET_CLASS (G_TYPE_INSTANCE_GET_CLASS ((obj), INTL_TYPE_CLOCK_FACE, ClockFaceClass)) + +typedef struct _ClockFace ClockFace; +typedef struct _ClockFaceClass ClockFaceClass; + +struct _ClockFace +{ + GtkWidget parent; + + /* < private > */ +}; + +struct _ClockFaceClass +{ + GtkWidgetClass parent_class; +}; + +typedef enum { + CLOCK_FACE_SMALL, + CLOCK_FACE_LARGE +} ClockFaceSize; + +GType clock_face_get_type (void); + +GtkWidget *clock_face_new (ClockFaceSize size); +GtkWidget *clock_face_new_with_location (ClockFaceSize size, + ClockLocation *loc, + GtkWidget *size_widget); +gboolean clock_face_refresh (ClockFace *this); + + +#ifdef __cplusplus +} +#endif + +#endif |