Commit Graph

325 Commits

Author SHA1 Message Date
a2b0fea026 Reset the "changed" state to FALSE after a successful save.
2001-08-19  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (save_draft): Reset the "changed" state to
	FALSE after a successful save.

svn path=/trunk/; revision=12224
2001-08-19 19:10:55 +00:00
49bce76449 formatted code nicer
svn path=/trunk/; revision=12181
2001-08-17 21:34:50 +00:00
d398be6895 Toggle the View->Attachments menu item. This fixes bug #6107.
2001-08-17  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (show_attachments): Toggle the
	View->Attachments menu item. This fixes bug #6107.

svn path=/trunk/; revision=12177
2001-08-17 21:09:39 +00:00
827e944ea0 YESS!
2001-07-12  Peter Williams  <peterw@ximian.com>

	* e-msg-composer.c (map_default_cb): New function. Figure out
	which widget gets the default and assign it. Harder to do than
	it sounds.
	(e_msg_composer_construct): Hook map_default_cb up to the "map"
	signal.
	(set_focus_to_editor): Removed.
	(set_focus_to_editor_idle): Removed.

svn path=/trunk/; revision=12037
2001-08-14 22:27:42 +00:00
78544223ad Removed comment about the need to resolve nicknames properly, because we
2001-08-10  Jon Trowbridge  <trow@ximian.com>

	* e-msg-composer-hdrs.c (set_recipients): Removed comment about
	the need to resolve nicknames properly, because we now do that.

2001-08-10  Jon Trowbridge  <trow@ximian.com>

        * e-filter-bar.h: Set the subitems to NULL in the pre-defined
        ESearchBarItems.

        * e-filter-bar.c (rule_editor_clicked): Set the ESearchBarItem's
        subitems to NULL.
        (build_items): Set the ESearchBarItem's subitems to NULL.
        (e_filter_bar_new): Set the ESearchBarItem's subitems to NULL.

        * e-search-bar.c: Added support for subitems, so that a search
        option can key off of another option menu rather than just an
        entry.

2001-08-10  Jon Trowbridge  <trow@ximian.com>

        * gui/component/addressbook.c: Set the ESearchBarItem
        subitems explicitly to NULL.

2001-08-10  Jon Trowbridge  <trow@ximian.com>

        * gui/cal-search-bar.c: Where we have ESearchBarItems, set their
        subitems to NULL.

2001-08-10  Jon Trowbridge  <trow@ximian.com>

        * folder-browser.c: Set our ESearchBarItems subitems to NULL.

svn path=/trunk/; revision=11904
2001-08-10 22:36:41 +00:00
79265bbca3 new helper function, just setup idle callback to grab focus
2001-08-09  Radek Doulik  <rodo@ximian.com>

	* e-msg-composer.c (set_focus_to_editor): new helper function,
	just setup idle callback to grab focus
	(set_focus_to_editor_idle): grab focus for editor, before we have
	better solution, it run grab-focus command on editor control
	(e_msg_composer_construct): call prepare_engine here, set focus to
	editor

svn path=/trunk/; revision=11875
2001-08-10 07:17:54 +00:00
2bd1cd5f39 Don't forget to closedir() when we finish with dir.
2001-08-10  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (autosave_manager_query_load_orphans): Don't
	forget to closedir() when we finish with dir.

svn path=/trunk/; revision=11872
2001-08-10 05:18:59 +00:00
6b0d359b25 Set the smime/pgp always-sign options when here so it updates when the
2001-08-09  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (from_changed_cb): Set the smime/pgp
	always-sign options when here so it updates when the user changes
	his/her identity.

svn path=/trunk/; revision=11840
2001-08-09 19:10:45 +00:00
e239e423dd Set the PGP/MIME and S/MIME options to FALSE before getting the message
2001-08-08  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (e_msg_composer_get_message_draft): Set the
	PGP/MIME and S/MIME options to FALSE before getting the message
	draft and restore the values afterward.

svn path=/trunk/; revision=11802
2001-08-08 21:11:29 +00:00
5949b39e34 Use g_basename(). (setup_ui): Get the default charset from the mail config
2001-08-06  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (add_inlined_image): Use g_basename().
	(setup_ui): Get the default charset from the mail config db.

svn path=/trunk/; revision=11716
2001-08-06 22:57:28 +00:00
2b450081f6 handle delete event
2001-08-06  Radek Doulik  <rodo@ximian.com>

	* listener.c (impl_event): handle delete event

svn path=/trunk/; revision=11700
2001-08-06 16:46:10 +00:00
993a74a8c0 More updates to icons, this time the Save, Save As, and Search icons for
a few places.

svn path=/trunk/; revision=11544
2001-08-01 09:11:56 +00:00
c36ab4adbc ui:
2001-07-31  Peter Williams  <peterw@ximian.com>

	* evolution-message-composer.xml: Add "Customize Toolbars" menu item
	and command.

composer:

2001-07-31  Peter Williams  <peterw@ximian.com>

	* e-msg-composer.c (setup_ui): Set the config path for the composer so
	that the customize toolbar command works.

svn path=/trunk/; revision=11529
2001-07-31 19:01:59 +00:00
86dfaaef76 Use the new Send and Send Later icons for the toolbar and menus in the
composer.  (Beautiful work Tuomas and Jakub!)

svn path=/trunk/; revision=11511
2001-07-31 15:19:47 +00:00
101e668310 Properly add the message/rfc822 part.
2001-07-30  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (message_rfc822_dnd): Properly add the
	message/rfc822 part.

svn path=/trunk/; revision=11478
2001-07-30 17:04:09 +00:00
34c8a93e52 Jason Leach <jleach@ximian.com>
* e-msg-composer.c (get_signature_html): "-- \n" is 4 chars long,
	so when checking if it's already in the sig, strncmp should check
	4 chars, not 3.

svn path=/trunk/; revision=11447
2001-07-27 16:40:40 +00:00
41014ea1a9 Correct our manually inserted signature dash thingie (it was missing the
2001-07-26  Peter Williams  <peterw@ximian.com>

	* e-msg-composer.c (get_signature_html): Correct our manually inserted
	signature dash thingie (it was missing the space).

svn path=/trunk/; revision=11426
2001-07-26 15:58:09 +00:00
09365bf01c Removed some debugging chatter.
2001-07-26  Jon Trowbridge  <trow@ximian.com>

	* backend/ebook/e-card.c: Removed some debugging chatter.

	* gui/component/select-names/e-select-names-manager.c
	(e_select_names_manager_create_entry): Store the completion
        handler in the entry's object data.

	* gui/component/select-names/e-select-names-bonobo.c
	(entry_get_property_fn): Added support for getting "destinations"
	and "allow_contact_lists" properties.
        (entry_set_property_fn): Added support for setting "destinations"
	and "allow_contact_lists" properties.
	(impl_SelectNames_get_entry_for_section): Added definitions for
	"destinations" and "allow_contact_lists" properties.

	* gui/component/select-names/e-select-names-completion.c
	(e_select_names_completion_get_match_contact_lists): Added.
	(e_select_names_completion_set_match_contact_lists): Added.
	Controls whether contact lists are offered as options during
        completion.
	(book_query_process_card_list): Check if match_contact_lists
	is set before (duh!) matching on a contact list.
	(e_select_names_completion_init): Set match_contact_lists
	to TRUE by default.


2001-07-26  Jon Trowbridge  <trow@ximian.com>

	* e-msg-composer-hdrs.c (set_recipients): Get "destinations",
	rather than "text" from the entry_widget.  (The getters/setters in
	the control have been made more symmetric.)

svn path=/trunk/; revision=11422
2001-07-26 05:46:37 +00:00
fbc89c9d81 Update to the new way of finding the default account.
2001-07-18  Jason Leach  <jleach@ximian.com>

	* e-msg-composer-hdrs.c (create_from_optionmenu): Update to the
	new way of finding the default account.

svn path=/trunk/; revision=11219
2001-07-19 01:25:35 +00:00
31f8acef96 USe a message box to look nicer.
svn path=/trunk/; revision=11204
2001-07-18 18:32:22 +00:00
c1f19b88db Correctly handle text/uri-list's that contain more than a single file
2001-07-17  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (drag_data_received): Correctly handle
	text/uri-list's that contain more than a single file reference.

svn path=/trunk/; revision=11173
2001-07-17 20:31:37 +00:00
4216b42320 Removed a warning that I don't need anymore. This code is working
2001-07-12  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (menu_changed_charset_cb): Removed a warning
	that I don't need anymore. This code is working wonderfully ;-)

svn path=/trunk/; revision=11074
2001-07-12 23:06:19 +00:00
b6b96ce5f8 Fix typo. s/sesiion/session/
2001-07-10  Kjartan Maraas  <kmaraas@gnome.org>

	* e-msg-composer.c: Fix typo. s/sesiion/session/

svn path=/trunk/; revision=10965
2001-07-10 19:59:05 +00:00
c417a47019 Only ask once about recovery, assume if they want to recover one file they
2001-07-09  Larry Ewing  <lewing@ximian.com>

	* e-msg-composer.c (autosave_manager_query_load_orphans): Only ask
	once about recovery, assume if they want to recover one file they
	want to recover all of them.

svn path=/trunk/; revision=10948
2001-07-10 03:57:41 +00:00
d0e85041da Use camel_internet_address_format_address rather than camel_address_encode
2001-07-09  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (e_msg_composer_new_with_message): Use
	camel_internet_address_format_address rather than
	camel_address_encode since we want display-friendly addresses.

svn path=/trunk/; revision=10930
2001-07-09 20:16:20 +00:00
a5d93d4f63 Close the file selection dialog when the composer is closed
svn path=/trunk/; revision=10920
2001-07-09 18:12:30 +00:00
fcda5ec759 Do the autosave_manager_unregister at shutdown time instead of destroy
* e-msg-composer.c (composer_shutdown): Do the
	autosave_manager_unregister at shutdown time instead of destroy
	time (by which point the contents of the window, including the
	remote editor control, will have already been destroyed).

svn path=/trunk/; revision=10913
2001-07-09 15:22:24 +00:00
6468acf689 Added missing #include <config.h> to make translations working.
* e-msg-composer-select-file.c: Added missing #include <config.h> to
make translations working.

svn path=/trunk/; revision=10906
2001-07-09 11:58:23 +00:00
622ee65eb6 Make sure that our destination string (dest_str) is not the empty string
2001-07-07  Jon Trowbridge  <trow@ximian.com>

	* e-msg-composer-hdrs.c (set_recipients): Make sure that our
        destination string (dest_str) is not the empty string before we
        try to use it.

svn path=/trunk/; revision=10880
2001-07-07 05:47:23 +00:00
85bb331cb7 (autosave_manager_query_load_orphans): remove zero length orphans so that
2001-07-06  Larry Ewing  <lewing@ximian.com>

	(autosave_manager_query_load_orphans): remove zero length orphans
	so that they don't clutter things up.

svn path=/trunk/; revision=10874
2001-07-06 22:43:36 +00:00
2caec09b47 (best_encoding): make sure we don't try to call iconv_open with a NULL
2001-07-06  Larry Ewing  <lewing@ximian.com>

	(best_encoding): make sure we don't try to call iconv_open with a
	NULL tocode.

svn path=/trunk/; revision=10872
2001-07-06 22:20:34 +00:00
65f9da8251 add missing static.
001-07-06  Larry Ewing  <lewing@ximian.com>

	* e-msg-composer.c (autosave_manager_new): add missing static.

svn path=/trunk/; revision=10870
2001-07-06 22:07:00 +00:00
2ed79f33bb Convert the filename string to UTF8 before setting it on the CamelMimePart
2001-07-06  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer-attachment.c (e_msg_composer_attachment_new):
	Convert the filename string to UTF8 before setting it on the
	CamelMimePart because that code expects it to be in UTF8.

svn path=/trunk/; revision=10869
2001-07-06 22:00:06 +00:00
a8fbf376d8 only ask if there are actually contents in the file. Asking about an
2001-07-06  Larry Ewing  <lewing@ximian.com>

	* e-msg-composer.c (autosave_manager_query_load_orphans): only ask
	if there are actually contents in the file.  Asking about an
	emptry fil is not very useful.
	(autosave_load_draft): add some sanity chacks.
	(autosave_run_foreach_cb): remove debugging warning.

svn path=/trunk/; revision=10863
2001-07-06 21:44:15 +00:00
6e6eb53b37 revert previous "fix", which was wrong
svn path=/trunk/; revision=10851
2001-07-06 18:56:29 +00:00
0d553dc97e Call autosave_manager_unregister before destroying the composer, so
* e-msg-composer.c (do_exit): Call autosave_manager_unregister
	before destroying the composer, so gtkhtml-editor-control doesn't
	try to act on a destroyed GtkHTML widget.
	(destroy): Remove the autosave_manager_unregister from here.

svn path=/trunk/; revision=10850
2001-07-06 18:24:02 +00:00
af72fc9468 make sure we only remove the file if we think we saved it properly.
2001-07-06  Larry Ewing  <lewing@ximian.com>

	* e-msg-composer.c (autosave_manager_unregister): make sure we
	only remove the file if we think we saved it properly.
	(autosave_manager_stop): make sure we set the timeout back to 0 so
	that we will restart next time since we stop the timer when there
	are no active composers.
	(destroy): move this to the beginning of the destroy process.
	(autosave_save_draft): add a return value indicating success.
	(autosave_manager_register): go ahead and ask next time.

svn path=/trunk/; revision=10839
2001-07-06 05:23:59 +00:00
2583bd0d41 i2001-07-05 Larry Ewing <lewing@ximian.com>
* e-msg-composer.c: add ask argment.
	(autosave_manager_query_load_orphans): move the load loop out of
	the dir reading loop.
	(autosave_manager_new): move initialization out or register.
	(autosave_manager_register): protect against recursion with ask.
	(init): call new, this still needs to be moved.

svn path=/trunk/; revision=10837
2001-07-06 00:50:03 +00:00
65fc784c44 Play the "File exists, overwrite?" game. (autosave_run_foreach_cb): Change
2001-07-05  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (save): Play the "File exists, overwrite?"
	game.
	(autosave_run_foreach_cb): Change the return val from a gboolean
	to void.

svn path=/trunk/; revision=10824
2001-07-05 19:44:39 +00:00
0e9fadc31d attach send and postpone handlers. and be more tolerant of errors.
2001-07-04  Larry Ewing  <lewing@ximian.com>

	* e-msg-composer.c (autosave_load_draft): attach send and postpone
	handlers. and be more tolerant of errors.

svn path=/trunk/; revision=10778
2001-07-04 07:42:32 +00:00
c904bd6580 make sure we seek to the begining.
2001-07-03  Larry Ewing  <lewing@ximian.com>

	* e-msg-composer.c (autosave_save_draft): make sure we seek to the
	begining.

svn path=/trunk/; revision=10773
2001-07-03 22:42:22 +00:00
ed46ce99fe remove the timer id.
2001-07-03  Larry Ewing  <lewing@ximian.com>

	* e-msg-composer.h: remove the timer id.

	* e-msg-composer.c: use autosave manager.
	(autosave_save_draft): moved initialization to
	autosave_init_file. Only save the buffer if we get a valid
	message.
	(autosave_load_draft): unlink the old file, we own it now. and
	unref the stream when we are done with it.
	(autosave_is_owned): check if we own the file, this needs to be
	extended to check for other valid processes.
	(autosave_query_load_orphans): make this search through the
	managers list as it walks the dir.
	(autosave_query_load_orphans): make sure we use the full path.
	(autosave_run_foreach_cb): timeout foreach handler.
	(autosave_run): the timeout function.
	(autosave_start): start timer.
	(autosave_stop): stop timer.
	(autosave_register): register a composer with the autosave manager.
	(autosave_unregister): unregister a composer.
	(destroy): unregister the composer, everything is okay.
	(init): register the composer.

svn path=/trunk/; revision=10762
2001-07-03 19:31:06 +00:00
23dd7a254c querythe user to check if they want to load any orphans we've found.
2001-07-02  Larry Ewing  <lewing@ximian.com>

	* e-msg-composer.c (autosave_query_load_orphans): querythe user to
	check if they want to load any orphans we've found.
	(autosave_query_cb): the dialog callback.
	(autosave_is_orphan): test if if a particular file is orphaned.
	(autosave_load_draft): load a message from an autosave file.
	(autosave_save_draft): save the current buffer to the autosave file.

svn path=/trunk/; revision=10761
2001-07-03 19:17:31 +00:00
b7dede1a27 use bonobo-conf everywhere
2001-07-03  Dietmar Maurer  <dietmar@ximian.com>

	* *: use bonobo-conf everywhere

svn path=/trunk/; revision=10760
2001-07-03 18:15:31 +00:00
fd6ad06df5 Made evolution depend on bonobo-conf 0.2.
2001-07-02  Christopher James Lahey  <clahey@ximian.com>

	* configure.in: Made evolution depend on bonobo-conf 0.2.

From calendar/ChangeLog:

2001-07-02  Christopher James Lahey  <clahey@ximian.com>

	* gui/Makefile.am (INCLUDES): Added $(BONOBO_CONF_CFLAGS).
	(evolution_calendar_LDADD): Added $(BONOBO_CONF_LIBS).

From composer/ChangeLog:

2001-07-02  Christopher James Lahey  <clahey@ximian.com>

	* Makefile.am (INCLUDES): Added $(BONOBO_CONF_CFLAGS).

From shell/ChangeLog:

2001-07-02  Christopher James Lahey  <clahey@ximian.com>

	* Makefile.am (INCLUDES): Added $(BONOBO_CONF_CFLAGS).
	(evolution_LDADD): Added $(BONOBO_CONF_LIBS).

svn path=/trunk/; revision=10718
2001-07-03 02:55:58 +00:00
e694ee7fff Set the user-chosen charset.
2001-07-02  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer-attachment-bar.c (attach_to_multipart): Set the
	user-chosen charset.

	* e-msg-composer.c (menu_change_charset_cb): New callback function
	to get the user-set charset.
	(init): Set the charset to NULL.
	(best_charset): Take a default_charset param that holds the value
	the user set for this particular message using the menu.
	(destroy): Free the charset.

svn path=/trunk/; revision=10704
2001-07-02 21:13:18 +00:00
9436b13bc0 Construct an e-charset-picker bonobo-ui menu.
2001-07-02  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (setup_ui): Construct an e-charset-picker
	bonobo-ui menu.

svn path=/trunk/; revision=10690
2001-07-02 18:19:06 +00:00
b6b1a2148d Touch all of our EDestinations before we unref them, updating the last-use
2001-06-30  Jon Trowbridge  <trow@ximian.com>

        * e-msg-composer-hdrs.c (set_recipients): Touch all of our
        EDestinations before we unref them, updating the last-use records
        in the addressbook.

svn path=/trunk/; revision=10627
2001-06-30 05:23:31 +00:00
abdd471509 make sure we show the sig file.
2001-06-29  Larry Ewing  <lewing@ximian.com>

	* mail-callbacks.c (create_msg_composer): make sure we show the
	sig file.

	* e-msg-composer.c (e_msg_composer_show_sig_file): remove now
	invalid argument in the documentation.

svn path=/trunk/; revision=10616
2001-06-30 02:01:38 +00:00
47c1ce6660 small cosmetic changes + added ChangeLog entries from last commit
2001-06-28  Radek Doulik  <rodo@ximian.com>

	* e-msg-composer.c: removed obsolete e_msg_composer_get_sig_file

	* e-msg-composer.h: removed sig_file field from EMsgComposer

	* e-msg-composer.c (e_msg_composer_get_sig_file_content): exported
	(get_file_content): make it const safe
	(e_msg_composer_get_sig_file_content): refactored, don't try to be
	clever about signature filename, as it's exact now
	(get_signature_html): use has_html_signature flag
	(e_msg_composer_show_sig_file): renamed from
	e_msg_composer_set_sig_file, removed sig_file parameter as it's
	obsolete now
	(e_msg_composer_new_with_sig_file): removed obsolete parameters

svn path=/trunk/; revision=10579
2001-06-28 21:07:54 +00:00