diff options
author | trevor <trevor@FreeBSD.org> | 2002-05-23 05:58:38 +0800 |
---|---|---|
committer | trevor <trevor@FreeBSD.org> | 2002-05-23 05:58:38 +0800 |
commit | d6f2eb7cbcca257bc2d5ceceb954aa9ddef10a89 (patch) | |
tree | 21973325e24c3bab9ac45cba5335b04b530b6454 /astro/celestia | |
parent | 2043fa016ebe8abab8a6f8db2eabad334eff5866 (diff) | |
download | freebsd-ports-gnome-d6f2eb7cbcca257bc2d5ceceb954aa9ddef10a89.tar.gz freebsd-ports-gnome-d6f2eb7cbcca257bc2d5ceceb954aa9ddef10a89.tar.zst freebsd-ports-gnome-d6f2eb7cbcca257bc2d5ceceb954aa9ddef10a89.zip |
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; |