Commit Graph

340 Commits

Author SHA1 Message Date
f58154d28e Fixes part of #41148, #41216 and #41235
2003-04-22  Rodrigo Moya <rodrigo@ximian.com>

	Fixes part of #41148, #41216 and #41235

	* gui/e-itip-control.c (init):
	* gui/e-meeting-time-sel.c (e_meeting_time_selector_construct,
	  e_meeting_time_selector_add_key_color):
	* gui/e-timezone-entry.c (e_timezone_entry_init):
	* gui/gnome-cal.c (setup_widgets):
	* gui/tasks-control.c (confirm_expunge):
	* gui/dialogs/comp-editor.c (setup_widgets):
	* gui/dialogs/e-delegate-dialog.c (e_delegate_dialog_construct):
	* gui/dialogs/meeting-page.c (meeting_page_construct):
	* gui/dialogs/recurrence-page.c (make_weekly_special,
	  make_monthly_special, make_ending_count_special):
	* gui/dialogs/schedule-page.c (schedule_page_construct):
	use HIG-suggested spacing.

svn path=/trunk/; revision=20927
2003-04-22 21:15:41 +00:00
1bd3678dbe [ fixes #21499 ]
2003-04-18  Rodney Dawes  <dobey@ximian.com>

	[ fixes #21499 ]
	* gui/component/Makefile.am:
	* gui/component/addressbook.c:
	* gui/component/select-names/e-select-names-bonobo.c:
	* gui/contact-editor/Makefile.am:
	* gui/contact-editor/e-contact-editor.c:
	* gui/contact-list-editor/Makefile.am:
	* gui/contact-list-editor/e-contact-list-editor.c:
	Use PREFIX instead of EVOLUTION_DATADIR for bonobo_ui_util_set_ui ()

	* gui/Makefile.am:
	* gui/calendar-commands.c:
	* gui/tasks-control.c:
	* gui/dialogs/Makefile.am:
	* gui/dialogs/comp-editor.c:
	Use PREFIX instead of EVOLUTION_DATADIR for bonobo_ui_util_set_ui ()

	* Makefile.am:
	* e-msg-composer.c:
	Use PREFIX instead of EVOLUTION_DATADIR for bonobo_ui_util_set_ui ().
	Fixes bug #21499.

	* Makefile.am:
	* folder-browser-ui.c:
	* mail-signature-editor.c:
	* message-browser.c:
	Use PREFIX instead of EVOLUTION_DATADIR for bonobo_ui_util_set_ui ().
	Fixes bug #21499.

	* Makefile.am:
	* e-summary-factory.c:
	Use PREFIX instead of EVOLUTION_DATADIR for bonobo_ui_util_set_ui ()

	* e-shell-view.c: Use PREFIX instead of EVOLUTION_DATADIR for
	bonobo_ui_util_set_ui () [#21499]

svn path=/trunk/; revision=20888
2003-04-18 17:46:26 +00:00
1c0d5f2c84 Fixes #41459
2003-04-17  JP Rosevear  <jpr@ximian.com>

	Fixes #41459

	* gui/dialogs/meeting-page.c: comment out delegation stuff

svn path=/trunk/; revision=20880
2003-04-17 15:52:41 +00:00
2bd492627c Fixes #41129, #41215, #41221, #41256
2003-04-16  Rodrigo Moya <rodrigo@ximian.com>

	Fixes #41129, #41215, #41221, #41256

	* gui/alarm-notify/alarm-notify.glade:
	* gui/dialogs/alarm-options.glade:
	* gui/dialogs/alarm-page.glade:
	* gui/dialogs/cal-prefs-dialog.glade:
	* gui/dialogs/e-delegate-dialog.glade:
	* gui/dialogs/meeting-page.glade:
	* gui/dialogs/recurrence-page.glade:
	* gui/dialogs/schedule-page.glade:
	* gui/dialogs/task-details-dialog.glade:
	* gui/dialogs/task-page.glade:
	* gui/dialogs/event-page.glade: set spacing to 6 pixels
	everywhere.

svn path=/trunk/; revision=20869
2003-04-16 20:31:09 +00:00
1cddfbd5e5 If we already have an evolution_dir, free the old one before setting it
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
2003-04-15 22:26:11 +00:00
fcbb259416 Oops. Add this back. Turns out it's still needed by other parts.
* gui/dialogs/Makefile.am (IDL_GENERATED, etc): Oops. Add this
	back. Turns out it's still needed by other parts.

svn path=/trunk/; revision=20821
2003-04-11 18:18:20 +00:00
730d7da9eb Remove the "Contacts" button and entry from here too. Supposed to have
* 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
2003-04-11 14:15:40 +00:00
fff54e1198 added missing capabilities.
2003-04-11  Rodrigo Moya <rodrigo@ximian.com>

	* cal-util/cal-util.h: added missing capabilities.

	* cal-client/cal-client.c (cal_client_get_one_alarm_only,
	  cal_client_get_organizer_must_attend,
	  cal_client_get_save_schedules):
	* gui/itip-utils.c (itip_organizer_is_user):
	* gui/e-calendar-table.c (e_calendar_table_on_right_click):
	* gui/dialogs/task-editor.c (set_menu_sens):
	* gui/dialogs/event-page.c (event_page_fill_widgets):
	* gui/dialogs/meeting-page.c (meeting_page_fill_widgets):
	* gui/dialogs/alarm-page.c (button_options_clicked_cb): use the macros
	defined in cal-util.h for static capabilities.

svn path=/trunk/; revision=20815
2003-04-11 10:41:37 +00:00
0025229dc5 unref the main widget since we ref it when we un-parent it
2003-04-11  JP Rosevear  <jpr@ximian.com>

	* gui/dialogs/schedule-page.c (schedule_page_finalize): unref the
	main widget since we ref it when we un-parent it

	* gui/dialogs/alarm-page.c (alarm_page_finalize): ditto

	* gui/dialogs/task-page.c (task_page_finalize): ditto

	* gui/dialogs/event-page.c (event_page_finalize): ditto

	* gui/dialogs/task-details-page.c (task_details_page_finalize):
	ditto

	* gui/dialogs/recurrence-page.c (recurrence_page_finalize): ditto

	* gui/dialogs/meeting-page.c (meeting_page_finalize): ditto

svn path=/trunk/; revision=20811
2003-04-11 08:52:56 +00:00
ce6c174542 Remove button_ok, button_cancel, canceled members from struct Dialog.
* 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-08 14:32:25 +00:00
ab8d93168b Fixes #35926.
2003-04-07  Hans Petter Jansson  <hpj@ximian.com>

	Fixes #35926.

	* gui/dialogs/event-page.glade: Remove contacts entry/chooser.

	* gui/dialogs/event-page.c: Remove contacts entry/chooser.
	(event_page_init): Remove references.
	(event_page_finalize): Ditto.
	(event_page_fill_widgets): Ditto.
	(event_page_fill_component): Ditto.
	(get_widgets): Ditto.
	(init_widgets): Ditto.
	(contacts_clicked_cb): Remove wholesale.
	(contacts_changed_cb): Ditto.

svn path=/trunk/; revision=20731
2003-04-07 20:56:47 +00:00
5c0dca8bd5 create button properly
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-04-07 19:56:41 +00:00
26838c440e (alarm_to_dialog): Make the file
entry modal.  [#40792]

svn path=/trunk/; revision=20678
2003-04-04 22:12:13 +00:00
c481b9e821 description is a text buffer (alarm_to_malarm_widgets): ditto
2003-04-04  JP Rosevear  <jpr@ximian.com>

	* gui/dialogs/alarm-options.c (alarm_to_dalarm_widgets):
	description is a text buffer
	(alarm_to_malarm_widgets): ditto
	(dalarm_widgets_to_alarm): ditto
	(malarm_widgets_to_alarm): ditto
	(alarm_to_repeat_widgets): check repeat status correctly

svn path=/trunk/; revision=20677
2003-04-04 21:58:34 +00:00
725e53d0e3 Fixes #39954
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 19:04:19 +00:00
87770ea286 init new members (get_current_account): get a matching account for the
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-28 15:26:44 +00:00
3f826a8b2a add a parameter(TC_CORBA_string) to the bonobo_widget_get_property.
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
2003-03-26 13:30:12 +00:00
d8cac9eeaf Update for e_notice move
* 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-25 15:49:44 +00:00
aa30af4897 use a GtkMessageDialog and deal correctly with the dialog's reponses.
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-20 17:47:54 +00:00
a7c97f5d6b use GtkMessageDialog instead of gnome_question_dialog, and deal correctly
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-18 19:43:46 +00:00
76d5d48097 Fixes #34095
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-18 01:46:26 +00:00
e4c6f61966 Fixes #39757
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-18 00:58:04 +00:00
c32307b1c8 don't use GNOME_STOCK_* defines, but GTK_STOCK_*.
2003-03-12  Rodrigo Moya <rodrigo@ximian.com>

	* gui/dialogs/save-comp.c (save_component_dialog): don't use
	GNOME_STOCK_* defines, but GTK_STOCK_*.

svn path=/trunk/; revision=20262
2003-03-12 16:10:30 +00:00
460a3fb010 corrected button ordering and changed the return type to be a
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-12 16:04:50 +00:00
7f8c51d30d g_objectify ref/unref
2003-03-05  JP Rosevear  <jpr@ximian.com>

	* gui/e-itip-control.c (show_current): g_objectify ref/unref

	* gui/itip-bonobo-control.c (set_data_idle_cb): as above
	(pstream_load): ditto

	* gui/dialogs/alarm-options.c (alarm_to_malarm_widgets): as above

svn path=/trunk/; revision=20172
2003-03-05 15:50:34 +00:00
f776394961 don't let the user change to an email organizer if the back end is not an
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 22:28:56 +00:00
6c95c6da0e call cal_client_get_cal_address instead of cal_client_get_email_address
2003-03-04  JP Rosevear  <jpr@ximian.com>

       * gui/itip-utils.c (itip_organizer_is_user): call
       cal_client_get_cal_address instead of cal_client_get_email_address

       * gui/dialogs/meeting-page.c (meeting_page_construct): ditto

       * pcs/cal.c (impl_Cal_get_cal_address): implement updated method
       name
       (cal_class_init): set method implementation

       * pcs/cal-backend.c (cal_backend_class_init): init get_cal_address
       virtual function
       (cal_backend_get_cal_address): call proper function

       * pcs/cal-backend.h: update proto, rename get_email_address
       virtual function to get_cal_address virtual function

       * pcs/cal-backend-file.c (cal_backend_file_class_init): match
       get_cal_address call
       (cal_backend_file_get_cal_address): rename from
       cal_backend_file_get_email_address

       * cal-client/cal-client.c: rename email_address private member to
       cal_address
       (cal_client_init): init cal_address
       (cal_client_destroy): free cal_address and properly free
       alarm_email_address
       (cal_client_get_cal_address): rename from
       cal_client_get_email_address and call proper corba function

svn path=/trunk/; revision=20151
2003-03-04 20:59:13 +00:00
c35c8eb37d fix copyright
2003-03-04  JP Rosevear  <jpr@ximian.com>

 	* gui/dialogs/recur-comp.h: fix copyright

 	* gui/dialogs/recur-comp.c: fix copyright
 	(recur_component_dialog): say "recurring journal entry" instead of
 	just "recurring journal"

svn path=/trunk/; revision=20147
2003-03-04 20:03:21 +00:00
df4595a2b8 Partially Fixes #23606 (from Jack Jia <jack.jia@sun.com>)
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
2003-03-04 19:59:21 +00:00
ae7622009e Shush.
svn path=/trunk/; revision=20145
2003-03-04 19:53:59 +00:00
6c2bfc807c Commit missed files.
svn path=/trunk/; revision=20144
2003-03-04 19:53:28 +00:00
6b4c3984d5 If only the pipe wouldn't break.
svn path=/trunk/; revision=20143
2003-03-04 19:52:37 +00:00
484aa9de68 gui/dialogs/alarm-page.c gui/dialogs/event-page.c
2003-03-03  Hans Petter Jansson  <hpj@ximian.com>

	* gui/dialogs/alarm-page.c
	* gui/dialogs/event-page.c
	* gui/dialogs/meeting-page.c
	* gui/dialogs/recurrence-page.c
	* gui/dialogs/schedule-page.c
	* gui/dialogs/task-details-page.c
	* gui/dialogs/task-page.c (get_widgets): gtk_widget_unparent() ->
	gtk_container_remove(). The former caused crashes in the
	addressbook's name-selector.

svn path=/trunk/; revision=20130
2003-03-03 22:28:59 +00:00
e923674e24 build libcal-dialogs as an uninstalled shared library ($(IDL_GENERATED_H),
* 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-28 22:44:27 +00:00
ef315a410d Show start/end-of-day widgets.
2003-02-25  Hans Petter Jansson  <hpj@ximian.com>

	* gui/dialogs/cal-prefs-dialog.c (get_widgets): Show start/end-of-day
	widgets.

svn path=/trunk/; revision=20062
2003-02-25 22:31:18 +00:00
ba64403a4f Don't warn if calendar isn't loaded... Doesn't seem to hurt, but this
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-24 03:10:28 +00:00
ee568bb74f gconf settings upgrades
svn path=/trunk/; revision=20018
2003-02-24 02:59:24 +00:00
1d89cb7a9b Appease the compiler. (gnome_calendar_update_paned_quanta): Don't actually
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-24 00:57:57 +00:00
1b3f0e9d8a Show the custom widgets, since libglade appears to not want to do that.
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
2003-02-23 02:30:10 +00:00
4481f892e1 revert previous change
svn path=/trunk/; revision=19968
2003-02-20 05:38:56 +00:00
94e846e2a9 Remove libversit. We haven't depended on that in forever.
* 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
2003-02-20 04:43:14 +00:00
efd467f902 Make the CORBA IDL compilation work with parallel makes. Likewise.
* 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
2003-02-10 17:28:37 +00:00
eacd38d4ee Use e_auto_kill_popup_menu_on_selection_done() instead of
* gui/e-day-view-time-item.c
(e_day_view_time_item_show_popup_menu): Use
e_auto_kill_popup_menu_on_selection_done() instead of
e_auto_kill_popup_menu_on_hide().
* gui/dialogs/meeting-page.c (right_click_cb): Likewise.

svn path=/trunk/; revision=19835
2003-02-06 23:25:10 +00:00
999c456787 show the widget before returning it.
* gui/dialogs/event-page.c (make_timezone_entry): show the widget
	before returning it.

svn path=/trunk/; revision=19826
2003-02-06 19:40:27 +00:00
84d3e4130f Remove cruft. Rename ICONSDIR to IMAGESDIR. (gladedir, etspecdir): Remove
* gui/dialogs/Makefile.am (INCLUDES): Remove cruft. Rename
	ICONSDIR to IMAGESDIR.
	(gladedir, etspecdir): Remove definitions

	* gui/dialogs/alarm-page.c: #include gtktreeselection.h and
	gtkcellrenderertext.h
	(append_reminder): Remove unused variable.
	(alarm_page_fill_component): Likewise.
	(alarm_page_set_summary): Likewise.
	(delete_clicked_cb): Likewise.

	* gui/dialogs/comp-editor.c (make_icon_from_comp):
	s/ICONSDIR/IMAGESDIR/

	* gui/dialogs/event-page.c: #include <string.h>

	* gui/dialogs/meeting-page.c (meeting_page_construct): Remove
	unused variable.
	(meeting_page_fill_widgets): Likewise

	* gui/dialogs/recurrence-page.c: #include gtktreeselection.h and
	gtkcellrenderertext.h
	(append_exception): Remove unused variable
	(fill_component): Likewise
	(recurrence_page_set_summary): Likewise.
	(exception_delete_cb): Likewise

svn path=/trunk/; revision=19792
2003-02-06 01:58:04 +00:00
05020b82c3 array of localized month day names ("1st" - "31st")
* 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-05 18:12:34 +00:00
5c82a66329 The CVS server exited after applying everything from my last commit,
except for the changes made to this file. Why?

svn path=/trunk/; revision=19750
2003-02-05 00:17:37 +00:00
c366eaafc3 Skip setting the "font_gdk" arg for now.
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-02-02 08:07:39 +00:00
3cf26e43e2 Mainly making all views use PangoLayouts for text. When drawing a
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-26 01:42:05 +00:00
0d838a10a2 Don't insist appointment is updated if both old and new summary are blank.
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
2003-01-24 22:02:49 +00:00