diff options
author | Chris Toshok <toshok@ximian.com> | 2002-11-05 20:16:52 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2002-11-05 20:16:52 +0800 |
commit | 3a40fbaf60d50b477999335406df0d7bcf0ca84c (patch) | |
tree | ab059a8c48f355a8fd31633b9189300ab6217186 /addressbook/backend/ebook/e-card.c | |
parent | bca61092c2a89aa993abd6302b5c372df099e361 (diff) | |
download | gsoc2013-evolution-3a40fbaf60d50b477999335406df0d7bcf0ca84c.tar gsoc2013-evolution-3a40fbaf60d50b477999335406df0d7bcf0ca84c.tar.gz gsoc2013-evolution-3a40fbaf60d50b477999335406df0d7bcf0ca84c.tar.bz2 gsoc2013-evolution-3a40fbaf60d50b477999335406df0d7bcf0ca84c.tar.lz gsoc2013-evolution-3a40fbaf60d50b477999335406df0d7bcf0ca84c.tar.xz gsoc2013-evolution-3a40fbaf60d50b477999335406df0d7bcf0ca84c.tar.zst gsoc2013-evolution-3a40fbaf60d50b477999335406df0d7bcf0ca84c.zip |
g_date_* => g_date_get_*, fixes G_DISABLE_DEPRECATED build.
2002-11-05 Chris Toshok <toshok@ximian.com>
* backend/ebook/e-card.c: g_date_* => g_date_get_*, fixes
G_DISABLE_DEPRECATED build.
* backend/ebook/e-book-listener.[ch]: remove the servant crap i'd
c&p'ed and put in here.
* backend/ebook/e-book-view-listener.[ch]: remove the servant crap
i'd c&p'ed and put in here.
* backend/pas/pas-book-factory.[ch]: subclass from BonoboObject,
and remove the servant crap from here too. whee.
* backend/pas/pas-card-cursor.[ch]: remove the servant crap i'd
c&p'ed and put in here.
* backend/pas/pas-book.[ch]: remove the servant crap i'd c&p'ed
and put in here.
* backend/pas/pas-book-view.[ch]: remove the servant crap i'd
c&p'ed and put in here.
svn path=/trunk/; revision=18548
Diffstat (limited to 'addressbook/backend/ebook/e-card.c')
-rw-r--r-- | addressbook/backend/ebook/e-card.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/addressbook/backend/ebook/e-card.c b/addressbook/backend/ebook/e-card.c index 0419a6b885..f98269dff5 100644 --- a/addressbook/backend/ebook/e-card.c +++ b/addressbook/backend/ebook/e-card.c @@ -280,7 +280,7 @@ e_card_get_use_score(ECard *card) e_card_get_today (&today); g_date_set_dmy (&last_use, card->last_use->day, card->last_use->month, card->last_use->year); - days_since_last_use = g_date_julian (&today) - g_date_julian (&last_use); + days_since_last_use = g_date_get_julian (&today) - g_date_get_julian (&last_use); /* Apply a seven-day "grace period" to the use score decay. */ days_since_last_use -= 7; @@ -304,9 +304,9 @@ e_card_touch(ECard *card) if (card->last_use == NULL) card->last_use = g_new (ECardDate, 1); - card->last_use->day = g_date_day (&today); - card->last_use->month = g_date_month (&today); - card->last_use->year = g_date_year (&today); + card->last_use->day = g_date_get_day (&today); + card->last_use->month = g_date_get_month (&today); + card->last_use->year = g_date_get_year (&today); card->raw_use_score = use_score + 1.0; } |