Commit Graph

8 Commits

Author SHA1 Message Date
9717e6f9ef Implemented. (gnome_calendar_add_object): Removed function, since it was
2000-06-02  Federico Mena Quintero  <federico@helixcode.com>

	* gui/gnome-cal.c (save_ical_object_cb): Implemented.
	(gnome_calendar_add_object): Removed function, since it was
	identical to gnome_calendar_update_object().  Modified the rest
	of the code to use only the latter.
	(gnome_calendar_remove_object): Be more paranoid about the UID.
	(gnome_calendar_update_object): Ditto.  Also, renamed this
	function from gnome_calendar_object_changed(), for consistency
	with the lower-level CalClient interface.

	* gui/event-editor.c (event_editor_class_init): New
	"save_ical_object" signal to ask that our parent store the
	calendar object to the backend.
	(save_ical_object): New function to save the calendar object,
	actually if just emits the signal.
	(file_save_cb): Implemented.
	(dialog_to_ical_object): We want priv->
	alarm_program_run_program_entry (i.e. the entry inside the
	GnomeFileEntry), not the file entry itself.
	(dialog_to_ical_object): Only insert the recurrence ending date if
	the event is recurrent!

svn path=/trunk/; revision=3380
2000-06-02 05:48:02 +00:00
c91b4c129a Handler for the "editor_closed" signal of the event editor; we just
2000-06-01  Federico Mena Quintero  <federico@helixcode.com>

	* gui/gnome-cal.c (editor_closed_cb): Handler for the
	"editor_closed" signal of the event editor; we just destroy it
	then.

	* gui/event-editor.c (app_delete_event_cb): Callback used when the
	dialog is closed.  Release the iCalObject here instead of the
	event editor's destroy handler, and emit the new "editor_closed"
	signal.

svn path=/trunk/; revision=3376
2000-06-02 04:40:44 +00:00
828df57f1f Change of plans. The toplevel GnomeApp is now generated with Glade instead
2000-06-01  Federico Mena Quintero  <federico@helixcode.com>

	* gui/event-editor-dialog.glade: Change of plans.  The toplevel
	GnomeApp is now generated with Glade instead of being created in
	the program code.  Otherwise we can't migrate the accelerators to
	the new toplevel and they won't work.

	* gui/event-editor.[ch]: EventEditor now derives from GtkObject.
	This lets us use the GnomeApp created by libglade and still have
	signals and stuff.

	* gui/event-editor.c (create_menu): Tell the UI handler that the
	menubar is the GnomeApp's existing one, not to create a new one.
	(create_toolbar): Tell the UI handler to use the GnomeApp's
	existing toolbar.
	(event_editor_focus): New function to raise/focus an event editor.

	* gui/gnome-cal.c (gnome_calendar_edit_object): Use
	event_editor_focus().

svn path=/trunk/; revision=3348
2000-06-01 23:55:32 +00:00
19150e7c7b Added a hash table to map calendar objects to their respective event
2000-05-31  Federico Mena Quintero  <federico@helixcode.com>

	* gui/gnome-cal.h (GnomeCalendar): Added a hash table to map
	calendar objects to their respective event editors.

	* gui/gnome-cal.c (gnome_calendar_init): Create the
	object_editor_hash.
	(gnome_calendar_destroy): Free the object_editor_hash.
	(gnome_calendar_edit_object): New function to centralize the
	launching of event editors; if one already exists for a particular
	calendar object, we just raise its window.
	(edit): Use gnome_calendar_edit_object().

	* gui/calendar-commands.c (display_objedit): Use
	gnome_calendar_edit_object().
	(display_objedit_today): Likewise.

	* gui/e-day-view.c (e_day_view_on_new_appointment): Likewise.
	(e_day_view_on_edit_appointment): Likewise.

	* gui/e-week-view.c (e_week_view_on_new_appointment): Likewise.
	(e_week_view_on_edit_appointment): Likewise.

	* gui/event-editor.c (event_editor_new): Do not take in an
	iCalObject; rather provide an event_editor_set_ical_object()
	function.  We need this because a single editor may be switched
	between different calendar objects.  Also, do not show the event
	editor; leave it up to the client code.
	(event_editor_construct): Likewise.
	(clear_widgets): New function to clear the widgets to default
	values.
	(fill_widgets): New function to fill in the widgets from the
	iCalObject.  We don't do this in init_widgets() anymore.
	(free_exception_clist_data): New function to free the exceptions
	clist data.  We were leaking the row data.
	(init_widgets): Hook to the destroy signal of the exceptions
	clist.
	(event_editor_set_ical_object): New function.  Now it also makes a
	copy of the calendar object for the event editor; clients do not
	need to copy it anymore.
	(event_editor_destroy): Unref the UI handler as well.
	(event_editor_class_init): New "ical_object_released" signal to
	notify the parent that we are no longer editing the calendar
	object.
	(make_title_from_ico): Handle NULL objects.

	* gui/event-editor.h (EventEditor): Removed fields that are no
	longer used.

svn path=/trunk/; revision=3317
2000-06-01 00:48:01 +00:00
336efb38c6 Flush - Federico
svn path=/trunk/; revision=3280
2000-05-30 14:47:38 +00:00
144db69758 Put the main notebook directly under a simple GtkWindow. We are going to
2000-05-25  Federico Mena Quintero  <federico@helixcode.com>

	* gui/event-editor-dialog.glade: Put the main notebook directly
	under a simple GtkWindow.  We are going to pull out the notebook
	and slap it into our custom-built GnomeApp, anwyays.

	* gui/event-editor.c: Made the EventEditor derive from GnomeApp.
	Added a BonoboUIHandler for its menu and toolbar.
	(make_title_from_ico): Create a nice title for the window.
	(get_widgets): Fetch the Glade widgets here instead of all over
	the place.
	(event_editor_new): Temporary hack to show the dialog here, just
	so that I can test it.

	* gui/Makefile.am (EXTRA_DIST): Added the Glade messages file.

svn path=/trunk/; revision=3214
2000-05-26 14:22:52 +00:00
da0a13df5e hooked up more widget signals to callbacks to the gladified dialog acts
* gui/event-editor.c: hooked up more widget signals to callbacks
	to the gladified dialog acts more like the original one.

svn path=/trunk/; revision=3106
2000-05-17 17:27:12 +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