2003-04-15 Hans Petter Jansson <hpj@ximian.com>
* gui/calendar-component.c (owner_set_cb): If we already have an
evolution_dir, free the old one before setting it anew.
* gui/e-day-view-time-item.c (e_day_view_time_item_draw): Unref the
metrics.
* gui/e-day-view.c (e_day_view_style_set): Unref the metrics.
(e_day_view_recalc_cell_sizes): We don't need font metrics here.
(e_day_view_reshape_long_event): Ditto.
* gui/e-meeting-model.c (init): Don't dup the string passed to
e_table_without_hide().
* gui/e-meeting-time-sel.c (e_meeting_time_selector_style_set):
Unref the metrics.
(e_meeting_time_selector_recalc_date_form): Doesn't need metrics.
* gui/e-week-view-main-item.c (e_week_view_main_item_draw_day):
Unref the metrics.
* gui/e-week-view.c (e_week_view_style_set): Unref metrics.
(e_week_view_recalc_cell_sizes): Ditto.
(e_week_view_reshape_event_span): Move Pango stuff to where it
can't be leaked due to an early return. Unref metrics.
* gui/weekday-picker.c (weekday_picker_style_set): Unref metrics.
* gui/dialogs/meeting-page.c (meeting_page_finalize): Free default
address.
svn path=/trunk/; revision=20857
* gui/dialogs/task-page.glade: Remove the "Contacts" button and
entry from here too. Supposed to have been part of #35926
* gui/dialogs/task-page.c: Remove all code pertaining to the
contacts button
* gui/dialogs/comp-editor-util.c:
* gui/dialogs/comp-editor-util.h: Likewise
* gui/dialogs/Makefile.am (IDL_GENERATED, etc): Remove
select-names stuff, which is no longe rused.
svn path=/trunk/; revision=20816
* gui/dialogs/alarm-options.c: Remove button_ok, button_cancel,
canceled members from struct Dialog.
(get_widgets): Do not initialize.
(close_dialog): Destroy the toplevel.
(toplevel_delete_event_cb): Removed.
(button_cancel_clicked_cb): Removed.
(button_ok_clicked_cb): Removed.
(close_dialog): Removed.
(alarm_options_dialog_run): Use gtk_dialog_run.
(init_widgets): Do not init ->canceled, do not connect OK/Cancel
buttons.
(alarm_to_dialog): No need to make the file entry modal from here
anymore.
* gui/dialogs/alarm-options.glade: Turned into a GtkDialog. Set
the "modal" property to True for the file entry.
svn path=/trunk/; revision=20749
2003-04-07 JP Rosevear <jpr@ximian.com>
* gui/dialogs/event-page.glade: create button properly
* gui/itip-utils.c (comp_server_send): for errors other than busy,
we want to email the results
* pcs/cal-backend.c (cal_backend_ref_categories): insert the new
category in the category list as well
(idle_notify_categories_changed): reset idle id
svn path=/trunk/; revision=20726
2003-03-28 Hans Petter Jansson <hpj@ximian.com>
Fixes#39954
* gui/dialogs/recurrence-page.c (make_recurrence_special):
Destroy would-be children of the container before the container.
svn path=/trunk/; revision=20559
2003-03-28 JP Rosevear <jpr@ximian.com>
* gui/dialogs/meeting-page.c (meeting_page_init): init new members
(get_current_account): get a matching account for the currently
selected user in the combo
(meeting_page_finalize): unref the meeting attendee if there is
one
(meeting_page_fill_widgets): don't set the combo list here
(clear_widgets): set the default organizer here and if we don't
have an organizer, add the default organizer as an attendee
(meeting_page_fill_component): use get_current_account
(org_changed_cb): if this is a new meeting and the organizer
changes, change the attendee
(change_clicked_cb): no need to set the default here
(init_widgets): reflect changed callback name
(meeting_page_construct): set the combo strings here
(popup_delete_cb): remove the organizer attendee if the user
explicitly deletes it
* gui/e-meeting-model.c (attendee_changed_cb): set row properly
* gui/itip-utils.c (comp_to_list): skip the user themselves if
cancelling or requesting
svn path=/trunk/; revision=20557
2003-03-26 Jack Jia <jack.jia@sun.com>
* calendar/gui/dialogs/alarm-options.c
(malarm_widgets_to_alarm): add a parameter(TC_CORBA_string) to
the bonobo_widget_get_property.
svn path=/trunk/; revision=20515
* gui/itip-utils.c: Update for e_notice move
* gui/tasks-control.c (confirm_expunge): Move the code that used
to be e_gnome_dialog_set_parent here, since it was marked
deprecated and this was the only place using it.
* gui/dialogs/comp-editor.c: Update for e_notice move
(page_changed_cb, page_summary_changed_cb, page_dates_changed_cb):
Pass a parent_window to e_notice.
* gui/dialogs/meeting-page.c: Update for e_notice move.
(meeting_page_fill_component, meeting_page_fill_component,
popup_delegate_cb): Pass a parent_window to e_notice
svn path=/trunk/; revision=20503
2003-03-20 Rodrigo Moya <rodrigo@ximian.com>
* gui/dialogs/cancel-comp.c (cancel_component_dialog): use a
GtkMessageDialog and deal correctly with the dialog's reponses.
svn path=/trunk/; revision=20434
2003-03-18 Rodrigo Moya <rodrigo@ximian.com>
* gui/dialogs/send-comp.c (send_component_dialog): use GtkMessageDialog
instead of gnome_question_dialog, and deal correctly with the dialog's
response.
svn path=/trunk/; revision=20342
2003-03-17 Hans Petter Jansson <hpj@ximian.com>
Fixes#34095
* gui/e-meeting-model.c (append_row): Don't leak meeting attendees;
unref the attendee after it's assigned to model.
* gui/dialogs/meeting-page.c (meeting_page_destroy): Free the actual
array of deleted attendees.
* gui/dialogs/event-editor.c (event_editor_destroy): Free the private
structure.
* gui/itip-utils.c (comp_description): Rework free/busy information
composer so we can free date/time information after use. Then free it.
(itip_send_comp): Free the allocated CORBA buffer for attachment data.
* gui/dialogs/comp-editor-util.c (comp_editor_contacts_to_component):
Free the destination contacts string once we're done with it.
* gui/e-calendar-table.c (invisible_destroyed): Unref the invisible.
* gui/e-day-view.c (invisible_destroyed): Ditto.
* gui/e-week-view.c (invisible_destroyed): Ditto.
svn path=/trunk/; revision=20329
2003-03-17 Hans Petter Jansson <hpj@ximian.com>
Fixes#39757
* gui/dialogs/alarm-page.c (sensitize_buttons): Somehow this code
reverted to thinking it was dealing with a GtkCList, when in reality
it's a GtkTreeView. Fix that, so the buttons are sensitized correctly.
svn path=/trunk/; revision=20328
2003-03-12 Rodrigo Moya <rodrigo@ximian.com>
* gui/dialogs/save-comp.[ch] (save_component_dialog): corrected
button ordering and changed the return type to be a GtkResponseType.
* gui/dialogs/comp-editor.c (prompt_to_save_changes): adapted to
changes in save_component_dialog.
svn path=/trunk/; revision=20261
2003-03-04 JP Rosevear <jpr@ximian.com>
* gui/dialogs/meeting-page.c (meeting_page_fill_widgets): don't
let the user change to an email organizer if the back end is not
an email addres
svn path=/trunk/; revision=20162
2003-03-04 JP Rosevear <jpr@ximian.com>
Partially Fixes#23606 (from Jack Jia <jack.jia@sun.com>)
* gui/dialogs/schedule-page.c (update_time): handle no end date if
the start is date only
* gui/dialogs/event-page.c (update_time): ditto
svn path=/trunk/; revision=20146
* gui/dialogs/Makefile.am: build libcal-dialogs as an uninstalled
shared library
($(IDL_GENERATED_H), etc): Only generate
Evolution-Addressbook-SelectNames.h, not the corresponding .c
files, or we'll get duplicate symbol errors trying to link this
into libevolution_calendar.la
* gui/Makefile.am (libevolution_calendar_la_LIBADD): Update for
that (and eliminate libtool portability warnings)
svn path=/trunk/; revision=20114
2003-02-23 Hans Petter Jansson <hpj@ximian.com>
* cal-client/cal-client.c (cal_client_is_read_only): Don't warn
if calendar isn't loaded... Doesn't seem to hurt, but this should
probably be investigated further.
* gui/dialogs/comp-editor-util.c (comp_editor_contacts_to_widget):
If we have no contacts, don't bother trying to set them in the
widget. Used to pass a NULL list, which would lead to much anxiety
in callees.
* gui/dialogs/meeting-page.c (meeting_page_fill_widgets):
If we have no potential organizers, emit a sensible warning.
* gui/dialogs/task-page.c (init_widgets): Don't try to connect to
the "changed" signal of the GtkTextView -- we listen to the
GtkTextBuffer now.
svn path=/trunk/; revision=20019
2003-02-23 Hans Petter Jansson <hpj@ximan.com>
* gui/gnome-cal.c (backend_died_cb): Appease the compiler.
(gnome_calendar_update_paned_quanta): Don't actually try to set
the quantum properties. The quantum code should probably go away
entirely now that the panes update during resize, but let's keep
it around for a bit more.
* gui/dialogs/event-editor.c (event_editor_construct): Ref & sink
the pages.
* gui/dialogs/task-editor.c (task_editor_construct): Ref & sink
the pages.
svn path=/trunk/; revision=20011
2003-02-22 Hans Petter Jansson <hpj@ximian.com>
* gui/dialogs/task-details-page.c (get_widgets): Show the custom
widgets, since libglade appears to not want to do that.
* gui/dialogs/task-page.c (clear_widgets): Make the description
field use a GtkTextView.
(task_page_fill_widgets): Ditto.
(task_page_fill_component): Ditto.
(init_widgets): Ditto.
(get_widgets): Show the custom widgets, since libglade doesn't do it.
svn path=/trunk/; revision=20003
* cal-client/Makefile.am (client_test_LDADD): Remove libversit. We
haven't depended on that in forever.
* cal-util/Makefile.am (test_recur_LDADD): Likewise
* gui/alarm-notify/Makefile.am: build libalarm as a shared library
instead of static.
* gui/dialogs/Makefile.am: likewise for libcal-dialogs
* gui/Makefile.am (libevolution_calendar_la_LIBADD): update for
that.
svn path=/trunk/; revision=19965
* gui/Makefile.am: Make the CORBA IDL compilation work with
parallel makes.
* gui/dialogs/Makefile.am: Likewise.
* gui/alarm-notify/Makefile.am: Likewise.
svn path=/trunk/; revision=19872
* cal-util/cal-recur.c (cal_recur_nth): array of localized month
day names ("1st" - "31st")
* gui/dialogs/recurrence-page.c (make_recur_month_num_submenu,
make_recur_month_num_menu, month_num_menu_selection_done_cb): Use
the new cal_recur_nth[] array. The way this was done before didn't
localize properly.
* gui/alarm-notify/notify-main.c (main):
s/glade_gnome_init/glade_init/
From evolution-1-2-branch:
* gui/e-itip-control.c (write_recurrence_piece): Describe
recurrences, if we can. #30993
(set_date_label): If the meeting has recurrences, call
write_recurrence_piece after writing the start and end dates.
(write_label_piece): Wrap the timezone in <font size=-1> to
de-emphasize it a bit and try to keep the timestamp on a single
line even with big Outlook timezone names. Add an option to show
just the date, for describing the end of recurrences (since the
time in the UNTIL is the *beginning* of the last instance, which
would confuse people).
(update_item): Set the VCALENDAR's METHOD.
(ok_clicked_cb): Use update_item, not remove_item, to process a
cancelation. Part of #33875.
* pcs/cal-backend-file.c (cal_backend_file_cancel_object): New,
handle an ICAL_METHOD_CANCEL update.
(cal_backend_file_update_objects): Call
cal_backend_file_update_object or cal_backend_file_cancel_object
as appropriate.
svn path=/trunk/; revision=19763
2003-02-02 Hans Petter Jansson <hpj@ximian.com>
* gui/e-day-view.c (e_day_view_set_event_font_cb): Skip setting the
"font_gdk" arg for now.
(e_day_view_update_main_canvas_drag): Ditto.
* gui/e-week-view.c (e_week_view_style_set): Ditto.
* gui/weekday-picker.c (configure_items): Ditto.
* gui/dialogs/event-page.c (get_widgets): Show custom widgets
manually, since the visibility specified in the Glade XML appears
to not have any effect.
* gui/dialogs/recurrence-page.c (get_widgets): Ditto.
svn path=/trunk/; revision=19706
2003-01-25 Hans Petter Jansson <hpj@ximian.com>
Mainly making all views use PangoLayouts for text. When drawing a
PangoLayout, the draw offset is the top left corner of the layout,
not the text's baseline. Keep this in mind when viewing the
changes. I'll be brief about the exact changes, since they speak
better for themselves.
* gui/e-day-view-time-item.c (e_day_view_time_item_get_column_width):
Use Pango.
(e_day_view_time_item_draw): Use Pango.
* gui/e-day-view-top-item.c (e_day_view_top_item_draw): Use Pango.
(e_day_view_top_item_draw_long_event): Add some FIXME text so we can
see when this is being used. Is it in use at all?
* gui/e-day-view.c: No longer specify an explicit X font string for
the large font. Use the main font, and change the point size.
(e_day_view_init): Use Pango.
(e_day_view_style_set): Use Pango. Comment out the gdk_font setting
for the drag text items for now.
* gui/e-day-view.h: Use Pango.
* gui/e-week-view-event-item.c (e_week_view_draw_time): Use Pango.
* gui/e-week-view-main-item.c (e_week_view_main_item_draw_day):
Use Pango.
* gui/e-week-view-titles-item.c (e_week_view_titles_item_draw):
Use Pango.
* gui/e-week-view.c: No longer specify an explicit X font string for
the small font. Use the main font, and change the point size.
(e_week_view_init): Use Pango.
(e_week_view_destroy): Use Pango.
(get_string_width): Implemented for convenience.
(get_digit_width): Implemented for convenience.
(e_week_view_style_set): Use Pango.
(e_week_view_recalc_cell_sizes): Use Pango.
(e_week_view_get_time_string_width): Use Pango.
* gui/e-week-view.h: Use Pango.
Following are some random UTF-8 fixes and a crash fix.
* gui/itip-utils.c (comp_description): Use g_locale_to_utf8 ().
* gui/dialogs/comp-editor.c (make_title_from_comp): Return a
UTF-8 string.
* gui/dialogs/alarm-page.c (alarm_page_set_summary): Pass UTF-8
directly to GTK.
* gui/dialogs/delete-comp.c (delete_component_dialog): Ditto.
* gui/dialogs/meeting-page.c (meeting_page_fill_widgets): Ditto.
(meeting_page_construct): Ditto.
* gui/dialogs/recurrence-page.c (recurrence_page_set_summary): Ditto.
* gui/dialogs/event-editor.c (event_editor_finalize): Fix crash caused
by gtk_object_destroy()-ing a non-GtkObject.
svn path=/trunk/; revision=19628
2003-01-24 Hans Petter Jansson <hpj@ximian.com>
* gui/e-day-view.c (e_day_view_on_editing_stopped): Don't insist
appointment is updated if both old and new summary are blank.
* gui/e-week-view.c (e_week_view_on_editing_stopped): Ditto.
* gui/e-timezone-entry.c (on_button_clicked): Timezone dialog is now
a GtkDialog. Treat it as such.
* gui/goto.c (ecal_event): Goto dialog is now a GtkDialog. Treat it
as such.
(goto_dialog): Ditto.
* gui/goto-dialog.glade: Set the return IDs from the dialog buttons.
* gui/dialogs/meeting-page.c (popup_delegate_cb): Enable the delegate
dialog. It's now a GtkDialog, so treat it like one.
(right_click_cb): Use GTK stock item, not GNOME (that doesn't work
anymore).
* gui/e-delegate-dialog.glade: Set the return IDs from dialog buttons.
* gui/print.c (print_calendar): Correct the print dialog init. Code
is still not enabled, though.
* gui/tasks-control.c (print_tasks): Add a warning about printing
being disabled.
svn path=/trunk/; revision=19624