diff options
author | Trevor Johnson <trevor@FreeBSD.org> | 2002-05-22 21:58:38 +0000 |
---|---|---|
committer | Trevor Johnson <trevor@FreeBSD.org> | 2002-05-22 21:58:38 +0000 |
commit | 70bdff4a9fc5eb342e2dbd83be0ab2a31b0fd708 (patch) | |
tree | a78710c1b796f05f5bf243ba2cc505a127062bc7 /astro/celestia | |
parent | Make this less crude. (diff) |
This must be patched when GTK+ is enabled.
Diffstat (limited to 'astro/celestia')
-rw-r--r-- | astro/celestia/files/patch-src_celestia_gtkmain.cpp | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/astro/celestia/files/patch-src_celestia_gtkmain.cpp b/astro/celestia/files/patch-src_celestia_gtkmain.cpp new file mode 100644 index 000000000000..ede78b615f60 --- /dev/null +++ b/astro/celestia/files/patch-src_celestia_gtkmain.cpp @@ -0,0 +1,36 @@ +$FreeBSD$ + +--- src/celestia/gtkmain.cpp.orig Thu May 2 11:02:50 2002 ++++ src/celestia/gtkmain.cpp Tue May 21 03:55:01 2002 +@@ -270,17 +270,8 @@ + + static gint menuShowLocTime(GtkWidget* w, gpointer data) + { +- bool on = (appCore->getTimeZoneBias()==0); +- if (on) +- { +- appCore->setTimeZoneBias(-timezone); +- appCore->setTimeZoneName(tzname[daylight?0:1]); +- } +- else +- { +- appCore->setTimeZoneBias(0); +- appCore->setTimeZoneName("UTC"); +- } ++ appCore->setTimeZoneBias(0); ++ appCore->setTimeZoneName("UTC"); + return TRUE; + } + +@@ -2058,9 +2049,8 @@ + appCore->start((double) curtime / 86400.0 + (double) astro::Date(1970, 1, 1)); + localtime(&curtime); /* Only doing this to set timezone as a side + effect*/ +- appCore->setTimeZoneBias(-timezone); +- appCore->setTimeZoneName(tzname[daylight?0:1]); +- timeOptions[1]=tzname[daylight?0:1]; ++ appCore->setTimeZoneBias(localtime(&curtime)->tm_gmtoff); ++ appCore->setTimeZoneName(localtime(&curtime)->tm_zone); + } + + return TRUE; |