X-Git-Url: https://git.street.me.uk/andy/viking.git/blobdiff_plain/d156fff56c25b446eb6e983e92d68c3442eb68dc..511792a4991443fac7b57f48d2bae2d857fdbd93:/src/vikstatus.h diff --git a/src/vikstatus.h b/src/vikstatus.h index f4aaa5f3..c5fd5ba7 100644 --- a/src/vikstatus.h +++ b/src/vikstatus.h @@ -40,12 +40,26 @@ typedef struct _VikStatusbarClass VikStatusbarClass; struct _VikStatusbarClass { GtkStatusbarClass statusbar_class; + + void (* clicked) (VikStatusbar *vs, + gint item); }; GType vik_statusbar_get_type (); + +typedef enum { + VIK_STATUSBAR_TOOL, + VIK_STATUSBAR_ITEMS, + VIK_STATUSBAR_ZOOM, + VIK_STATUSBAR_INFO, + VIK_STATUSBAR_POSITION, + VIK_STATUSBAR_NUM_TYPES +} vik_statusbar_type_t; + VikStatusbar *vik_statusbar_new (); -void vik_statusbar_set_message ( VikStatusbar *vs, gint field, const gchar *message ); +void vik_statusbar_set_message ( VikStatusbar *vs, vik_statusbar_type_t field, const gchar *message ); +G_END_DECLS #endif