From 6684b4627d4767f6ea5d2969d70ae6f2cf863a79 Mon Sep 17 00:00:00 2001 From: Damon Chaplin Date: Wed, 15 Aug 2001 01:13:37 +0000 Subject: added support for the Contacts field. Note that I'm not sure what we 2001-08-14 Damon Chaplin * gui/dialogs/task-page.c: * gui/dialogs/event-page.c: added support for the Contacts field. Note that I'm not sure what we should put in the iCalendar CONTACT properties. Currently we put "name ", but it isn't recognized as a contact when we reopen the dialog, so we may need more info here. Also we currently use a simple parser to parse the above format, and we should maybe use some camel function. * gui/dialogs/task-page.glade: * gui/dialogs/event-page.glade: replaced the GtkEntry fields for the Contacts with a GtkEventBox which we put the BonoboControl in at runtime. * gui/dialogs/meeting-page.c (invite_entry_changed): added FIXMEs since it doesn't seem to be freeing the EDestination stuff. JP? * gui/dialogs/comp-editor-util.c: added bunch of utility functions to handle the Contacts field in the main Event and Task pages. * gui/gnome-cal.c: added visible_start and visible_end fields, so we only emit the 'dates-shown-changed' signal when really necessary. Currently changing the folder title bar label results in a complete redraw of the Evolution window (silly GtkLabel queueing a resize), so we want to avoid that as much as possible. (gnome_calendar_new_appointment_for): only move the event's end time to the end of the day if it is not already 00:00:00. * gui/e-week-view-event-item.c: * gui/e-week-view.c: * gui/e-day-view.c: added support for double-clicking on an event to open it, and for double-clicking on the background to create a new event. There is still a minor problem to sort out, but it basically works. * cal-util/cal-component.c: added support for CONTACT properties, mainly by copying the code for COMMENT properties which are exactly the same type. * gui/e-day-view.c (e_day_view_realize): use the same color for the top canvas background as the shortcut bar, to make it look a little nicer (I think). Although we still have the theme problem with hard-coded colors. svn path=/trunk/; revision=12039 --- calendar/gui/dialogs/comp-editor-util.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'calendar/gui/dialogs/comp-editor-util.h') diff --git a/calendar/gui/dialogs/comp-editor-util.h b/calendar/gui/dialogs/comp-editor-util.h index 4e8e344731..45c45a72a3 100644 --- a/calendar/gui/dialogs/comp-editor-util.h +++ b/calendar/gui/dialogs/comp-editor-util.h @@ -23,6 +23,8 @@ #define _COMP_EDITOR_UTIL_H_ #include +#include +#include "Evolution-Addressbook-SelectNames.h" #include "comp-editor-page.h" void comp_editor_dates (CompEditorPageDates *date, CalComponent *comp); @@ -32,4 +34,18 @@ GtkWidget *comp_editor_new_date_edit (gboolean show_date, gboolean show_time); struct tm comp_editor_get_current_time (GtkObject *object, gpointer data); + +GNOME_Evolution_Addressbook_SelectNames comp_editor_create_contacts_component (void); +GtkWidget * comp_editor_create_contacts_control (GNOME_Evolution_Addressbook_SelectNames corba_select_names); +Bonobo_EventSource_ListenerId comp_editor_connect_contacts_changed (GtkWidget *contacts_entry, + BonoboListenerCallbackFn changed_cb, + gpointer changed_cb_data); +void comp_editor_show_contacts_dialog (GNOME_Evolution_Addressbook_SelectNames corba_select_names); + +void comp_editor_contacts_to_widget (GtkWidget *contacts_entry, + CalComponent *comp); +void comp_editor_contacts_to_component (GtkWidget *contacts_entry, + CalComponent *comp); + + #endif -- cgit v1.2.3