aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorTomas Ogren <stric@ing.umu.se>1999-02-16 06:40:43 +0800
committerTomas Ă–gren <stric@src.gnome.org>1999-02-16 06:40:43 +0800
commite701ad14c74a29ce2dfb033b36a08706fe7aee9c (patch)
tree9aff05a242b9773c73d268ee4e87ecb17f967475 /calendar/gui
parent77a4da633987f49c8b9b4cb9c9ac8e5e3f82c778 (diff)
downloadgsoc2013-evolution-e701ad14c74a29ce2dfb033b36a08706fe7aee9c.tar.gz
gsoc2013-evolution-e701ad14c74a29ce2dfb033b36a08706fe7aee9c.tar.zst
gsoc2013-evolution-e701ad14c74a29ce2dfb033b36a08706fe7aee9c.zip
Made a private copy of what localtime() returns, to be able to keep the
1999-02-15 Tomas Ogren <stric@ing.umu.se> * goto.c: Made a private copy of what localtime() returns, to be able to keep the data after more calls to localtime(). svn path=/trunk/; revision=669
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/goto.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/calendar/gui/goto.c b/calendar/gui/goto.c
index 0dd0a3f22e..cc86616d31 100644
--- a/calendar/gui/goto.c
+++ b/calendar/gui/goto.c
@@ -254,12 +254,12 @@ goto_dialog (GnomeCalendar *gcal)
GtkWidget *hbox;
GtkWidget *w;
GtkWidget *days;
- struct tm *tm;
+ struct tm tm;
gnome_calendar = gcal;
current_index = -1;
- tm = localtime (&gnome_calendar->current_display);
+ memcpy(&tm, localtime (&gnome_calendar->current_display), sizeof(tm));
goto_win = gnome_dialog_new (_("Go to date"),
GNOME_STOCK_BUTTON_CANCEL,
@@ -282,17 +282,17 @@ goto_dialog (GnomeCalendar *gcal)
* month_item to be created.
*/
- days = create_days (tm->tm_mday, tm->tm_mon, tm->tm_year + 1900);
+ days = create_days (tm.tm_mday, tm.tm_mon, tm.tm_year + 1900);
/* Year */
- w = create_year (tm->tm_year + 1900);
+ w = create_year (tm.tm_year + 1900);
gtk_box_pack_start (GTK_BOX (vbox), w, FALSE, FALSE, 0);
gtk_widget_show (w);
/* Month */
- w = create_months (tm->tm_mon);
+ w = create_months (tm.tm_mon);
gtk_box_pack_start (GTK_BOX (vbox), w, FALSE, FALSE, 0);
gtk_widget_show (w);
s-gnome/commit/devel/subversion16?h=gnome-3.24&id=2b27f882650ee75a4c927196e28dfc67bebd6cd9'>Some ports have a rather hardcoded dependency on Subversion and specificallyobrien2010-05-281-0/+8 * Add support to build with GNOME keyring auth.obrien2010-05-282-0/+8 * - Missed one in previous devel/apr -> devel/aprpgollucci2010-05-181-1/+1 * - Convert ports/ to devel/apr1pgollucci2010-05-181-2/+2 * 4/5: Chase devel/apr shlib bumppgollucci2010-05-061-1/+1 * 3/5: Fix apr-1.3 libnames to be apr-1pgollucci2010-05-061-1/+1 * Update to 1.6.11.lev2010-04-197-13/+108 * Begin the process of deprecating sysutils/rc_subr bydougb2010-03-271-1/+1 * Fix some garbage in last commit (five-second rule in action!)skv2010-02-102-5/+2 * Update to 1.6.9skv2010-02-103-9/+17 * Unbreak for "fresh" systems.lev2009-11-051-2/+3 * Update to 1.6.6lev2009-10-242-4/+4 * (1) Update to 1.6.5lev2009-08-253-4/+18 * Update to Subversion 1.6.4. This is a security update.simon2009-08-072-4/+4 * -Repocopy devel/libtool15 -> libtool22 and libltdl15 -> libltdl22.mezz2009-08-031-1/+1 * (1) Update to 1.6.3lev2009-06-263-18/+11 * Update to 1.6.2lev2009-05-112-4/+4 * Fix FreeBSD hacks finallylev2009-05-021-3/+3 * Fix FreeBSD hacks not to crash on memory deallocation.lev2009-04-301-3/+3 * (1) Update to version 1.6.1lev2009-04-296-41/+67 * (1) Put svn_hacks-1.2.diff to local-distfileslev2009-04-074-14/+55 * (1) Enable mod_authz_svnlev2009-04-042-3/+5 * Update to version 1.6.0.lev2009-04-046-572/+708 * o Remove devel/apr-svn and replace with devel/aprpgollucci2009-01-191-6/+0 * Update book (WITH_BOOK option) to 1.5 version, which is frozen now and will...lev2008-12-302-8/+8 * Update to 1.5.5lev2008-12-302-5/+5 * Add "--listen-host 0.0.0.0" to default svnserve flags, to listen on IPv4 ad...lev2008-10-282-3/+8 * (1) Add SVN Book to distinfolev2008-10-262-2/+8 * (1) Update to 1.5.4lev2008-10-255-58/+66 * - Update to 1.5.2miwi2008-09-082-4/+4 * Update CONFIGURE_ARGS for how we pass CONFIGURE_TARGET to configure script.rafan2008-08-211-1/+0 * (1) Update to 1.5.1lev2008-07-263-15/+15 * Fix subversion's bindings building ob build cluster, when subversion everyt...lev2008-07-221-3/+3 * Fix building of bindings in BATCH mode (without options file at all):lev2008-07-081-3/+5 * (1) Move all options-related logic into Makefile.common, so bindings portslev2008-07-072-79/+87 * (1) Fix bindings dependencies when WITH_FREEBSD_SUBVERSION is setlev2008-07-022-7/+12 * Add missing distfile for -freebsd slave port.ale2008-06-301-0/+3 * Fix CATEGORIES for subversion & binding ports.lev2008-06-301-1/+1 * (1) Upgrade subversion to version 1.5.0.lev2008-06-307-621/+2444 * Bump portrevision due to upgrade of devel/gettext.edwin2008-06-061-1/+1 * Add subversion-devel and subversion-freebsd to CONFLICTSdougb2008-06-051-1/+1