Commit Graph

33 Commits

Author SHA1 Message Date
ac94f697a5 New function. (cal_component_get_icalcomponent): Ensure that the SEQUENCE
2000-08-07  Federico Mena Quintero  <federico@helixcode.com>

	* cal-util/cal-component.c (cal_component_clone): New function.
	(cal_component_get_icalcomponent): Ensure that the SEQUENCE
	property does not need incrementing.

	* gui/dialogs/alarm-notify-dialog.c (alarm_notify_dialog): Use
	CalComponent.  Deal with an empty summary property.

svn path=/trunk/; revision=4589
2000-08-08 02:55:29 +00:00
98317c6565 gladeified replacement for eventedit.c
* gui/event-editor.[ch]: gladeified replacement for eventedit.c

	* gui/event-editor-utils.[ch]: utilities used by event-editor.c

	* gui/event-editor-dialog.glade: glade file used by event-editor.c

svn path=/trunk/; revision=3046
2000-05-15 16:51:36 +00:00
181e276c46 new function: friendly wrapper for cal_client_create_calendar
* gui/gnome-cal.c (gnome_calendar_create): new function:
        friendly wrapper for cal_client_create_calendar

        * gui/calendar-commands.c (new_calendar): call gnome_calendar_create
        if no filename is provided

        * gui/prop.c (properties): calendar is a frame

        * gui/calendar-commands.c (calendar_control_activate): sort out the
        menus a bit, more of them show up now.

        * gui/Makefile.am: don't build library or test, just the bonobo control

        * gui/gncal-todo.c (simple_todo_editor): calendar is a frame instead
        of a window, now.

        * gui/gnome-cal.c (gnome_calendar_new): same

        * gui/goto.c (goto_dialog): same

svn path=/trunk/; revision=2339
2000-04-08 20:21:31 +00:00
ce3b224ed6 build test-calendar-widget and evolution-calendar, common stuff is in a
* gui/Makefile.am: build test-calendar-widget and evolution-calendar,
        common stuff is in a library

        * gui/gnome-cal.c (gnome_calendar_get_type): made the calendar widget
        based on a gtk_frame rather than a gnome_app

        * gui/calendar-commands.c: split out some of main.c

        * gui/evolution-calendar-control.c: bonobo bung so evolution
        can use the calendar widget

svn path=/trunk/; revision=2294
2000-04-05 20:13:45 +00:00
9f31ce86ff Make Evolution compile with the latest Bonobo changes.
Make Evolution compile with the latest Bonobo changes.

Miguel.

svn path=/trunk/; revision=1636
2000-01-26 00:04:16 +00:00
afb4599180 The long-awaited and much-needed (IMNSHO) snooze button for gnomecal alarms.
Not strictly [vi]Calendar compliant, but much more intuitive.

svn path=/trunk/; revision=1456
1999-12-03 00:55:01 +00:00
c895e6eefa Merged Rusty's last todo list coloring patch from stable to HEAD.
svn path=/trunk/; revision=1429
1999-11-22 08:04:07 +00:00
dded739f63 The long-awaited audio alarm timeout patch. Implements wishlist bug #3089.
Note: Per discussion on calendar-list, checks to see that timeout value is
reasonable, i.e. between 1 and MAX_AALARM_TIMEOUT (set to 3600 seconds).  Check
is enforced by GtkSpinButton in property box and the patch when loading from
disk.

svn path=/trunk/; revision=1384
1999-11-12 17:11:02 +00:00
a6c4b53533 Add default alarm support, Beep on display alarms option
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
1999-11-03 02:36:31 +00:00
241a65b72b Small fix -miguel
svn path=/trunk/; revision=1265
1999-09-27 20:56:29 +00:00
9d0b58bb8e Fix #2340 on HEAD -miguel
svn path=/trunk/; revision=1263
1999-09-27 19:14:36 +00:00
fa1d506238 Added preliminary support for todo item priorities: they can be set, displayed,
and used as a sorting criterion.  They are enabled/disabled using the
properties page, as with due dates.

svn path=/trunk/; revision=947
1999-05-26 15:25:04 +00:00
cdc2ca8e2a Made it respect 12/24h settings.. Doesn't show until next time you open
1999-03-26  Tomas Ogren  <stric@ing.umu.se>

* prop.c (build_hours_menu): Made it respect 12/24h settings..
Doesn't show until next time you open the dialog.. yet..

svn path=/trunk/; revision=780
1999-03-26 17:07:10 +00:00
9adbbaf76f Add support for Due Date when adding a TODO item here. (column_resized):
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
1999-03-11 02:58:18 +00:00
06231f4f07 tzname issues
1999-02-22  Timur Bakeyev  <mc@bat.ru>

	* configure.in: Added check for langinfo.h and for representation of
	timezone info - tzname or tm.tm_zone.

svn path=/trunk/; revision=682
1999-02-22 00:55:21 +00:00
b681ca2a81 will define fonts via fontset. Friendlier to locales that use iso8859-[^1]
* gnome-month-item.c,gnome-month-item.h,goto.c,mark.h,
	month-view.c,prop.c,quick-view.c,year-view.c: will define
	fonts via fontset. Friendlier to locales that use iso8859-[^1]
	and koi8-r encodings. Does not solve problem for Asian languiges
	--- better solution is needed (e.g. standart GNOME fontstyles
	defined in gtkrc).

                                       Interpol

svn path=/trunk/; revision=677
1999-02-18 00:05:17 +00:00
e79ebe3019 Only trap printable characters such that hotkeys work. (UNSELECT_TIMEOUT):
1999-01-20  Nat Friedman  <nat@nat.org>

	* gncal-full-day.c (gncal_full_day_key_press): Only trap printable
 	characters such that hotkeys work.
	(UNSELECT_TIMEOUT): Changed to 0.  Much saner behavior.

	* prop.c (properties): Connect gnome_help_pbox_display to the
 	GnomePropertyBox help button.

svn path=/trunk/; revision=615
1999-01-20 07:01:10 +00:00
da6a42ae38 Use gnome_dialog_set_parent. ditto ditto.
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
1998-12-10 02:57:11 +00:00
148fa77939 s/gtk_window_position/gtk_window_set_position/
s/gtk_window_position/gtk_window_set_position/
s/gtk_container_border_width/gtk_container_set_border_width/

svn path=/trunk/; revision=498
1998-12-02 09:30:21 +00:00
e9a632c3c1 Use the font #defines. (month_view_new): Set the colors of the month view
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
1998-10-01 23:47:01 +00:00
e6ffe37f19 Stuff that I forgot to commit yesterday.
Stuff that I forgot to commit yesterday.

Now the year view has a nifty pop-up view you can activate if you click on
a day with mouse button 1.  It will display a quick view of the appointments
in that day.  Also, reworked the marking and coloring code for month items
so that the year view is not glacially slow anymore when switching years.

It still is slow when first mapping or realizing the year view, I'm not sure why.
I will look into that.

1998-09-29  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* prop.c (fetch_color_spec): Changed name from fetch_prelight_spec
	and made it conform to the new prelighting mechanism.
	(fake_mark_days): Set the proper day attributes.
	(reconfigure_month): Use colorify_month_item().
	(fake_mark_days): Use mark_month_item_index().

	* mark.c (colorify_month_item): New public function to reset the
	colors in a month item.
	(get_attributes): New internal function that creates an array of
	attributes for the days in a month item.  This is the basis of all
	the new optimizations to month item marking.
	(unmark_month_item): Now it uses the attributes array to unmark
	only the days that need unmarking.
	(mark_event_in_month): Update the day attributes array.
	(month_item_prepare_prelight): Changed the definition of the
	prelight color query function.  Use the new function.
	(day_event): Do color changes based on the day attributes array.
	(mark_month_item_index): New public function to mark a single day
	by index.
	(mark_event_in_month): Use mark_month_item_index().

	* gnome-month-item.c (gnome_month_item_num2child): Now takes an
	int, not a GnomeMonthItemChild.
	(gnome_month_item_child2num): Now returns an int, not a
	GnomeMonthItemChild.
	(gnome_month_item_num2day): Now takes an int, not a
	GnomeMonthItemChild.

	* goto.c (goto_dialog): Create the days before the year spin
	button, because the year_changed callback expects the month item
	to be created.  The new semantics of the spin button cause it to
	emit a value_changed signal on the adjustment upon creation -- is
	this the behavior we want from it?
	(goto_dialog): Use gtk_window_set_modal() instead of the
	deprectaed gnome_dialog_set_modal().

	* quick-view.c (quick_view_new): Make it look not as crappy by
	putting the title inside the frame.
	(quick_view_do_popup): Fixed the pointer grab and added a cursor.
	(create_items_for_event): Query the text width/height from the
	text item using the new object arguments, so that the size of the
	popup window can be set properly.

	* year-view.c (do_quick_view_popup): Calculate a nice date string
	for the popup window.

svn path=/trunk/; revision=415
1998-09-30 16:44:14 +00:00
84fa00e42a Finished with the properties dialog. You can jump to days from the year
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
1998-09-04 00:43:06 +00:00
de704a7b45 Today: we can now configure the colors for the monthly items, courtesy of
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
1998-09-03 05:33:07 +00:00
bf844f9fa8 Today: Beautification of the Preferences dialog. Made the menus more
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
1998-08-25 02:19:20 +00:00
4d075f28b5 Changed the Properties menu item to Preferences. These are global
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
1998-08-24 19:59:25 +00:00
43fd11d9b8 Doh. Actually recalculate the days using the month and year.
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
1998-08-14 00:33:01 +00:00
e5ce5147f9 Only run the apply code once.
1998-05-04  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* prop.c (prop_apply): Only run the apply code once.

svn path=/trunk/; revision=207
1998-05-05 04:30:46 +00:00
07afd79b9c crash fix for proeprty dialog -mig
svn path=/trunk/; revision=203
1998-05-01 02:14:45 +00:00
017a40b429 Made it use popup_menu().
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
1998-04-23 00:26:37 +00:00
a4f71191ad Make GnomeCalendar properties use GnomePropertyBox -miguel
svn path=/trunk/; revision=187
1998-04-23 00:12:07 +00:00
4884d2bf8e Perfection and sometimes requires two commits -mig
svn path=/trunk/; revision=185
1998-04-22 05:41:37 +00:00
e9ec4c0f6a Perfection comes in many disguises -mig
svn path=/trunk/; revision=184
1998-04-22 05:40:36 +00:00
4763fec1dc Forgot to cvs add this file
svn path=/trunk/; revision=183
1998-04-22 05:19:58 +00:00