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
* gui/dialogs/Makefile.am (iconsdir): Remove, this is now defined
in configure.in.
* gui/Makefile.am (iconsdir): Remove; this is now defined in
configure.in.
* gui/alarm-notify/Makefile.am (iconsdir): Remove; this is now
defined in configure.in.
svn path=/trunk/; revision=19620
2003-01-23 Hans Petter Jansson <hpj@ximian.com>
* gui/dialogs/comp-editor.c (comp_editor_merge_ui): Add a terminating
NULL to the concatenation.
svn path=/trunk/; revision=19612
* gui/gnome-cal.c (gnome_calendar_setup_view_menus): Use
EVOLUTION_GALVIEWSDIR.
* gui/e-tasks.c (e_tasks_setup_view_menus): Use
EVOLUTION_GALVIEWSDIR.
* cal-util/Makefile.am: Install libcal-util.la in $(privlibdir)
instead of $(libdir).
* gui/dialogs/comp-editor.c (setup_widgets): Get
evolution-comp-editor.xml from EVOLUTION_UIDIR.
(comp_editor_merge_ui): Get the file in EVOLUTION_UIDIR.
* gui/tasks-control.c (tasks_control_activate): Get
evolution-tasks.xml from EVOLUTION_UI_DIRECTORY.
* gui/calendar-commands.c (calendar_control_activate): Get
evolution-calendar.xml from EVOLUTION_UI_DIRECTORY.
* pcs/Makefile.am (pcsincludedir): Version using $(BASE_VERSION).
* importers/Makefile.am: Install evolution-calendar-importer in
$(libexecdir)/evolution/$(BASE_VERSION).
(sounddir): Remove.
* gui/dialogs/Makefile.am (iconsdir): Version using
$(BASE_VERSION).
(gladedir): Likewise.
(etspecdir): Likewise.
* gui/Makefile.am (help_base): Remove.
(install-data-local): Do not make the $(help_base)/C directory.
(etspecdir): Version using $(BASE_VERSION).
(gladedir): Likewise.
(iconsdir): Likewise.
(INCLUDES): Update the EVOLUTION_IMAGESDIR define to be versioned,
and add a -DEVOLUTION_GALVIEWSDIR.
* cal-util/Makefile.am: Install evolution-alarm-notify in
$(libexecdir)/evolution/$(BASE_VERSION).
* cal-util/Makefile.am (libcal_utilincludedir): Version using
$(BASE_VERSION).
* gui/alarm-notify/Makefile.am (iconsdir): Likewise.
(gladedir): Likewise.
* cal-client/Makefile.am: Install libcal-client.la in privlibdir
instead of libdir.
(libcal_clientincludedir): Version using $(BASE_VERSION).
svn path=/trunk/; revision=19553
2003-01-16 Hans Petter Jansson <hpj@ximian.com>
* gui/e-alarm-list.[ch]: Implement EAlarmList as CalComponentAlarm
list with a GtkTreeModel interface.
* gui/Makefile.am: Add e-alarm-list.[ch].
* gui/dialogs/alarm-page.[ch]: Use GtkTreeView with the new
EAlarmList as model for the alarm list. Update copyright.
* gui/dialogs/recurrence-page.[ch]: Update copyright.
(free_exception_date_time): Removed.
(fill_exception_widgets): Kill a lingering clist operation.
svn path=/trunk/; revision=19499
2003-01-15 Hans Petter Jansson <hpj@ximian.com>
* gui/e-meeting-time-sel.c (e_meeting_time_selector_construct):
Create accel groups for popup menus. Fixes crash.
* gui/e-date-time-list.[ch]: Implement EDateTimeList as
CalComponentDateTime list with a GtkTreeModel interface.
* gui/Makefile.am: Add e-date-time-list.[ch].
* gui/dialogs/recurrence-page.c: Use GtkTreeView with the new
EDateTimeList as model for the exception list.
svn path=/trunk/; revision=19490
* gui/config-control-factory.h: Removed.
* gui/config-control-factory.c: Removed.
* gui/itip-bonobo-control.c: Renamed from itip-control-factory.c.
(itip_bonobo_control_new): New.
(itip_control_factory_init): Removed.
* gui/itip-bonobo-control.h: Renamed from itip-control-factory.h.
* gui/tasks-control-factory.c: Removed.
* gui/tasks-control-factory.h: Removed.
* gui/control-factory.c (control_factory_init): Removed.
* gui/Makefile.am: Updated to build everything as
libevolution-calendar.so and install in the COMPONENTDIR.
* gui/GNOME_Evolution_Calendar.server.in.in: Updated to build the
component as a shared library.
* gui/main.c (main): Removed.
* gui/calendar-component.c (calendar_component_get_object): New.
(owner_set_cb): Do not store the shell pointer in shells.
(owner_unset_cb): Do not remove the shell pointer from shells;
instead, just set global_shell_client to NULL.
* gui/calendar-component.h: Renamed from component-factory.h.
* gui/calendar-component.c: Renamed from component-factory.c.
svn path=/trunk/; revision=19430
* gui/alarm-notify/Makefile.am: Icons are now in
$(datadir)/evolution/images instead of
$(datadir)/images/evolution.
* gui/Makefile.am: Likewise.
* gui/dialogs/Makefile.am: Likewise.
svn path=/trunk/; revision=19296
2002-12-19 Hans Petter Jansson <hpj@ximian.com>
* gui/calendar-commands.c (calendar_control_deactivate):
Replace gtk_signal_disconnect_by_data() with
g_signal_handlers_disconnect_matched(). Former takes GtkObject,
latter takes GObject.
* gui/calendar-model.c (calendar_model_destroy): Ditto.
(update_query): Ditto.
(calendar_model_set_cal_client): Ditto.
* gui/e-day-view.c (e_day_view_destroy): Ditto.
(update_query): Ditto.
(e_day_view_set_cal_client): Ditto.
* gui/e-tasks.c (query_eval_error_cb): Ditto.
(query_query_done_cb): Ditto.
* gui/e-week-view.c (e_week_view_destroy): Ditto.
(update_query): Ditto.
(e_week_view_set_cal_client): Ditto.
* gui/gnome-cal.c (update_query): Ditto.
(gnome_calendar_destroy): Ditto.
* gui/tasks-control.c (tasks_control_deactivate): Ditto.
* gui/e-comp-editor-registry.c (foreach_close_cb): Replace
gtk_signal_handler_(un)block_by_data() with
g_signal_handlers_(un)block_matched(). Former takes GtkObject, latter
takes GObject.
* gui/dialogs/alarm-page.c (alarm_page_get_type): Replace with
E_MAKE_TYPE().
(alarm_page_class_init): Use GObject as base class instead of
GtkObject, and set up finalization instead of destroy handler.
(alarm_page_destroy): Change to alarm_page_finalize() and assume
parent is GObject, not GtkObject.
(alarm_page_new): Use g_object_new(), not gtk_type_new().
* gui/dialogs/event-page.c: Same general changes as above file.
(update_time): Replace gtk_signal_handler_(un)block_by_data()
with g_signal_handlers_(un)block_matched().
(clear_widgets): Ditto.
(times_updated): Ditto.
* gui/dialogs/recurrence-page.c: Same general changes as above file.
(clear_widgets): Replace gtk_signal_handler_(un)block_by_data()
with g_signal_handlers_(un)block_matched().
(append_exception): Ditto.
(fill_ending_date): Ditto.
(recurrence_page_fill_widgets): Ditto.
* gui/dialogs/comp-editor.c: Same general changes as above file.
(comp_editor_finalize): Replace gtk_signal_disconnect_by_data()
with g_signal_handlers_disconnect_matched().
(comp_editor_remove_page): Ditto.
* gui/dialogs/event-editor.c: Same general changes as above file.
* gui/dialogs/meeting-page.c: Same general changes as above file.
* gui/dialogs/schedule-page.c: Same general changes as above file.
* gui/dialogs/task-details-page.c: Same general changes.
* gui/dialogs/task-editor.c: Same general changes as above file.
* gui/dialogs/task-page.c: Same general changes as above file.
* gui/dialogs/e-delegate-dialog.c: Same general changes.
svn path=/trunk/; revision=19167
2002-11-27 Not Zed <NotZed@Ximian.com>
* gui/itip-utils.[ch]: run fix.sh over this.
* gui/dialogs/*.[ch]: run fix.sh over all of this.
2002-11-26 Richard Li <Richard.Li@Sun.COM>
* cal-client/cal-client.c (cal_client_construct): removed extra call
to CORBA_exception_init.
2002-11-22 Not Zed <NotZed@Ximian.com>
* gui/dialogs/delete-comp.c (delete_component_dialog): Changed
e_messagebox -> gtk_messagedialog.
svn path=/trunk/; revision=18972
2002-11-19 Not Zed <NotZed@Ximian.com>
* gui/e-meeting-model.c (get_select_name_dialog): pass type to
bonobo_widget::set_property.
(select_names_ok_cb): ", for get_property.
* gui/dialogs/e-delegate-dialog.c (e_delegate_dialog_construct):
pass type to bonobo_widget::set_property & plug small leak.
(e_delegate_dialog_get_delegate): ", for get_property.
(e_delegate_dialog_get_delegate_name): "
* gui/dialogs/comp-editor-util.c (comp_editor_contacts_to_widget):
pass type to bonobo_widget::set_property.
(comp_editor_contacts_to_component): ", for get_property
svn path=/trunk/; revision=18835
2002-11-06 Rodrigo Moya <rodrigo@ximian.com>
* gui/dialogs/comp-editor-util.[ch]
(comp_editor_connect_contacts_changed): don't return a
Bonobo_EventSource_ListenerId, since it does not exist anymore,
and was not even being used.
* gui/e-timezone-entry.h: use GLib macros.
* gui/dialogs/*.glade:
* gui/alarm-notify/*.glade:
* gui/*.glade: converted to Glade2 format.
svn path=/trunk/; revision=18616