aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/main.c
Commit message (Collapse)AuthorAgeFilesLines
* Add default alarm support, Beep on display alarms optionRussell Steinthal1999-11-031-0/+64
| | | | | | | | | Since there are now some calls from prop.c into previously static functions in eventedit.c, the code in those files should probably be reorganized. Perhaps a new alarm-utils.c file? In any case, this commits working code to the repository before we reorganize. svn path=/trunk/; revision=1366
* Commit debugging support to HEAD as well; there's no good reason to have ↵Russell Steinthal1999-10-221-1/+11
| | | | | | debugging in the stable but not devel version, is there? svn path=/trunk/; revision=1340
* Fix bug #1818 on HEAD.Russell Steinthal1999-10-221-4/+16
| | | | svn path=/trunk/; revision=1337
* Fix #2340 on HEAD -miguelArturo Espinosa1999-09-281-1/+1
| | | | svn path=/trunk/; revision=1263
* Modify the object->last_mod field. (calendar_add_object): Ditto.Miguel de Icaza1999-08-311-1/+7
| | | | | | | | | | | | | | | | 1999-08-30 Miguel de Icaza <miguel@nuclecu.unam.mx> * calendar.c (calendar_object_changed): Modify the object->last_mod field. (calendar_add_object): Ditto. Closes bug #676 * main.c (save_calendar_cmd): Fix problem in which we warned the user about the calendar being modified the first time the calendar was used. svn path=/trunk/; revision=1150
* BUGFIX #1819JP Rosevear1999-08-051-5/+4
| | | | | | | | | Please note that the calendar_save routine is now responsible for changing the filename attribute of the calendar struct, rather than the calling function. This was so that the filename could be reverted if the open failed. svn path=/trunk/; revision=1080
* Make the code not take arguments (sync_cal_to_pilot): Nice event updateMiguel de Icaza1999-07-291-1/+0
| | | | | | | | | | | | | | | | | | | | 1999-07-28 Miguel de Icaza <miguel@gnu.org> * calendar-pilot-sync.c: Make the code not take arguments (sync_cal_to_pilot): Nice event update information * calendar.c (calendar_new): Add Event UID hash table. (calendar_add_object): Add events to the hash table here. (calendar_remove_object): Remove events here. (calendar_object_find_event): Use the hash table here. * main.c (save_calendar_cmd): The object is already destroyed by gnome_dialog_run. * calendar-pilot-sync.c (sync_object_to_pilot): Do not turn archived bit on. svn path=/trunk/; revision=1041
* New file. Implements PalmPilot syncronization with the Gnome Calendar.Miguel de Icaza1999-07-281-8/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1999-07-28 Miguel de Icaza <miguel@gnu.org> * calendar-pilot-sync.c: New file. Implements PalmPilot syncronization with the Gnome Calendar. 1999-07-27 Miguel de Icaza <miguel@gnu.org> * calobj.c (ical_object_new_from_string): New function. Creates an iCalObject from a vCalendar string that is supposed to contain only one vEvent. * calendar.c: (calendar_save): Split this routine in two. * gnome-cal.c (gnome_calendar_new): Create the corba server here. * main.c: Include gnorba.h, and corba-cal-factory.h here (close_cmd): Kill the calendar server on shutdown. * calobj.c (load_recur_yearly_day): Added a fixme comment. WE need to handle intervals in the years. * calendar.c (calendar_object_find_in_list, calendar_object_find, calendar_object_find_todo, calendar_object_find_event): New functions for looking up information. * main.c (gnome_calendar_locate): New function. * corba-cal.c (calendar_create_object): New file. Implements the corba server. * calendar.c (calendar_object_changed): Flag pilot-status as changed. * calobj.c (ical_object_to_vobject): Save pilot information for syncing. (ical_object_create_from_vobject): Load syncing information for pilot. Do it in a way compatible with KOrganizer. 1999-07-26 Miguel de Icaza <miguel@gnu.org> * calobj.c (ical_object_create_from_vobject): Generate unique IDs on Vevents we load that lack it. WE need this for the old gnome calendar generated files (ie, before now :-). svn path=/trunk/; revision=1038
* Fixing a segfault when gnomecal is started with --hiddenAnders Carlsson1999-06-161-0/+2
| | | | svn path=/trunk/; revision=980
* Added preliminary support for todo item priorities: they can be set, displayed,Russell Steinthal1999-05-261-0/+1
| | | | | | | and used as a sorting criterion. They are enabled/disabled using the properties page, as with due dates. svn path=/trunk/; revision=947
* Added missing break here. It was causing core dumps when invoked withMiguel de Icaza1999-05-261-1/+2
| | | | | | | | | 1999-05-25 Miguel de Icaza <miguel@nuclecu.unam.mx> * main.c (parse_an_arg): Added missing break here. It was causing core dumps when invoked with --userfile. svn path=/trunk/; revision=944
* Set the canvas scroll region here, not in size_allocate(). Also, use theFederico Mena Quintero1999-05-261-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | 1999-05-25 Federico Mena Quintero <federico@nuclecu.unam.mx> * year-view.c (idle_handler): Set the canvas scroll region here, not in size_allocate(). Also, use the correct width and height based on the allocation and the precomputed minimum width/height values. * gnome-cal.c (setup_widgets): Set the scrollbar policy of the scrolled window. * main.c (setup_appbar): Use the correct type for the appbar. * gncal-day-view.c: Removed unused function switch_to_day(). * gncal-day-panel.c (calendar_day_selected): Removed unused variable. 1999-05-25 Federico Mena Quintero <federico@nuclecu.unam.mx> * configure.in: Added the gncal/doc/* Makefiles to AC_OUTPUT. svn path=/trunk/; revision=939
* This is the fix Miguel and I hacked in the car at Expo to make theNat Friedman1999-05-261-2/+8
| | | | | | | | | | | | | | | | | | | | | year view work in low-resolution displays. This isn't the proper fix, but it's better than the way things were. 1999-05-25 Nat Friedman <nat@nat.org> * doc/C/gnomecal.sgml: Fixed a typo. * gnome-cal.c (setup_widgets): Added a scrolled window widget into which the year view is placed. * year-view.c (CALENDAR_HEIGHT): The height of the total year view inside the scrolled window. (idle_handler): Set the height of the year view to CALENDAR_HEIGHT. (year_view_size_allocate): Set the scroll region of the year view canvas to allocation->width, CALENDAR_HEIGHT. svn path=/trunk/; revision=938
* Add Docbook framework for documenting Gnomecal -miguelArturo Espinosa1999-05-181-1/+1
| | | | svn path=/trunk/; revision=928
* Add --todo supportArturo Espinosa1999-04-261-1/+56
| | | | | | Add --todo support svn path=/trunk/; revision=880
* Made clist titles i18n:able Added which views that are possible for --viewTomas Ogren1999-03-241-6/+6
| | | | | | | | | | | | 1999-03-24 Tomas Ogren <stric@ing.umu.se> * gncal-todo.c (gncal_todo_init): Made clist titles i18n:able * main.c (poptOption): Added which views that are possible for --view in the --help text (closes #367) * main.c (dump_events): Added (short) month to the strftime and made the strings i18n:able svn path=/trunk/; revision=778
* Add support for Due Date when adding a TODO item here. (column_resized):Clifford R. Conover1999-03-111-1/+24
| | | | | | | | | | | | | | | | | | | | | | | | 1999-03-10 Clifford R. Conover <rconover@montana.edu> * gncal-todo.c (simple_todo_editor): Add support for Due Date when adding a TODO item here. (column_resized): New function (init_column_sorting): New function. (todo_click_column): New function. (convert_time_t_to_char, make_overdue_todo_style): New functions. * gnome-cal.c (gnome_calendar_todo_properties_changed): New function used to update the TODO when the properties have been chagned for it. * prop.c (prop_apply_todo): Apply TODO properties. * gncal-day-panel.c (todo_list_properties_changed): Update the TODO display here. * eventedit.c (date_edit_new): Made public svn path=/trunk/; revision=757
* Made use of g_get_{user,real}_name() instead of our own home-brew...Tomas Ogren1999-02-201-24/+2
| | | | | | | | | 1999-02-20 Tomas Ogren <stric@ing.umu.se> * main.c (init_username): Made use of g_get_{user,real}_name() instead of our own home-brew... svn path=/trunk/; revision=679
* Internationalization Police (Interpol)Sergey I. Panov1999-02-161-7/+7
| | | | | | | * main.c: Use N_() macro for color settings labels in color_props structure. svn path=/trunk/; revision=672
* Gnomecal now autosaves all the time.Arturo Espinosa1999-02-121-0/+12
| | | | | | | | Gnomecal now autosaves all the time. Miguel. svn path=/trunk/; revision=662
* Removed the gtk_widget_realize call.Tomas Ogren1999-02-091-1/+0
| | | | | | | | 1999-02-09 Tomas Ogren <stric@ing.umu.se> * main.c: Removed the gtk_widget_realize call. svn path=/trunk/; revision=657
* Add --hidden key to hide the calendar at startup. Only works with GNOMEMiguel de Icaza1999-01-291-7/+27
| | | | | | | | | 1999-01-28 Miguel de Icaza <miguel@nuclecu.unam.mx> * main.c (parse_an_arg): Add --hidden key to hide the calendar at startup. Only works with GNOME window managers though :-( svn path=/trunk/; revision=635
* Schedule an alarm for midnight to change theMiguel de Icaza1999-01-291-2/+2
| | | | | | | | | | | | 1999-01-28 Miguel de Icaza <miguel@nuclecu.unam.mx> * calendar.c (calendar_init_alarms): Schedule an alarm for midnight to change the calendar_day_begin/calendar_day_end. * alarm.c (alarm_ready): If we reschedule, there is no need to activate any pending alarms. svn path=/trunk/; revision=634
* Warn if the calendar file has changed.Miguel de Icaza1999-01-281-18/+44
| | | | | | | | | | | | 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
* do gtk_widget_realize on the toplevel window..Tomas Ogren1999-01-191-0/+1
| | | | | | | | 1999-01-19 Tomas Ogren <stric@ing.umu.se> * main.c: do gtk_widget_realize on the toplevel window.. svn path=/trunk/; revision=610
* Converted some more stuff to use the standards.Nat Friedman1999-01-091-19/+6
| | | | | | | | 1999-01-08 Nat Friedman <nat@nat.org> * main.c: Converted some more stuff to use the standards. svn path=/trunk/; revision=590
* New function to create the status bar. (setup_menu): Install menu hints.Nat Friedman1999-01-081-25/+53
| | | | | | | | | | | | 1999-01-08 Nat Friedman <nat@nat.org> * main.c (setup_appbar): New function to create the status bar. (setup_menu): Install menu hints. Menu items updated to match the standards. New Settings menu created. svn path=/trunk/; revision=589
* s/g_copy_strings/g_strconcat/Jeff Garzik1998-12-311-1/+1
| | | | svn path=/trunk/; revision=566
* 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
* Use gnome_dialog_set_parent. ditto ditto.Miguel de Icaza1998-12-101-1/+7
| | | | | | | | | | 1998-12-09 Miguel de Icaza <miguel@nuclecu.unam.mx> * gncal-todo.c (simple_todo_editor): Use gnome_dialog_set_parent. * goto.c (goto_dialog): ditto * prop.c (properties): ditto. svn path=/trunk/; revision=522
* Remove more deprecated gnome_dialog functionsManish Vachharajani1998-11-301-1/+1
| | | | svn path=/trunk/; revision=493
* Fixed the popt event parsing callback to have the correct number ofMatthew Wilson1998-11-221-24/+24
| | | | | | | | | 1998-11-22 Matthew Wilson <msw@redhat.com> * main.c: Fixed the popt event parsing callback to have the correct number of arguments. This stops it from segfaulting. svn path=/trunk/; revision=481
* poptimizationElliot Lee1998-11-031-27/+22
| | | | svn path=/trunk/; revision=460
* Replaced the 'gnome_client_new_default' call with 'gnome_master_client'.Carsten Schaar1998-10-081-2/+3
| | | | | | | * main.c (main): Replaced the 'gnome_client_new_default' call with 'gnome_master_client'. svn path=/trunk/; revision=431
* Changed name from time_start_of_day() to be consistent with the otherFederico Mena Quintero1998-10-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 1998-10-02 Federico Mena Quintero <federico@nuclecu.unam.mx> * timeutil.c (time_day_begin): Changed name from time_start_of_day() to be consistent with the other begin/end functions. (time_day_end): Likewise. * calobj.c (ical_object_get_first_weekday): New public function to get the first toggled day in a weekday mask. Since we do not support multiple weekdays in a monthly-by-pos rule, we just fetch the first toggled one. (ical_object_generate_events): Added a missing break statement. * timeutil.c (time_month_end): Made it consistent with the rest of the time begin/end functions -- now it returns the first second of the *next* month. (time_week_end): Actually implemented this function. It will be used when the week view is rewritten. * calobj.c (time_in_range): Fix off-by-one in the comparison of the time against the end time. * gncal-full-day.c (expand_space): Fixed bug where the columns not were being expanded due to a missing "slot + j". svn path=/trunk/; revision=425
* Use the font #defines. (month_view_new): Set the colors of the month viewFederico Mena Quintero1998-10-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1998-10-01 Federico Mena Quintero <federico@nuclecu.unam.mx> * month-view.c (month_view_init): Use the font #defines. (month_view_new): Set the colors of the month view upon creation. (mark_current_day): New function to mark the current day in the month view. (month_view_set): Mark the current day. (month_view_colors_changed): Mark the current day and colorify the month item appropriately. * month-view.h: Added year and month fields to the MonthView structure. * main.c: Renamed the Appointments color property, since it will be used by the month view as well. * goto.c (update): Set the current day's font and color. * year-view.c (year_view_init): Set the fonts of the month items when creating them. * mark.h: Added new #defines for HEADING_FONT and TITLE_FONT. * year-view.c (year_view_init): Use the new font #defines. * prop.c (prop_apply_colors): Fixed to work with the I-am-paranoid-and-I-need-to-size-my-ints changes to GnomeColorPicker. (color_spec_from_picker): Likewise. svn path=/trunk/; revision=424
* Colorify the month item and prepare it for prelighting here.Federico Mena Quintero1998-10-011-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1998-09-30 Federico Mena Quintero <federico@nuclecu.unam.mx> * goto.c (create_days): Colorify the month item and prepare it for prelighting here. * main.c (color_props): Changed the default colors to something not dull. * year-view.c (compute_min_size): New function to compute the minimum size of the year view properly. (year_view_size_request): Added two new fields to the year view structure that contain the minimum size. Return this in the size_request method. (year_view_new): Call compute_min_size to save the minimum size for later use. (idle_handler): Make it resize the items correctly. * gnome-month-item.c (gnome_month_item_set_arg): Reshape when necessary. This is needed becaues we now actually calculate a minimum size for the month item based on the font sizes and paddings. (check_heading_sizes): New function to calculate a minimum size based on the headings' dimensions. (check_day_sizes): New function to calculate a minimum size based on the day number labels' dimensions. (check_sizes): New function that computes a minimum size for the month item. (reshape): Now calls check_sizes() to ensure a minimum size for the month item. svn path=/trunk/; revision=419
* Hotkey for File/Exit should be C-q, not C-x.Federico Mena Quintero1998-09-271-1/+1
| | | | | | | | 1998-09-27 Federico Mena Quintero <federico@nuclecu.unam.mx> * main.c: Hotkey for File/Exit should be C-q, not C-x. svn path=/trunk/; revision=403
* New function to execute the popup menu in the year view. (day_event):Federico Mena Quintero1998-09-251-2/+2
| | | | | | | | | | | | | | | | 1998-09-24 Federico Mena Quintero <federico@nuclecu.unam.mx> * year-view.c (do_popup_menu): New function to execute the popup menu in the year view. (day_event): Invoke the popup menu with the context set to days. (new_appointment): New function to create a new appointment from the year view. (do_jump): New function to do the appropriate view/date jumping from the popup menu. * main.c: Fixed two icons in the File menu. svn path=/trunk/; revision=398
* Added underlined shortcuts and accelerators to the main menu.Federico Mena Quintero1998-09-221-18/+30
| | | | | | | | 1998-09-21 Federico Mena Quintero <federico@nuclecu.unam.mx> * main.c: Added underlined shortcuts and accelerators to the main menu. svn path=/trunk/; revision=391
* Finished with the properties dialog. You can jump to days from the yearFederico Mena Quintero1998-09-041-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Finished with the properties dialog. You can jump to days from the year view now. I'm off to rewrite gnome-popupmenu and friends. 1998-09-03 Federico Mena Quintero <federico@nuclecu.unam.mx> * gncal-full-day.c (gncal_full_day_forall): Updated foreach -> forall from Gtk changes, bleah. * year-view.c (day_event): New function to handle events from days. Jumps to the day that is clicked. * main.c: Use a watch cursor while the previous/today/next functions are doing their job. * mark.c (month_item_prepare_prelight): New public utility function to prepare a month item for prelighting. It will store the proper prelight information and attach the appropriate signals. (mark_current_day): Make the current day bold as well (useful for color-blind people, I guess). * prop.c (set_current_day): Reset the date in the sample calendar and mark the current day. (fake_mark_days): Mark fake events in the sample calendar. * year-view.c (year_view_set): Use the general prelighting engine. * goto.c (day_event): Just process button presses, as prelighting is done behind the scenes now. (update): Use the general prelighting engine. * prop.c (create_colors_page): We can now configure the colors of svn path=/trunk/; revision=361
* Today: we can now configure the colors for the monthly items, courtesy ofFederico Mena Quintero1998-09-031-1/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Today: we can now configure the colors for the monthly items, courtesy of the canvas and GnomeColorPicker. Look at the preferences dialog, it is kind of nice. There are still some bugs to be fixed, nothing major. 1998-09-03 Federico Mena Quintero <federico@nuclecu.unam.mx> * prop.c (create_colors_page): We can now configure the colors of the monthly calendars! Wheeeeee! There are still some nits to be fixed, which are listed in the TODO file. (build_color_spec): New function to build color specifications. (parse_color_spec): New function to parse color specifications. * mark.c: Modified all functions to use the configured colors. * goto.c: Likewise. * main.c (colors_changed): New function that notifies all calendars that colors have changed. * gnome-cal.c (gnome_calendar_colors_changed): New function that notifies all the views that the colors have changed. * month-view.c (month_view_colors_changed): New function that notifies the month view that colors have changed. * year-view.c (year_view_colors_changed): New function that notifies the year view that colors have changed. * gnome-month-item.h (struct _GnomeMonthItem): Added fields for outline and day box colors. * gnome-month-item.c (gnome_month_item_set_arg): Added outline_color, outline_color_gdk, day_box_color, and day_box_color_gdk arguments to month items. These are convenient to quickly set the colors of the month item. (gnome_month_item_get_arg): Likewise. * main.[ch]: Added a global array of structures for color preferences. svn path=/trunk/; revision=360
* Set the heading color of the month item.Federico Mena Quintero1998-08-261-4/+5
| | | | | | | | | | | | | | | | | | | 1998-08-25 Federico Mena Quintero <federico@nuclecu.unam.mx> * goto.c (create_days): Set the heading color of the month item. * main.c: Use GNOME_STOCK_PIXMAP_JUMP_TO, now that it exists, instead of goto.xpm. Also, removed goto.xpm from cvs. * gnome-month-item.h (struct _GnomeMonthItem): Added fields for the heading and day number fonts. Added fields for heading and day number label colors. * gnome-month-item.c (gnome_month_item_class_init): ARG_DAY_NAMES should be write-only. Also, added arguments for heading and day number fonts. Added arguments for heading and day number colors. svn path=/trunk/; revision=339
* Fixlet to the about box - FedericoArturo Espinosa1998-08-251-4/+3
| | | | svn path=/trunk/; revision=338
* Today: Beautification of the Preferences dialog. Made the menus moreFederico Mena Quintero1998-08-251-43/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Today: Beautification of the Preferences dialog. Made the menus more consistent with the rest of GNOME. Started work on the meat of the month view. Minor fixups on some of the other views. 1998-08-24 Federico Mena Quintero <federico@nuclecu.unam.mx> * prop.c (build_two_radio_group): Doh. Set the state of the radio buttons properly. * month-view.c (month_view_time_format_changed): New public function that notifies the month view of a time format change. * gnome-cal.c (gnome_calendar_time_format_changed): New public function that notifies the calendar of a time format change. * main.c (time_format_changed): Use gnome_calendar_time_format_changed(). * month-view.c (month_view_update): New public function to update the month view when an event changes. This is still unfinished. (month_view_set): New public function to set the month in the month view. * gnome-cal.c (gnome_calendar_direction): Add case for month view. (gnome_calendar_set_view): Likewise. (gnome_calendar_update_all): Likewise. * timeutil.c (time_add_week): Implemented the time_add_week() function, which was on the header file. (time_add_month): Added public month-adding routine. * gnome-cal.c (gnome_calendar_get_current_view_name): Add case for month view. (gnome_calendar_goto): Likewise, and set the time on the month view. * month-view.c (month_view_new): Now it takes the calendar plus the time_t representing the month. * gnome-month-item.h: Added documentation on the object arguments for the month item. * month-view.c (month_view_init): Added a month/year heading to the month view. * TODO: Updated the TODO list a bit. * main.c (gnome_cal_file_menu): The preferences menu option should go in the File menu. (gnome_cal_edit_menu): Added stock pixmaps to the menu items. (gnome_cal_menu): Renamed the Calendar menu to Edit. (gnome_cal_help_menu): Use "About Gnomecal", not just "About". * prop.c (hour_activated): Notify the property box that it has changed. svn path=/trunk/; revision=337
* Changed the Properties menu item to Preferences. These are globalFederico Mena Quintero1998-08-251-7/+10
| | | | | | | | | | | | | | | | | | | | | | | | | 1998-08-24 Federico Mena Quintero <federico@nuclecu.unam.mx> * main.c: Changed the Properties menu item to Preferences. These are global application preferences, not a single calendar's properties. * prop.c (prop_apply): Save the week_starts_on_monday flag to the configuration file. (properties): Added a check button for weeks starting on Monday. (properties): Beautified the Preferences dialog. * month-view.c (month_view_init): * goto.c (create_days): Set the month item to start weeks on Monday if appropriate. * main.c (init_calendar): A boolean is not an hour, so don't range_check_hour() on it. (init_calendar): Added a global week_starts_on_monday flag. * main.h: Added global week_starts_on_monday flag. svn path=/trunk/; revision=336
* We now have a nice generic monthly calendar item for the canvas. WeFederico Mena Quintero1998-08-191-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | also have a convenient "Go To" dialog, just like in the PalmPilot. Next step is a pretty month view - Federico 1998-08-18 Federico Mena Quintero <federico@nuclecu.unam.mx> * gnome-month-item.c (gnome_month_item_day2index): New public function to get the displayed day index of the specified date. * gnome-cal.c (gnome_calendar_goto_today): New public function to jump to the current day. * goto.c (day_event): Jump to the selected day when the user clicks the mouse, and prelight days as appropriate. * timeutil.c (time_from_day): New public function to build a time_t from a year/month/day triplet. * gnome-month-item.c (gnome_month_item_num2child): (gnome_month_item_child2num): New public functions to convert an index into a child and vice-versa, respectively. (gnome_month_item_num2day): New public function to convert a child number into a displayed day number. * goto.c (goto_dialog): Doh, use gnome-dialog properly :-) * gnome-month-item.c (create_items): Use g_strdup()ed day names from the start. 1998-08-17 Federico Mena Quintero <federico@nuclecu.unam.mx> * main.c (gnome_toolbar): Made it use goto.xpm. * Makefile.am (EXTRA_DIST): Added goto.xpm to the list of files. svn path=/trunk/; revision=326
* Doh. Actually recalculate the days using the month and year.Federico Mena Quintero1998-08-141-0/+13
| | | | | | | | | | | | | | | 1998-08-13 Federico Mena Quintero <federico@nuclecu.unam.mx> * gnome-month-item.c (gnome_month_item_set_arg): Doh. Actually recalculate the days using the month and year. * main.c: Added "Go to" button to quickly jump to a specific date. * goto.c: New file that defines the quick go-to date dialog. * Makefile.am (gnomecal_SOURCES): Added goto.c to the sources. svn path=/trunk/; revision=317
* Little compiler warning fix - FedericoArturo Espinosa1998-08-131-1/+1
| | | | svn path=/trunk/; revision=313
* Made title i18n friendly. This was bug #215.Nuno Ferreira1998-08-121-4/+5
| | | | | | | | | | * main.c (new_calendar): Made title i18n friendly. This was bug #215. * eventedit.c (ee_store_recur_end_to_ical): Set recur->enddate to recur->_enddate, not to itself, when adding recurring event and supplying an end date. This fixes (at least part of) bug #99. svn path=/trunk/; revision=310
* Use an array of const strings to keep gcc happy.Federico Mena Quintero1998-08-041-1/+1
| | | | | | | | | | | | | 1998-08-03 Federico Mena Quintero <federico@nuclecu.unam.mx> * main.c (about_calendar_cmd): Use an array of const strings to keep gcc happy. * alarm.c (alarm_compare_by_time): Use gconstpointer to keep gcc happy. * calendar.c (calendar_object_compare_by_start): Likewise. * gncal-full-day.c (child_compare_by_start): Likewise. svn path=/trunk/; revision=296
* Add support for --view flag. (session_save_state): Save the view mode;Miguel de Icaza1998-07-081-11/+29
| | | | | | | | | | | | | | | | 1998-07-07 Miguel de Icaza <miguel@nuclecu.unam.mx> * main.c: Add support for --view flag. (session_save_state): Save the view mode; (new_calendar): Now takes a view mode flag. * gnome-cal.c (gnome_calendar_get_current_view_name): New function for enhancing the session management support for gnomecal. (gnome_calendar_set_view): New function that makes a given page active. svn path=/trunk/; revision=278
* Use gnome_geometry_string to get the geometry string.Havoc Pennington1998-06-231-9/+4
| | | | | | | | | Mon Jun 22 13:01:16 1998 Havoc Pennington <hp@pobox.com> * main.c (session_save_state): Use gnome_geometry_string to get the geometry string. svn path=/trunk/; revision=267
* Fix the gc destruction in the unrealization code and fix the pixmapMiguel de Icaza1998-05-261-1/+1
| | | | | | | | | | | | 1998-05-25 Miguel de Icaza <miguel@nuclecu.unam.mx> * gncal-full-day.c (gncal_full_day_unrealize): Fix the gc destruction in the unrealization code and fix the pixmap unrefing. * main.c (close_cmd): Remove a bad hack that disabled calendar widget destruction. svn path=/trunk/; revision=238
* 1. Fix: `New Appointment' defaults to the current day. 2. Add `NewArturo Espinosa1998-05-091-0/+17
| | | | | | | | | | 1. Fix: `New Appointment' defaults to the current day. 2. Add `New appointment today' entry. 3. Use the new freeze/thaw changes to avoid the extensive flicker. Miguel. svn path=/trunk/; revision=209
* Fix for SM code, I was allocating less than needed (thanks to federico for ↵Arturo Espinosa1998-04-301-1/+1
| | | | | | quickly spotting my mistake) -mig svn path=/trunk/; revision=202
* Added Session management to GnomeCal -miguelArturo Espinosa1998-04-291-38/+126
| | | | svn path=/trunk/; revision=200
* Fix user name computation -migArturo Espinosa1998-04-261-1/+7
| | | | svn path=/trunk/; revision=195
* Fixed alarm saving code. Fixed alarm loading code. New -partial-Arturo Espinosa1998-04-251-2/+43
| | | | | | | | | Fixed alarm saving code. Fixed alarm loading code. New -partial- implementation of the mail alarm. It is not working, I do not know what is closing stdin to sendmail svn path=/trunk/; revision=194
* Made it use popup_menu().Federico Mena Quintero1998-04-231-4/+5
| | | | | | | | | | | | | | | | | | | | | | | 1998-04-22 Federico Mena Quintero <federico@nuclecu.unam.mx> * gncal-full-day.c: Made it use popup_menu(). * popup-menu.c: New file with utility functions for creating popup menus. Maybe such a thing would be useful in libgnomeui, a la gnome-app-helper? * Makefile.am (gnomecal_SOURCES): Added popup-menu.[ch] to the sources. 1998-04-21 Federico Mena Quintero <federico@nuclecu.unam.mx> * gncal-todo.c: New widget for editing TODO lists. This will be worked on a lot. * Makefile.am (gnomecal_SOURCES): Added gncal-todo.[ch] to the sources. * gncal-day-panel.c: Make it use the new TODO widget. svn path=/trunk/; revision=189
* Perfection comes in many disguises -migArturo Espinosa1998-04-221-1/+1
| | | | svn path=/trunk/; revision=184
* 1. Calendar property configuration is finally here with nice live-updates.Arturo Espinosa1998-04-221-4/+21
| | | | | | | | | | | | | 1. Calendar property configuration is finally here with nice live-updates. 2. Double clicking on week view jumps to that day in the day view; Context menu allows adding an appointment on that day. Miguel. svn path=/trunk/; revision=182
* Added calls to gtk_window_set_wmclass to gnome-utils - migArturo Espinosa1998-04-221-1/+2
| | | | svn path=/trunk/; revision=180
* Made it use GncalDayPanel.Federico Mena Quintero1998-04-221-0/+1
| | | | | | | | | | | | | | | | | | 1998-04-21 Federico Mena Quintero <federico@nuclecu.unam.mx> * gnome-cal.c: Made it use GncalDayPanel. * gncal-day-panel.c: New widget for the day view in the main calendar toplevel. It basically takes care of everything gnome-cal did by hand with respect to the day view. * Makefile.am (gnomecal_SOURCES): Added gncal-day-panel.[ch] to the rules. * main.c: Added a separator between the About menu item and the help topics. svn path=/trunk/; revision=177
* Made it use the new paint_row function instead of painting everythingFederico Mena Quintero1998-04-211-27/+29
| | | | | | | | | | | | | 1998-04-20 Federico Mena Quintero <federico@nuclecu.unam.mx> * gncal-full-day.c (paint_back): Made it use the new paint_row function instead of painting everything directly. We calculate areas in a smarter way so there is even less flicker than before, especially when selecting regions. * eventedit.c: Sensitize recurrence widgets properly. svn path=/trunk/; revision=171
* Fix compiler warnings - FedericoArturo Espinosa1998-04-211-2/+4
| | | | svn path=/trunk/; revision=170
* more fixes -migArturo Espinosa1998-04-211-2/+2
| | | | svn path=/trunk/; revision=169
* Use GNOME_STOCK_PIXMAP_HOME for today -migArturo Espinosa1998-04-201-1/+1
| | | | svn path=/trunk/; revision=167
* Update spanish translation for the Calendar.Arturo Espinosa1998-04-191-7/+126
| | | | | | | | | | | | | | | | | Update spanish translation for the Calendar. Added command line handling to the calendar program. You can now display your appointments for any given date from the command line wihtout running X. Added CVS's `getdate'. This is a date parser for a bunch of formats. Internationalized getdate. You can even type date descriptions in your native language. Miguel. svn path=/trunk/; revision=159
* Add Quoted printable property to items containing new lines. (duration):Miguel de Icaza1998-04-191-2/+16
| | | | | | | | | | | | | | | 1998-04-18 Miguel de Icaza <miguel@nuclecu.unam.mx> * calobj.c (ical_object_to_vobject): Add Quoted printable property to items containing new lines. (duration): Use unsigned integers, to work around buggy calendar files generated by korganizer. * main.c (save_calendar_cmd): Do not ask for file name if we are saving. (save_as_calendar_cmd): New command. svn path=/trunk/; revision=158
* Final steps.Arturo Espinosa1998-04-181-0/+12
| | | | svn path=/trunk/; revision=157
* Usability fixes -migArturo Espinosa1998-04-181-5/+16
| | | | svn path=/trunk/; revision=156
* Yes.Arturo Espinosa1998-04-181-15/+21
| | | | | | | | | | | | | | | | | | | | | 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-35/+82
| | | | | | | | | | | | | | | | 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
* The event dialog is beautified, recurrences are saner.Federico Mena Quintero1998-04-181-1/+4
| | | | | | | | | | 1998-04-17 Federico Mena Quintero <federico@nuclecu.unam.mx> * eventedit.c (ee_init_recurrence_page): New function that creates the recurrence page in the toplevel notebook. (ee_store_recur_values_to_ical): Now we can also store the recurrences. svn path=/trunk/; revision=151
* New event generation api in place -miguelArturo Espinosa1998-04-171-16/+25
| | | | svn path=/trunk/; revision=146
* The general_owner may be null. Do the proper thing when creating theFederico Mena Quintero1998-04-161-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | 1998-04-15 Federico Mena Quintero <federico@nuclecu.unam.mx> * eventedit.c (ee_init_general_page): The general_owner may be null. Do the proper thing when creating the label. (ee_ok): Update the gnome calendar appropriately. * timeutil.h: * gncal-year-view.h: Add some missing prototypes. * gncal-full-day.c (child_popup_menu): Set the sensitivity of menu items according to whether the ical object is being edited or not. * eventedit.c (event_editor_new): Set the "being edited" flag on the ical object (stored as the ical object's user data). (event_editor_destroy): Release the flag. * calobj.h: The iCalObject structure now has a generic user_data pointer. * calobj.c (ical_object_set_user_data ical_object_get_user_data): Functions to set this data. svn path=/trunk/; revision=140
* New widget for the year view. added required compilation of the new files.Arturo Espinosa Aldama1998-04-151-1/+1
| | | | | | | | | 1998-04-14 Arturo Espinosa Aldama <arturo@nuclecu.unam.mx> * gncal-year-view.[hc]: New widget for the year view. * Makefile.am: added required compilation of the new files. svn path=/trunk/; revision=134
* More work in progress, wheeeee - FedericoArturo Espinosa1998-04-081-1/+4
| | | | svn path=/trunk/; revision=109
* vCalendar gets fully saved -migArturo Espinosa1998-04-051-3/+3
| | | | svn path=/trunk/; revision=107
* more and more fixes -migArturo Espinosa1998-04-041-12/+3
| | | | svn path=/trunk/; revision=104
* Lots -migArturo Espinosa1998-04-041-7/+34
| | | | svn path=/trunk/; revision=103
* add test.vcf, more code progress -migArturo Espinosa1998-04-031-2/+2
| | | | svn path=/trunk/; revision=100
* More calendar work -migArturo Espinosa1998-04-031-0/+16
| | | | svn path=/trunk/; revision=98
* Day events are now cached inside the widget. They get initialized at thisMiguel de Icaza1998-04-031-2/+2
| | | | | | | | | | | 1998-04-02 Miguel de Icaza <miguel@nuclecu.unam.mx> * gncal-day-view.c (gncal_day_view_update): Day events are now cached inside the widget. They get initialized at this time. * view-utils.c (view_utils_draw_events): Use the list of events. svn path=/trunk/; revision=95
* New main program that uses our new datatypes and objects.Miguel de Icaza1998-04-021-2/+22
| | | | | | | | | | | | | | | | | | | | | 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-0/+218
svn path=/trunk/; revision=89