1
#define VERSION "0.3.3"
2
#define RELEASE_DATE "20 Jan 2001"
4
void AddZone( gpointer clocklist );
5
void DeleteZone( gpointer clocklist );
6
void ChangeZoneDescription(gpointer clocklist);
7
gint SaveZones(gpointer clocklist);
8
static void send_clock_quit( gpointer clocklist );
9
gint SetTime(gpointer clocklist);
10
gint SetToGivenTime(gpointer clocklist, time_t timeToSet);
11
void AboutDialog(gpointer clocklist);
12
void Synchronise(gpointer clocklist);
13
time_t extractSyncTime();
15
static GtkItemFactoryEntry mainmenu_items[] = {
16
{ "/_File", NULL, NULL, 0, "<Branch>" },
17
/* { "/File/_Open Zones", NULL, NULL, 0, NULL },*/
18
{ "/File/_Save Zones", NULL, (void *)SaveZones, 0, NULL },
19
/* { "/File/Save Zones _As", NULL, NULL, 0, NULL },*/
20
{ "/File/_Quit", "<control>Q", send_clock_quit, 0, NULL },
21
{ "/_Options", NULL, NULL, 0, "<Branch>" },
22
{ "/Options/_Add Timezone", "<control>A", AddZone, 0, NULL },
23
{ "/Options/_Delete Timezone", "<control>D", DeleteZone, 0, NULL },
24
{ "/Options/Change Description", NULL, ChangeZoneDescription, 0, NULL},
25
{ "/Options/Synchronise Time", NULL, Synchronise, 0, NULL},
26
{ "/_Help", NULL, NULL, 0, "<LastBranch>" },
27
{ "/_Help/About", NULL, AboutDialog, 0, NULL }
30
static GtkItemFactoryEntry popupmenu_items[] = {
31
{ "/Synchronise Time", NULL, Synchronise, 0, NULL},
32
/* setup "add zone" here to add at selected row! */
33
{ "/Add Timezone", NULL, AddZone, 0, NULL },
34
{ "/Delete Timezone", NULL, DeleteZone, 0, NULL},
35
{ "/Change Description", NULL, ChangeZoneDescription, 0, NULL}
50
/* Keep this number up to date with the number of continents in the
51
array above. Not that the number of continents on Earth is going
52
to change, but you know. */
54
gint Ncontinents = 10;
57
typedef struct NameCodeType {
59
gchar *code; /* actually only 2 characters needed, but 3 would be better */
62
/* this data is used to construct the time when synchronising */
63
typedef struct SyncData {
73
/* approx width of one character in pixels */
76
gint SYNCBOX_HEIGHT=145;
1
/* global definitions needed by several gworldclock files */
6
/* two display columns: Name of zone, and time/date.
7
This could be adjusted later to separate time from date.
8
Also, store the TZ name here.
19
GString timeDisplayFormat;