~drbob/+junk/diary-main

« back to all changes in this revision

Viewing changes to src/storage-manager.c

  • Committer: Philip Withnall
  • Date: 2008-03-30 01:12:30 UTC
  • Revision ID: philip@tecnocode.co.uk-20080330011230-o9qm5wlhlfhpg2cs
2008-03-30  Philip Withnall  <philip@tecnocode.co.uk>

        * src/Makefile.am:
        * src/link.c:
        * src/links/note.c: Added "note" link type.
        * data/diary.ui:
        * src/main-window.c:
        * src/storage-manager.c: Various small fixes and UI improvements, as
        well as some improvements to the handling of empty entries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
236
236
        g_date_set_time_t (current_date, time (NULL));
237
237
        entry_date = g_date_new_dmy (day, month, year);
238
238
 
239
 
        /* Entries can't be edited before they've happened, or after 7 days after they've happened */
 
239
        /* Entries can't be edited before they've happened, or after 14 days after they've happened */
240
240
        days_between = g_date_days_between (entry_date, current_date);
241
241
        g_date_free (entry_date);
242
242
        g_date_free (current_date);
243
243
 
244
 
        if (days_between < 0 || days_between > 7)
 
244
        if (days_between < 0 || days_between > 20)
245
245
                return FALSE;
246
246
        else
247
247
                return TRUE;