aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/calendar.h
Commit message (Collapse)AuthorAgeFilesLines
* Warn if the calendar file has changed.Miguel de Icaza1999-01-281-0/+3
| | | | | | | | | | | | 1999-01-27 Miguel de Icaza <miguel@nuclecu.unam.mx> * main.c (save_calendar_cmd): Warn if the calendar file has changed. * calendar.c (calendar_load, calendar_save): Keep track of the modification time for the calendar file. svn path=/trunk/; revision=632
* Rewrote the old and broken alarm system. It never actually workedMiguel de Icaza1998-12-171-1/+1
| | | | | | | | | | | | | | | | | 1998-12-16 Miguel de Icaza <miguel@nuclecu.unam.mx> Rewrote the old and broken alarm system. It never actually worked properly. Now it works properly, and I figured a nice way to get the Audio alarm do something nicer (it is now like an alarm clock :-). * gnome-cal.c (calendar_notify): Now we take a CalendarAlarm to actually distinguish which alarm was triggered. * alarm.c (alarm_ready): The code was only activating the first alarm. Reschedule the timer upon delivery of an alarm. svn path=/trunk/; revision=535
* Today: fixed calculation of day indexes when weeks start on Monday. TheFederico Mena Quintero1998-08-281-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Today: fixed calculation of day indexes when weeks start on Monday. The year view now marks days (and fixed bugs in day marking as well). Next step: make a generic month-marker routine and use that all over the place. 1998-08-27 Federico Mena Quintero <federico@nuclecu.unam.mx> * gnome-month-item.c (build_month): Now does the correct thing when the user wants weeks to start on Monday. Now all the Monday special casing, as far as day numbering is concerned, is only in this function. * year-view.c (mark_days): This function marks the days that have events in them. It also fixes a memory leak in the old implementation (it was leaking the whole list). (unmark_days): New function used to unmark all the days in the year view. (mark_event): New function that marks all the days that are spanned by a time range. It also fixes the bug in the old implementation where it could possibly mark days past the ends of the year (if the event crosses year boundaries, for example). * timeutil.c (time_year_begin): Take the year parameter since year 1, not 1900. (time_year_end): Likewise. * year-view.c (year_view_size_allocate): Now changing the size of the calendars is done in the idle loop. (idle_handler): This function actually does the resizing of the items. * year-view.h (struct _YearView): Added idle_id and need_resize fields. svn path=/trunk/; revision=346
* Lots of fixes:Arturo Espinosa1998-04-291-0/+3
| | | | | | | | | | | | | Lots of fixes: 1. Alarms are rescheduled when an event has been changed. 2. Avoid emitting spurious event changes. 3. Applied black magic to get the mail-notification working. Miguel. svn path=/trunk/; revision=199
* Yes.Arturo Espinosa1998-04-181-0/+1
| | | | | | | | | | | | | | | | | | | | | Yes. It works. It loads, it saves, it does all that stuff. It works, even if federico complains that we did not test close. Repetition, alarms, all that stuff you all guys love. It it is there. We did minimal testing, but we know you will happilly commit a fix if you find a problem, right? Ok, we are off to a party now. Miguel svn path=/trunk/; revision=155
* Added mandatory status property. (ical_object_to_vobject): Only storeFederico Mena Quintero1998-04-181-0/+1
| | | | | | | | | | | | | | | | 1998-04-17 Federico Mena Quintero <federico@nuclecu.unam.mx> * calobj.c (ical_new): Added mandatory status property. (ical_object_to_vobject): Only store "related" list if it exists. * main.c (save_calendar_cmd): Implemented calendar saving. (open_calendar_cmd): Implemented calendar loading. (new_calendar_cmd): Implemented calendar creation. (new_calendar): Don't load our test calendar by default. * gncal-full-day.c (delete_appointment): Delete appointment implemented. svn path=/trunk/; revision=153
* Year view, double click -migArturo Espinosa1998-04-181-3/+0
| | | | svn path=/trunk/; revision=152
* Large number of updates. Recurrence basically works now in most of itsArturo Espinosa1998-04-181-1/+1
| | | | | | | | | Large number of updates. Recurrence basically works now in most of its forms (daily, weekly, month-by-position). Miguel. svn path=/trunk/; revision=148
* Remove deadly excessive abuse of encapsulation -migArturo Espinosa1998-04-171-2/+0
| | | | svn path=/trunk/; revision=147
* New event generation api in place -miguelArturo Espinosa1998-04-171-1/+20
| | | | svn path=/trunk/; revision=146
* Year view marks ranges of new dates (on update view). Recurrence iteratorArturo Espinosa1998-04-151-0/+12
| | | | | | | | | | | Year view marks ranges of new dates (on update view). Recurrence iterator functions are here now (clap, clap, clap). Microsoft Outlook's days are counted. Miguel. svn path=/trunk/; revision=139
* Show instead of just map the child widget (otherwise the text widget getsFederico Mena Quintero1998-04-091-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | 1998-04-09 Federico Mena Quintero <federico@nuclecu.unam.mx> * gncal-full-day.c (child_map): Show instead of just map the child widget (otherwise the text widget gets confused and will not focus). * calobj.c (ical_object_to_vobject): Quote chars as 'x', not "x". * calobj.h: Added prototype for ical_object_to_vobject(). * gnome-cal.c (gnome_calendar_object_changed): New function. This should be called when a calendar object is changed. * gncal-full-day.c (update_from_drag_info): Call gnome_calendar_object_changed() instead of updating manually. * calendar.c (calendar_add_object): (calendar_remove_object): Set the modified flag to true. * gncal-full-day.c (gncal_full_day_draw): Finished implementing this function. svn path=/trunk/; revision=120
* More work in progress, wheeeee - FedericoArturo Espinosa1998-04-081-0/+1
| | | | svn path=/trunk/; revision=109
* lots more -migArturo Espinosa1998-04-041-0/+1
| | | | svn path=/trunk/; revision=105
* New main program that uses our new datatypes and objects.Miguel de Icaza1998-04-021-0/+1
| | | | | | | | | | | | | | | | | | | | | 1998-04-02 Miguel de Icaza <miguel@nuclecu.unam.mx> * main.c: New main program that uses our new datatypes and objects. * calendar.c (calendar_load_from_vobject, calendar_load): Implement loading of vCalendar objects and vCalendar files. * calobj.c (ical_object_create_from_vobject): Implement loading of vCalendar event and todo objects. * timeutil.c (isodate_from_time_t): New function. * gnome-cal.c, gnome-cal.h: Implement a toplevel widget, derived from GnomeApp. It holds all of the day views and arbitrates the display. svn path=/trunk/; revision=93
* GnomeCalendar toplevel GnomeApp; versit code -migArturo Espinosa1998-04-021-2/+2
| | | | svn path=/trunk/; revision=89
* These functions now take a sort_func parameter, which is of typeFederico Mena Quintero1998-04-021-3/+5
| | | | | | | | | | | | | | | | 1998-04-01 Federico Mena Quintero <federico@nuclecu.unam.mx> * calendar.c (calendar_get_objects_in_range): (calendar_get_events_in_range): (calendar_get_journal_in_range): (calendar_get_journal_in_range): These functions now take a sort_func parameter, which is of type GCompareFunc. If the specified value is non-NULL, it will return a sorted list. Otherwise, it will return an unordered list. (calendar_compare_by_dtstart): Provide a generic sorting routine for calendar objects. svn path=/trunk/; revision=88
* Removed #include "gtkcalendar.h", because it now comes from libgnomeui.Federico Mena Quintero1998-04-011-0/+2
| | | | | | | | | | | 1998-03-31 Federico Mena Quintero <federico@nuclecu.unam.mx> * gncal.c: Removed #include "gtkcalendar.h", because it now comes from libgnomeui. * Makefile.am (gncal_SOURCES): Added new source files to the rules. svn path=/trunk/; revision=84
* Small typo fixed -migArturo Espinosa1998-04-011-2/+2
| | | | svn path=/trunk/; revision=80
* Calendar objects as defined by the iCalendar IETF draft. Calendar holderArturo Espinosa1998-04-011-0/+25
Calendar objects as defined by the iCalendar IETF draft. Calendar holder for Calendar Objects. -mig&fed svn path=/trunk/; revision=79