From 4517358debc8bcd761a469e901bae160704deaf2 Mon Sep 17 00:00:00 2001 From: Damon Chaplin Date: Thu, 14 Jun 2001 06:00:21 +0000 Subject: new dialog for setting the time zone. 2001-06-14 Damon Chaplin * gui/dialogs/e-timezone-dialog.[hc]: * gui/dialogs/e-timezone-dialog.glade: new dialog for setting the time zone. * gui/dialogs/Makefile.am: added timezone dialog files. * idl/evolution-calendar.idl: added CalTimezoneInfo struct and seq, and getBuiltinTimezoneInfo method. * pcs/cal.c (impl_Cal_get_builtin_timezone_info): implemented method. (cal_class_init): added method to epv. * cal-client/cal-client.c (struct CalClientPrivate): added timezone_info array to contain cached info on builtin timezone city names and coordinates. (cal_client_get_builtin_timezone_info): new function to get the info about builtin timezones. * cal-client/cal-client.h: added CalTimezoneInfo struct, to contain the city names and coords of the builtin timezones. svn path=/trunk/; revision=10223 --- calendar/cal-client/cal-client.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'calendar/cal-client/cal-client.h') diff --git a/calendar/cal-client/cal-client.h b/calendar/cal-client/cal-client.h index 1f0211ef32..6d5891f7e1 100644 --- a/calendar/cal-client/cal-client.h +++ b/calendar/cal-client/cal-client.h @@ -65,6 +65,13 @@ typedef enum { CAL_CLIENT_LOAD_LOADED } CalClientLoadState; +/* A timezone name and its coordinates in the world. */ +typedef struct _CalTimezoneInfo CalTimezoneInfo; +struct _CalTimezoneInfo { + char *location; + double latitude; + double longitude; +}; struct _CalClient { GtkObject object; @@ -126,6 +133,8 @@ gboolean cal_client_remove_object (CalClient *client, const char *uid); CalQuery *cal_client_get_query (CalClient *client, const char *sexp); +GArray *cal_client_get_builtin_timezone_info (CalClient *client); + END_GNOME_DECLS -- cgit v1.2.3