2001-12-17 JP Rosevear <jpr@ximian.com>
* gui/e-itip-control.c (send_item): use get_real_item
(get_refresh_options): uncomment out
(get_real_item): obtain the real object which has the uid of the
item received
(show_current_todo): use get_refresh_options for refresh method
and provide the description and summary from the real component
since its not in the reply
(show_current_event): ditto
(send_item): use get_real_item
2001-12-17 JP Rosevear <jpr@ximian.com>
* gui/itip-utils.c (comp_limit_attendees): can't remove properties
in an iteration loop, so remove them outside the loop
(comp_minimal): don't set a recurid if there isn't one, add the x
properties to the clone
(comp_compliant): unref the clone for DECLINECOUNTER
* gui/e-itip-control.c (get_refresh_options): make function
available again
(show_current_event): use it here
(ok_clicked_cb): can't remove properties in an iteration loop, so
remove them outside the loop
* cal-util/cal-component.c (free_icalcomponent): properly free the
attendee list
(cal_component_rescan): don't destroy the alarm hash
svn path=/trunk/; revision=15136
2001-12-13 Damon Chaplin <damon@ximian.com>
* zones.h: new file to contain all timezone names for translation.
We won't be using the translations in 1.0.1, but it gives translators
time before we do use them in 1.0.2.
* Makefile.am: added zones.h to EXTRA_DIST.
svn path=/trunk/; revision=15026
2001-12-12 JP Rosevear <jpr@ximian.com>
* gui/e-day-view.c (e_day_view_on_top_canvas_button_release):
ungrab the pointer before calling
e_day_view_finish_long_event_resize
(e_day_view_on_main_canvas_button_release): ditto
(e_day_view_finish_long_event_resize): ask if the meeting should
be sent
(e_day_view_finish_resize): ditto
(e_day_view_on_editing_stopped): ditto
(e_day_view_on_top_canvas_drag_data_received): ditto
(e_day_view_on_main_canvas_drag_data_received): ditto
svn path=/trunk/; revision=15008
2001-12-11 JP Rosevear <jpr@ximian.com>
* gui/e-meeting-model.c (process_free_busy_comp): properly convert
the dtstart and dtend times if they are UTC
(cursor_cb): if we don't have anybody to get f/b info for, process
the callbacks immediately
(e_meeting_model_refresh_busy_periods): take start/end times,
calculate the timet values with object timezone
(e_meeting_model_etable_model_to_view_row): proper cast
(e_meeting_model_etable_view_to_model_row): ditto
(async_open): bail out if we couldn't open properly
* gui/e-meeting-time-sel.c
(e_meeting_time_selector_on_update_free_busy): use defines for
determining the number of days before and after of free busy to
request
(e_meeting_time_selector_update_dates_shown): use defines for the
number of days shown
* gui/e-meeting-model.h: update proto
svn path=/trunk/; revision=15000
2001-12-10 Damon Chaplin <damon@ximian.com>
* gui/control-factory.c (control_factory_new_control): removed code
that connects to GnomeCalendar's "dates_shown_changed" signal.
* gui/calendar-commands.c (gcal_calendar_dates_change_cb):
(calendar_control_activate): moved it here, so it gets reconnected
whenever the control is activated. Fixes bug #15798.
svn path=/trunk/; revision=14960
2001-12-08 JP Rosevear <jpr@ximian.com>
* conduits/calendar/calendar-conduit.c (local_record_from_comp):
if we have an alarm that can be represented on the pilot, set the
appointment fields appropriately, if the duration has values for
minutes and/or hours and/or days, use the lowest common
denominator
(comp_from_remote_record): if the appointment on the pilot has an
alarm, find the first alarm an item currently had that is relative
to the start and with a negative duration and update it (or create
a new one if no valid ones exist)
* cal-util/cal-component.c (cal_component_get_alarm_uids): build
list in the order they appear in the component so we get
consisting order for the gui and for the pilot
svn path=/trunk/; revision=14943
2001-11-09 Federico Mena Quintero <federico@ximian.com>
(committed by Damon)
Fix bug #14699.
* pcs/query.c (QueryState): Added a state QUERY_WAIT_FOR_BACKEND
to indicate that the query is not populated as we are waiting for
the backend to be opened.
(query_init): Start in the QUERY_WAIT_FOR_BACKEND state.
(query_destroy): Only disconnect from the backend if we are in a
state that implies that we are connected to its signals.
(query_construct): If the backend is already loaded, immediately
set the state to QUERY_START_PENDING.
(backend_opened_cb): Disconnect from the backend's "opened"
signal. Set the state to QUERY_START_PENDING.
(match_component): We can now only match components if the query
is in progress or if it is done. Assert to that effect, and do
not ensure_sexp().
(match_component): Do not check for a nonexistent component using
g_return_if_fail(). Also, there is no need to ref/unref the
component.
(backend_obj_updated_cb): Assert to the effect of our state.
(backend_obj_removed_cb): Likewise.
(parse_sexp): Renamed from ensure_sexp(). Assert that the query
has not started. Do not disconnect from the backend's signals
here, since we have no connections.
(start_query_cb): Set the state to QUERY_IN_PROGRESS here instead
of in populate_query().
svn path=/trunk/; revision=14941
2001-12-07 Rodrigo Moya <rodrigo@ximian.com>
* gui/calendar-config.c (calendar_config_get_default_uri):
(calendar_config_get_default_tasks_uri): if the key in the config
database does not exist, just return the local URIs, but never
return NULL
svn path=/trunk/; revision=14930
2001-12-06 Jon Trowbridge <trow@ximian.com>
* gui/dialogs/event-editor.c (event_editor_destroy): Explicitly
destroy the EMeetingModel. This is a hack to work around problems
with the reference counting; we are still leaking the
EMeetingModels.
* gui/e-meeting-time-sel.c (e_meeting_time_selector_construct):
Ref our EMeetingModel.
(e_meeting_time_selector_destroy): Unref the model.
* gui/e-meeting-model.c (destroy): Properly destroy
corba_select_names with a call to bonobo_object_release_unref.
(Fixes 14002)
svn path=/trunk/; revision=14919
2001-12-05 Rodrigo Moya <rodrigo@ximian.com>
* gui/dialogs/event-page.glade: added entry for the LOCATION field
* gui/dialogs/event-page.c: added support for the new LOCATION entry
added in the Event editor.
svn path=/trunk/; revision=14901
2001-12-03 Damon Chaplin <damon@ximian.com>
* gui/e-meeting-model.c:
* gui/calendar-model.c: make sure we call e_table_model_pre_change()
before changing the model.
* gui/calendar-config.c (calendar_config_configure_e_calendar_table):
removed call to e_table_model_changed(). calendar_model_refresh()
results in that anyway.
svn path=/trunk/; revision=14854
2001-12-03 Damon Chaplin <damon@ximian.com>
* gui/e-calendar-table.etspec: disabled 'Alarms', 'End Date' and
'Show Time As' fields, as these are not useful for tasks. We may want
to reenable them later if we add a table view of calendar events.
svn path=/trunk/; revision=14853
2001-12-02 Rodrigo Moya <rodrigo@ximian.com>
* gui/calendar-offline-handler.c (backend_cal_opened): connect to
"cal_set_mode" signal before calling cal_client_set_mode. Also,
s/cal_mode_set/cal_set_mode
(backend_go_offline): connect to "cal_opened" signal before calling
cal_client_open_calendar
svn path=/trunk/; revision=14848
2001-11-30 Damon Chaplin <damon@ximian.com>
* gui/e-itip-control.c (remove_item): only show the dialog if we
created it. Hopefully fixes bug #15774.
Also ifdef'ed out a lot of code that isn't currently used, including
code to use a label which is never created. The unused code was there
to support handling multiple iTIP objects in a message, but was never
updated when we switched to use HTML for the control. Fixes bug #16232.
svn path=/trunk/; revision=14832
2001-11-28 Federico Mena Quintero <federico@ximian.com>
* gui/gnome-cal.c (gnome_calendar_new_task): Set the category of
the new task to that of the search bar. Fixes bug #15533.
svn path=/trunk/; revision=14821
2001-11-14 Damon Chaplin <damon@ximian.com>
* gui/print.c: Substituted gnome_font_get_width_string() with
gnome_font_get_width_utf8() and gnome_font_get_width_string_n()
with gnome_font_get_width_utf8_sized(). Fixes calendar part of #15379.
svn path=/trunk/; revision=14722
2001-11-14 Federico Mena Quintero <federico@ximian.com>
* gui/calendar-model.c (date_value_to_string): Convert the buffer
to UTF8.
(calendar_model_value_to_string): Do not convert the string fields
to UTF8 again; they are already in UTF8. Fixes the UTF8-related
bits of bug #15304.
svn path=/trunk/; revision=14710
2001-11-14 Damon Chaplin <damon@ximian.com>
* gui/calendar-model.c:
* cal-util/cal-component.h: #ifdef'ed out the LOCATION field for now,
since it wasn't supported everywhere, or in the .etspec file.
svn path=/trunk/; revision=14709
2001-11-14 Damon Chaplin <damon@ximian.com>
* gui/e-calendar-table.c: don't abort when e_table_selected_count()
returns odd values. There seems to be a bug in ETable. This is to
avoid bug #13843.
svn path=/trunk/; revision=14705
2001-11-13 Federico Mena Quintero <federico@ximian.com>
(committed to CVS by Damon)
Fixes bug #15137.
* gui/e-day-view.c (e_day_view_on_delete_appointment): Do not try
to operate on the event if it gets deleted while stopping the
edition.
(e_day_view_on_event_double_click): Likewise.
(e_day_view_on_long_event_button_press): Likewise.
(e_day_view_on_event_button_press): Likewise.
(e_day_view_on_long_event_click): Likewise.
(e_day_view_on_event_click): Likewise.
* gui/e-week-view.c (e_week_view_on_text_item_event): Likewise.
svn path=/trunk/; revision=14701
2001-11-13 Rodrigo Moya <rodrigo@ximian.com>
* gui/e-week-view.c (selection_received): only change the day,
month and year for the start date, for not screwing up the start
time, which was being set to midnight always (Fixes Ximian #5287)
Also, deal correctly with VCALENDAR components
* gui/e-day-view.c (selection_received): dela correctly with
VCALENDAR components being pasted
svn path=/trunk/; revision=14684
2001-11-11 Federico Mena Quintero <federico@ximian.com>
* gui/alarm-notify/save.c (get_calendars_to_load): The last
argument to the bonobo_config_get_XXX_with_default() is a gboolean
*, not a CORBA_Environment *. Fixes bug #14655.
svn path=/trunk/; revision=14671
001-11-11 JP Rosevear <jpr@ximian.com>
* gui/e-meeting-model.h: new protos
* gui/e-meeting-model.c (e_meeting_model_get_zone): accessor
(e_meeting_model_set_zone): ditto
(init): init to the calendar default zone
(process_free_busy_comp): take the zone to convert to as a param
(e_meeting_model_refresh_busy_periods): redraw properly
* gui/dialogs/schedule-page.c (update_time): set the zone of the
model
svn path=/trunk/; revision=14669
2001-11-09 Damon Chaplin <damon@ximian.com>
* gui/e-week-view.c (e_week_view_key_press): don't subtract a day
from DTEND. For DATE values we don't include the entire day now.
Fixes bug #14842.
svn path=/trunk/; revision=14651
2001-11-09 Damon Chaplin <damon@ximian.com>
* gui/e-week-view-layout.c (e_week_view_layout_events): fix buffer
overflow. Fixes bug #10285 (the printing of lines & dates in the
printout of the month view).
svn path=/trunk/; revision=14650
* gui/dialogs/meeting-page.c
(meeting_page_fill_widgets): Convert strings to GTK+ encoding.
(meeting_page_destroy): Free allocated strings before freeing the list
itself.
svn path=/trunk/; revision=14647
2001-11-08 JP Rosevear <jpr@ximian.com>
* gui/e-meeting-time-sel.c
(e_meeting_time_selector_timeout_handler): don't let an empty
event occur for all days when auto scrolling
svn path=/trunk/; revision=14640
2001-11-08 Rodrigo Moya <rodrigo@ximian.com>
* pcs/cal-backend-file.c
(cal_backend_file_compute_changes_foreach_key): don't leak the
string returned by cal_component_get_as_string nor the temporary
CalComponent we create
svn path=/trunk/; revision=14629
2001-11-08 JP Rosevear <jpr@ximian.com>
* gui/e-itip-control.c (ok_clicked_cb): don't add the item, remove
it if declining (in case it was added before)
(remove_item): Since we can't discern between an item not found
and another error, always say the removal is complete
svn path=/trunk/; revision=14625
2001-11-07 JP Rosevear <jpr@ximian.com>
* gui/e-meeting-time-sel.c
(e_meeting_time_selector_on_start_time_changed): emit changed
signal
(e_meeting_time_selector_on_end_time_changed): emit changed
signal, if end time is now before start time and all day event,
make sure a whole day is still selected
(e_meeting_time_selector_drag_meeting_time): calculate the first
and last_time's in whole days for all day events
(e_meeting_time_selector_timeout_handler): calculate the drag time
to be whole days for all day events and scroll the canvas even if
we don't update the time so the user can see where they're headed
svn path=/trunk/; revision=14617
2001-11-06 JP Rosevear <jpr@ximian.com>
* gui/dialogs/event-editor.c (event_editor_edit_comp): make sure
to remove all attendees from the model when we edit a new comp,
append the pages if they are needed and we weren't showing them
before
* gui/dialogs/task-editor.c (task_editor_edit_comp): same as above
* gui/dialogs/comp-editor.c (comp_editor_remove_page): check for a
return value indicating the page was not found and return if so
svn path=/trunk/; revision=14615
<ettore> ok so
<ettore> should I build this tarball again?
* ettore doesn't think so
<ettore> I have checked it already earlier today
svn path=/trunk/; revision=14607
2001-11-05 JP Rosevear <jpr@ximian.com>
* gui/e-meeting-time-sel.c (e_meeting_time_selector_class_init):
add a changed signal
(e_meeting_time_selector_construct): emit changed signal
(e_meeting_time_selector_set_meeting_time): ditto
(e_meeting_time_selector_set_all_day): set the all day setting
(e_meeting_time_selector_autopick): emit changed signal
(e_meeting_time_selector_find_nearest_interval): find proper
interval when in all day mode
(e_meeting_time_selector_find_nearest_interval_backward): ditto
(e_meeting_time_selector_drag_meeting_time): for all day events,
move the time when past the 12 hour mark, and and always make sure
1 full day is selected, emit changed signal when appropriate
(e_meeting_time_selector_update_start_date_edit): set date and
time of day together
(e_meeting_time_selector_update_end_date_edit): ditto, and adjust
display time if all day event
* gui/e-meeting-time-sel-item.c
(e_meeting_time_selector_item_draw): remove unused variable
(e_meeting_time_selector_item_button_press): for all day mode,
make the interval a whole day
* gui/dialogs/schedule-page.c (update_time): set the meeting time
selector setting instead of manual mucking with the e-date-edit
widgets
(init_widgets): listen to the changed signal of the meeting time
selector instead of propagating multiple events as it updates
* gui/dialogs/event-page.c (update_time): block time zone change
signals
svn path=/trunk/; revision=14601
2001-11-04 Damon Chaplin <damon@ximian.com>
* gui/comp-editor-factory.c (get_default_component): use TZID from the
builtin timezone, instead of using the location name.
svn path=/trunk/; revision=14584
2001-11-02 Federico Mena Quintero <federico@ximian.com>
* cal-util/cal-util.c (compute_alarm_range): Short-circuit the
calculation of the repeat time if there are zero repetitions.
(compute_alarm_range): I'm a moron. De-reference alarm_start when
subtracting stuff from it! Fixes bug #14209.
svn path=/trunk/; revision=14572
2001-10-31 Federico Mena Quintero <federico@ximian.com>
* gui/gnome-cal.c (dn_query_obj_updated_cb): If a query is not in
progress, just retag the whole thing. An event may change dates
and tag_calendar_by_comp() would not know how to untag the old
dates. Fixes bug #10220.
* pcs/query.c (start_query_cb): Connect to the backend's
"obj_updated" and "obj_removed" signals here instead of in
query_construct(). If a query is started while another one is
notifying of an update, these signal connections would get appened
to the running signal (the one that triggered the notification
about an update) and the new signal handlers would also get
called. We are really not interested in updates before we
populate the query, because we'll catch the changes anyways.
svn path=/trunk/; revision=14533