summaryrefslogtreecommitdiff
path: root/applets/clock/clock-map.h
diff options
context:
space:
mode:
authorPerberos <[email protected]>2011-12-01 22:56:10 -0300
committerPerberos <[email protected]>2011-12-01 22:56:10 -0300
commitc51ef797a707f4e2c6f9688d4378f2b0e9898a66 (patch)
tree019ae92bb53c19b30077545cb14743cbd1b57aef /applets/clock/clock-map.h
downloadmate-panel-c51ef797a707f4e2c6f9688d4378f2b0e9898a66.tar.bz2
mate-panel-c51ef797a707f4e2c6f9688d4378f2b0e9898a66.tar.xz
moving from https://github.com/perberos/mate-desktop-environment
Diffstat (limited to 'applets/clock/clock-map.h')
-rw-r--r--applets/clock/clock-map.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/applets/clock/clock-map.h b/applets/clock/clock-map.h
new file mode 100644
index 00000000..2b662c87
--- /dev/null
+++ b/applets/clock/clock-map.h
@@ -0,0 +1,43 @@
+#ifndef __CLOCK_MAP_H__
+#define __CLOCK_MAP_H__
+
+#include "clock.h"
+#include "clock-location.h"
+
+#include <gtk/gtk.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define CLOCK_MAP_TYPE (clock_map_get_type ())
+#define CLOCK_MAP(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), CLOCK_MAP_TYPE, ClockMap))
+#define CLOCK_MAP_CLASS(c) (G_TYPE_CHECK_CLASS_CAST ((c), CLOCK_MAP_TYPE, ClockMapClass))
+#define IS_CLOCK_MAP(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), CLOCK_MAP_TYPE))
+#define IS_CLOCK_MAP_CLASS(c) (G_TYPE_CHECK_CLASS_TYPE ((c), CLOCK_MAP_TYPE))
+#define CLOCK_MAP_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), CLOCK_MAP_TYPE, ClockMapClass))
+
+typedef struct
+{
+ GtkWidget parent;
+} ClockMap;
+
+typedef struct
+{
+ GtkWidgetClass parent_class;
+
+ GList *(* need_locations) (ClockMap *map);
+} ClockMapClass;
+
+GType clock_map_get_type (void);
+
+ClockMap *clock_map_new (void);
+void clock_map_refresh (ClockMap *this);
+void clock_map_update_time (ClockMap *this);
+void clock_map_blink_location (ClockMap *this, ClockLocation *loc);
+
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* __CLOCK_MAP_H__ */