Commit Graph

319 Commits

Author SHA1 Message Date
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
0e94defc99 Remove check for `canonicalize_file_name'.
* gnome-support.m4: Remove check for `canonicalize_file_name'.

svn path=/trunk/; revision=359
1998-09-02 22:53:56 +00:00
2be214b598 Check for canonicalize_file_name () and realpath () and add
1998-09-02  Martin Baulig  <martin@home-of-linux.org>

	* gnome-support.m4: Check for canonicalize_file_name () and
 	realpath () and add `canonicalize.o' to LIBOBJS if required.

svn path=/trunk/; revision=358
1998-09-02 08:02:29 +00:00
0c255f1119 Added (AC_SUBST): `LIBGTOP_VERSION_CODE'. Added (AC_DEFINE_UNQUOTED):
1998-08-30  Martin Baulig  <martin@home-of-linux.org>

	* gnome-libgtop-check.m4: Added (AC_SUBST): `LIBGTOP_VERSION_CODE'.
	Added (AC_DEFINE_UNQUOTED): `LIBGTOP_VERSION', `LIBGTOP_VERSION_CODE',
	`LIBGTOP_{MAJOR,MINOR,MICRO,SERVER}_VERSION'.

svn path=/trunk/; revision=353
1998-08-30 12:47:39 +00:00
5f228d1144 It helps to add the new files - Federico
svn path=/trunk/; revision=352
1998-08-30 01:30:00 +00:00
e0d99122ab Centralized marking of month items. We now have a little utility function
Centralized marking of month items.  We now have a little utility
function to colorify the days in a month item that have events
scheduled for them.  This is currently used by the year view and
the go-to dialog.  Fixed buglets here and there.

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

	* mark.[ch]: New files with utility functions to mark calendars
	with their events.

	* mark.c (mark_month_item): New public function to mark a month
	item with events.
	(unmark_month_item): New public function to unmark all the days in
	a month item to their default appearance.

	* year-view.c (year_view_set): Use the new unmark_month_item() and
	mark_month_item() to mark the months with events.

	* goto.c (update): New function that updates the calendar in the
	Go-to dialog by marking the days.

	* timeutil.c (time_year_begin): Modified to take a time_t value.
	(time_year_end): Likewise.
	(time_month_begin): Actually implemented this function, which was
	in the header file but not here.
	(time_days_in_month): New public function that returns the number
	of days in a month.

	* Makefile.am (gnomecal_SOURCES): Added mark.[ch] to the sources.

	* year-view.c (unmark_days): Use unmark_month_item().

	* gncal-full-day.c (gncal_full_day_destroy): Fixed crash when
	destroying the full day view.  The full day's destroy method is
	unusual in that it destroys the list of child widgets itself, as
	it does not have a remove method, so it needs to reset the list to
	NULL.

svn path=/trunk/; revision=351
1998-08-30 01:29:19 +00:00
9b6991077b Make it require libgtop >= 0.26.0. Added (AC_SUBST):
1998-08-29  Martin Baulig  <martin@home-of-linux.org>

	* gnome-libgtop-check.m4: Make it require libgtop >= 0.26.0.
	Added (AC_SUBST): `LIBGTOP_INTERFACE_AGE' and `LIBGTOP_BINARY_AGE'.

svn path=/trunk/; revision=350
1998-08-29 21:25:02 +00:00
5edb2d96b9 Added (AC_SUBST): LIBGTOP_INTERFACE_AGE' and LIBGTOP_BINARY_AGE' for
1998-08-29  Martin Baulig  <martin@home-of-linux.org>

	* gnome-libgtop-check.m4: Added (AC_SUBST):
	`LIBGTOP_INTERFACE_AGE' and `LIBGTOP_BINARY_AGE' for libtool.

svn path=/trunk/; revision=347
1998-08-29 21:18:50 +00:00
21e41f438e Today: fixed calculation of day indexes when weeks start on Monday. The
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
1998-08-28 00:29:59 +00:00
e4a4179f9d Oooo...it actually works now. Forgot a ,
1998-08-27  Christopher Blizzard  <blizzard@appliedtheory.com>

        * gnome-ghttp-check.m4: Oooo...it actually works now.
	  Forgot a ,

svn path=/trunk/; revision=345
1998-08-27 20:04:27 +00:00
a9dae64ea7 Umm...I think this works better. Doesn't break anything anyway.
1998-08-27  Christopher Blizzard  <blizzard@appliedtheory.com>

        * gnome-ghttp-check.m4: Umm...I think this works better.  Doesn't
        break anything anyway.

svn path=/trunk/; revision=344
1998-08-27 19:52:23 +00:00
11500f35b9 Make it work with a brain-dead /bin/sh and a brain-dead /bin/test.
1998-08-26  Martin Baulig  <martin@home-of-linux.org>

	* gnome-libgtop-check.m4 (GNOME_INIT_LIBGTOP): Make it work
	with a brain-dead /bin/sh and a brain-dead /bin/test.

svn path=/trunk/; revision=342
1998-08-26 20:42:02 +00:00
00098c1abe Today: beginning of year view using the canvas. I still have to finish
Today: beginning of year view using the canvas.  I still have to finish fixing
size allocation and event marking.  This is all for today since Bonnie is coming.

1998-08-26  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* year-view.c: Beginning of the new year view.  Sizing and event
	marking needs to be finished.

	* gnome-cal.c: Updated for year-view.
	(gnome_calendar_time_format_changed): Use year_view_time_format_changed().

	* year-view.[ch]: Renamed the gncal-year-view.[ch] files to
	year-view.[ch].

	* Makefile.am (gnomecal_SOURCES): Updated year-view.[ch] in the
	list of source files.

svn path=/trunk/; revision=341
1998-08-26 19:59:46 +00:00
4da4e49249 Use AC_MSG_WARN' if LibGTop cannot be found and the fail' argument is
1998-08-26  Martin Baulig  <martin@home-of-linux.org>

	* gnome-libgtop-check.m4 (GNOME_INIT_LIBGTOP): Use `AC_MSG_WARN'
	if LibGTop cannot be found and the `fail' argument is not given.

svn path=/trunk/; revision=340
1998-08-26 12:43:09 +00:00
5d410b8d43 Set the heading color of the month item.
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
1998-08-26 01:48:53 +00:00
f6f316d744 Fixlet to the about box - Federico
svn path=/trunk/; revision=338
1998-08-25 02:37:43 +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
abdba7c651 Added setreuid', setregid' and `getpagesize'. (AC_TYPE_UID_T): New
1998-08-24  Martin Baulig  <martin@home-of-linux.org>

	* gnome-support.m4 (GCC_NEED_DECLARATIONS): Added `setreuid',
	`setregid' and `getpagesize'.
	(AC_TYPE_UID_T): New check.

svn path=/trunk/; revision=334
1998-08-24 19:30:06 +00:00
eb752301e0 Add gnome-ghttp-check.m4 to the Makefile.
1998-08-24  Christopher Blizzard  <blizzard@appliedtheory.com>

        * Makefile.am (MACROS): Add gnome-ghttp-check.m4 to the Makefile.

svn path=/trunk/; revision=333
1998-08-24 13:58:23 +00:00
480c5e8e62 macro for checking for gnome-http
* macro for checking for gnome-http

svn path=/trunk/; revision=332
1998-08-23 21:05:13 +00:00
8a43c49459 You can give this macro two parameters: the required version number and an
1998-08-23  Martin Baulig  <martin@home-of-linux.org>

	* gnome-libgtop-check.m4 (GNOME_INIT_LIBGTOP): You can give
	this macro two parameters: the required version number and
	an optional `fail' argument to make it fail if LibGTop is
	not found.

svn path=/trunk/; revision=330
1998-08-23 16:26:47 +00:00
ea96ac1a82 Added check for -lnsl' and -lsocket' if `build-guile' cannot be found.
1998-08-22  Martin Baulig  <martin@home-of-linux.org>

	* gnome-guile-checks.m4: Added check for `-lnsl' and `-lsocket'
	if `build-guile' cannot be found.

svn path=/trunk/; revision=329
1998-08-21 23:52:38 +00:00
2e0a88042f Small fixes for calendar saving
svn path=/trunk/; revision=328
1998-08-21 21:44:22 +00:00
bfdb2a9614 New file. Defines the GNOME_COMPILER_WARNINGS macro. Add
* compiler-flags.m4: New file.  Defines the
GNOME_COMPILER_WARNINGS macro.
* autogen.sh (conf_flags): Add `--enable-compile-warnings' to list
of flags passed to `configure'.
* Makefile.am (MACROS): Add compiler-flags.m4.

svn path=/trunk/; revision=327
1998-08-20 21:23:52 +00:00
6158ea365f We now have a nice generic monthly calendar item for the canvas. We
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
1998-08-19 00:31:04 +00:00
b7c9e891f6 make it require libgtop >= 0.25.0. Added (AC_SUBST):
1998-08-18  Martin Baulig  <martin@home-of-linux.org>

	* gnome-libgtop-check.m4: make it require libgtop >= 0.25.0.
	Added (AC_SUBST): `LIBGTOP_MICRO_VERSION' and `LIBGTOP_EXTRA_LIBS'.

svn path=/trunk/; revision=322
1998-08-18 12:15:39 +00:00
4776c8413a Fixes for 0.28 - Federico
svn path=/trunk/; revision=321
1998-08-17 18:28:24 +00:00
c01b9850eb Completely rewrote this file. It uses now the `libgtop-config' script and
1998-08-17  Martin Baulig  <martin@home-of-linux.org>

	* gnome-libgtop-check.m4: Completely rewrote this file. It
	uses now the `libgtop-config' script and also checks for
	correct libgtop version.

svn path=/trunk/; revision=320
1998-08-16 23:23:41 +00:00
8783a09884 `make distcheck' cleanups - Hey, it really works, guys !
svn path=/trunk/; revision=319
1998-08-16 20:14:23 +00:00
20cd42a84f It helps to add the files first - Federico
svn path=/trunk/; revision=318
1998-08-14 00:33:53 +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
a6266876c6 0.27 fixes
svn path=/trunk/; revision=315
1998-08-13 23:50:30 +00:00
f53b446689 0.27 fixes
svn path=/trunk/; revision=314
1998-08-13 23:01:32 +00:00
307e206fec Little compiler warning fix - Federico
svn path=/trunk/; revision=313
1998-08-13 15:55:56 +00:00
6466c2f6d5 More work on the month view - Federico
svn path=/trunk/; revision=312
1998-08-13 01:13:11 +00:00
d4e5256718 More work on the month view item - Federico
svn path=/trunk/; revision=311
1998-08-12 03:55:15 +00:00
4131f00f34 Made title i18n friendly. This was bug #215.
* 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
1998-08-11 22:05:55 +00:00
340b547a81 Fix small cut&paste bug - Federico
svn path=/trunk/; revision=309
1998-08-11 04:33:06 +00:00
f0d0f623bb Oops - Federico
svn path=/trunk/; revision=308
1998-08-11 04:27:22 +00:00
1596825b7d Start of the month view widget. This will use the generic month item and
1998-08-10  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* month-view.[ch]: Start of the month view widget.  This will use
	the generic month item and extend it to have the semantics desired
	for the gnomecal month view.

	* gnome-month-item.[ch]: New generic canvas item for the month
	view and the "small calendars".  This is intended to be a
	high-level display engine for monthly calendars.  This is a work
	in progress.

	* gnome-cal.h (GnomeCalendar): Added a month_view field.

	* gnome-cal.c (setup_widgets): Create the month view and insert it
	into the notebook.

	* Makefile.am: Added month-view.[ch] and gnome-month-item.[ch] to
	the sources.

svn path=/trunk/; revision=307
1998-08-11 04:22:05 +00:00
f91ebfeae9 Added `freebsd' directory.
1998-08-06  Martin Baulig  <martin@home-of-linux.org>

	* gnome-libgtop-sysdeps.m4: Added `freebsd' directory.

svn path=/trunk/; revision=304
1998-08-06 21:52:01 +00:00
56d9c43fd9 Do not abort on obj-c not being there
svn path=/trunk/; revision=301
1998-08-05 23:21:28 +00:00
6c3c0efea6 Define USE_DEVGTK unconditionally to `true'.
* gnome-x-checks.m4: Define USE_DEVGTK unconditionally to `true'.

Before people start screaming.  USE_DEVGTK (or its lack of) is used to
disable compiling some stuff.

svn path=/trunk/; revision=299
1998-08-04 23:56:12 +00:00
473fe5d0fc make it require GTK >= 1.1.1 dnl'd the dev_gtk since they will have to
1998-08-04  Stuart Parmenter  <pavlov@innerx.net>

        * gnome-x-checks.m4: (AM_PATH_GTK) make it require GTK >= 1.1.1
        dnl'd the dev_gtk since they will have to anyways.

svn path=/trunk/; revision=298
1998-08-04 23:44:57 +00:00
8aac6667d9 gnome.m4: (GNOME_INIT_HOOK): Call $1 also, if `gnome-config' is found and used
svn path=/trunk/; revision=297
1998-08-04 13:44:46 +00:00
e095ce5ab8 Use an array of const strings to keep gcc happy.
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
1998-08-04 01:55:18 +00:00
d19286255d Use the `gnome-config' program if it exists.
* gnome.m4 (GNOME_CONFIG): Use the `gnome-config' program if it
exists.

With this, `make distcheck' on `gnome-core' inches forward slightly.

svn path=/trunk/; revision=295
1998-08-02 22:23:15 +00:00
32fec7af94 Remove `macros.dep'.
* Makefile.am (EXTRA_DIST): Remove `macros.dep'.

Because it doesn't work for srcdir != builddir.  I see no great loss
in not distributing this file -- it is used only in maintainer-mode,
and it is easily generated.  Anyone who's not using GNU make for
maintainer-mode is already not supported, so this doesn't make a
difference, I think.

svn path=/trunk/; revision=294
1998-08-02 01:50:52 +00:00
065d930830 New macro. Checks for u_int64_t' and int64_t'.
1998-07-30  Martin Baulig  <martin@home-of-linux.org>

	* gnome-libgtop-check.m4 (GNOME_LIBGTOP_TYPES): New macro.
	Checks for `u_int64_t' and `int64_t'.

svn path=/trunk/; revision=293
1998-07-30 17:51:56 +00:00