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-location-tile.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-location-tile.h')
-rw-r--r-- | applets/clock/clock-location-tile.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/applets/clock/clock-location-tile.h b/applets/clock/clock-location-tile.h new file mode 100644 index 00000000..00ccb5a8 --- /dev/null +++ b/applets/clock/clock-location-tile.h @@ -0,0 +1,51 @@ +#ifndef __CLOCK_LOCATION_TILE_H__ +#define __CLOCK_LOCATION_TILE_H__ + +#include <gtk/gtk.h> + +#include "clock.h" +#include "clock-face.h" +#include "clock-location.h" +#include "clock-utils.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#define CLOCK_LOCATION_TILE_TYPE (clock_location_tile_get_type ()) +#define CLOCK_LOCATION_TILE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), CLOCK_LOCATION_TILE_TYPE, ClockLocationTile)) +#define CLOCK_LOCATION_TILE_CLASS(c) (G_TYPE_CHECK_CLASS_CAST ((c), CLOCK_LOCATION_TILE_TYPE, ClockLocationTileClass)) +#define IS_CLOCK_LOCATION_TILE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), CLOCK_LOCATION_TILE_TYPE)) +#define IS_CLOCK_LOCATION_TILE_CLASS(c) (G_TYPE_CHECK_CLASS_TYPE ((c), CLOCK_LOCATION_TILE_TYPE)) +#define CLOCK_LOCATION_TILE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), CLOCK_LOCATION_TILE_TYPE, ClockLocationTileClass)) + +typedef struct +{ + GtkAlignment parent; +} ClockLocationTile; + +typedef struct +{ + GtkAlignmentClass parent_class; + + void (* tile_pressed) (ClockLocationTile *tile); + int (* need_clock_format) (ClockLocationTile *tile); +} ClockLocationTileClass; + +GType clock_location_tile_get_type (void); + +ClockLocationTile *clock_location_tile_new (ClockLocation *loc, + ClockFaceSize size); + +ClockLocation *clock_location_tile_get_location (ClockLocationTile *this); + +void weather_info_setup_tooltip (WeatherInfo *info, ClockLocation *location, GtkTooltip *tip, + ClockFormat clock_format); + +void clock_location_tile_refresh (ClockLocationTile *this, + gboolean force_refresh); + +#ifdef __cplusplus +} +#endif +#endif /* __CLOCK_H__ */ |