Commit Graph

2618 Commits

Author SHA1 Message Date
bc78d367b0 removed main.c from the build.
2003-03-10  Not Zed  <NotZed@Ximian.com>

        * Makefile.am (libevolution_mail_la_SOURCES): removed main.c from
        the build.

        * component-factory.c (component_factory_init): Remove, not used
        anymore, causes linking problems some places.
        (factory): Removed the debug printf.

svn path=/trunk/; revision=20226
2003-03-10 04:27:35 +00:00
0b5acb6141 All this snot just to fix bug #38925 and an attempt to fix bug #38926 (but
2003-03-07  Jeffrey Stedfast  <fejj@ximian.com>

	All this snot just to fix bug #38925 and an attempt to fix bug
	#38926 (but it seems no matter what I do, I can't work around the
	bonoboness/modality/whatever of the shell's preferences dialog).

	* mail-account-gui.c (sig_add_new_signature): Get the toplevel
	parent GtkWindow and pass that along to
	mail_composer_prefs_new_signature() so that window layering can be
	done correctly.

	* mail-composer-prefs.c (mail_composer_prefs_new_signature):
	Simplify. We don't want to add the signature to the list until
	after they have saved.
	(sig_edit_cb): Pass FALSE as the is_new argument to
	mail_signature_editor().
	(sig_event_client): Listen for signatures being added.
	(mail_composer_prefs_new_signature): Now takes a GtkWindow arg as
	the first arg rather than a MailComposerPrefs arg since we don't
	really need it to be a MailComposerPrefs object. We'd rather use
	the first arg as the parent GtkWindow so that we can set
	transience for the editor window.

	* mail-signature-editor.c (mail_signature_editor): Now takes a
	'parent' argument (so we can set transient_for()) and a 'is_new'
	argument specifying whether the editor is editing a new signature
	or not. If it is, when the user saves, it will be added to the
	signature list. otherwise it won't.
	(sig_name_changed): Only use the mail_config_signature_set_name()
	interface if it is *not* a new signature.
	(menu_file_save_cb): If is_new, then save the signature to the
	config - otherwise do what we did before and set the modifications
	to it and emit the CHANGED event.

	* mail-config.c (mail_config_signature_new): Renamed from
	mail_config_signature_add(). We no longer immediately add the
	signature to the list of saved signatures.
	(mail_config_signature_add): New function which adds the signature
	and emits the SIG_ADDED event.

svn path=/trunk/; revision=20221
2003-03-07 20:54:54 +00:00
36d9b4794e If the part url is a text part, use
2003-03-07  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-display.c (on_url_requested): If the part url is a text
	part, use mail_format_data_wrapper_write_to_stream(). This should
	fix bug #39204.

	* mail-format.c (mail_format_data_wrapper_write_to_stream): Make public.

svn path=/trunk/; revision=20219
2003-03-07 18:43:38 +00:00
b59d15607b (mail_accounts_treeview_new): Set the
shadow_type of the scrlled window to GTK_SHADOW_IN.

svn path=/trunk/; revision=20205
2003-03-06 18:01:41 +00:00
72a9c92228 Add some spacing to the buttons. [#38227]
svn path=/trunk/; revision=20204
2003-03-06 17:58:43 +00:00
1363750693 Use G_GNUC_FUNCTION instead of __FUNCTION__. (OUT): Likewise. Likewise.
* importers/evolution-mbox-importer.c (IN): Use G_GNUC_FUNCTION
instead of __FUNCTION__.
(OUT): Likewise.
* importers/netscape-importer.c (netscape_import_file): Likewise.
* mail-send-recv.c (receive_done): Likewise.
* mail-summary.c (SUMMARY_OUT): Likewise.
(SUMMARY_IN): Likewise.
(folder_changed_cb): Likewise.
(message_changed_cb): Likewise.

svn path=/trunk/; revision=20202
2003-03-06 17:27:48 +00:00
b85ba12a6c #include <string.h>
2003-03-06  Jeffrey Stedfast  <fejj@ximian.com>

	* folder-browser-factory.c: #include <string.h>

svn path=/trunk/; revision=20194
2003-03-06 15:34:30 +00:00
b327312920 Don't use __inline__ as not all platforms/compilers support this keyword.
2003-03-06  Jeffrey Stedfast  <fejj@ximian.com>

	* e-searching-tokenizer.c (camel_utf8_getc): Don't use __inline__
	as not all platforms/compilers support this keyword.
	(g): Same.

svn path=/trunk/; revision=20193
2003-03-06 15:32:24 +00:00
0cc70ca0f7 remove debug printf.
2003-03-06  Not Zed  <NotZed@Ximian.com>

	* component-factory.c (owner_unset_cb): remove debug printf.

svn path=/trunk/; revision=20168
2003-03-05 14:12:11 +00:00
b0deb6e8ac Removed old quit code. (owner_unset_cb): Make this call synchronous. Wont
2003-03-05  Not Zed  <NotZed@Ximian.com>

	* component-factory.c (idle_quit): Removed old quit code.
	(owner_unset_cb): Make this call synchronous.  Wont cover all
	cases but should be ok most of the time.

svn path=/trunk/; revision=20167
2003-03-05 13:48:41 +00:00
b7cc601332 Prototype some functions to shut the compiler up.
2003-03-04  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-search.c: Prototype some functions to shut the compiler up.

svn path=/trunk/; revision=20163
2003-03-04 22:38:47 +00:00
d833e66982 Go back to using e_destination_get_address() but use the camel-address
2003-03-04  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (composer_get_message): Go back to using
	e_destination_get_address() but use the camel-address parser on
	the strings to make sure they are non-empty. Fixes bug #37854.

svn path=/trunk/; revision=20137
2003-03-04 18:02:53 +00:00
e908d772d3 Use 'filename' when creating the uri rather than using the uninitialised
2003-03-03  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-signature-editor.c (menu_file_save_cb): Use 'filename' when
	creating the uri rather than using the uninitialised 'uri'
	variable to create itself. Fixes bug #38864.

svn path=/trunk/; revision=20125
2003-03-03 18:54:16 +00:00
5fa6f6bc8a Do the same as below for request_password, so we dont leave a mainloop
2003-03-03  Not Zed  <NotZed@Ximian.com>

        * mail-session.c (do_user_message): Do the same as below for
        request_password, so we dont leave a mainloop lying around.

2003-03-03  Jeffrey Stedfast  <fejj@ximian.com>

        * mail-session.c (request_password): Don't connect to the response
        signal if we are in the main thread - instead just use the return
        value from gtk_dialog_run and then call pass_response() with the
        response value.

svn path=/trunk/; revision=20122
2003-03-03 08:17:57 +00:00
819f5057c5 Remove the e_tree_memory_sort_node, currently it crashes inside gal, the
2003-03-03  Not Zed  <NotZed@Ximian.com>

        * subscribe-dialog.c (fe_got_children): Remove the
        e_tree_memory_sort_node, currently it crashes inside gal, the root
        node seems to get free'd under it.

svn path=/trunk/; revision=20120
2003-03-03 06:38:02 +00:00
36e3f76a67 Reverted back to using e-iconv
2003-02-26  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-preferences.c: Reverted back to using e-iconv

	* mail-composer-preferences.c: Same.

svn path=/trunk/; revision=20071
2003-02-26 18:08:52 +00:00
77427e635f add a repo_id and a priority level to the startup wizard
* GNOME_Evolution_Mail.server.in.in: add a repo_id and a priority
	level to the startup wizard

svn path=/trunk/; revision=20070
2003-02-26 17:57:36 +00:00
ce15f6d076 Reverted back to using e-iconv instead of camel-iconv.
2003-02-25  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-format.c: Reverted back to using e-iconv instead of
	camel-iconv.

svn path=/trunk/; revision=20060
2003-02-25 21:18:24 +00:00
5671315af5 Update for new EvolutionWizard interfaces.
* mail-config-druid.c: Update for new EvolutionWizard interfaces.

svn path=/trunk/; revision=20054
2003-02-25 15:46:39 +00:00
17d13191de Redo this to not use the CORBA interfaces in the local case (in
* mail-config-druid.c: Redo this to not use the CORBA interfaces
	in the local case (in preparation for redoing the CORBA
	interfaces).
	(mail_config_druid_new): Remove unused "shell" arg

	* mail-account-gui.c (mail_account_gui_transport_complete): Don't
	crash if there's no transport selected at all.
	(mail_account_gui_new): Don't try to set cc_addrs/bcc_addrs if
	they're NULL.

	* mail-accounts.c (account_add_clicked): Don't need to pass shell
	to mail_config_druid_new.

	* mail-callbacks.c (configure_mail): Don't need to pass shell to
	mail_config_druid_new.

svn path=/trunk/; revision=20051
2003-02-25 14:49:58 +00:00
f154a49a01 Make sure m->config_service is non-NULL before using
2003-02-24  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-session.c (request_password): Make sure m->config_service
	is non-NULL before using m->config_service->save_passwd since PGP
	stuff will not have a config_service. Fixes bug #38149.

	* mail-account-gui.c (mail_account_gui_save):
	s/e_account_list_changed/e_account_list_change - otherwise we get
	an undefined symbol and we crash :-)

svn path=/trunk/; revision=20043
2003-02-24 19:38:57 +00:00
9cd1c39bc5 Don't always append "[script]" to the signature name. Also cleaned up some
2003-02-24  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-composer-prefs.c (mail_composer_prefs_new_signature): Don't
	always append "[script]" to the signature name. Also cleaned up
	some memory leakage.

svn path=/trunk/; revision=20039
2003-02-24 18:55:57 +00:00
39d5d1df19 fix the g_snprintf stuff.
2003-02-20  Not Zed  <NotZed@Ximian.com>

        * mail-preferences.c (mail_preferences_apply): fix the g_snprintf
        stuff.

        * mail-config.c (mail_config_add_account): Use new
        e_account_list_add.
        (mail_config_remove_account): Use new e_account_list_remove.
        (mail_config_set_default_account): Similarly for
        e_account_list_set_default.
        (mail_config_get_default_account): Same for
        e_account_list_get_default.
        (mail_config_get_account_by_name): Use e_account_list_find.

        * mail-account-gui.c (mail_account_gui_save): use new
        e_account_list_changed call instead of manual signalling.

svn path=/trunk/; revision=20020
2003-02-24 03:10:37 +00:00
eea8bc47ec Set the local provider description field to a string rather than NULL to
2003-02-23  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-local.c: Set the local provider description field to a
	string rather than NULL to prevent a segfault on solaris. Fixes
	bug #38418.

svn path=/trunk/; revision=20007
2003-02-23 06:39:30 +00:00
91acf88e95 bitwise-or in CAMEL_MIME_FILTER_TOHTML_CONVERT_SPACES to fix bug #38499.
2003-02-23  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-format.c (write_text_header): bitwise-or in
	CAMEL_MIME_FILTER_TOHTML_CONVERT_SPACES to fix bug #38499.

svn path=/trunk/; revision=20006
2003-02-23 06:31:58 +00:00
59796eb93c New overloaded virtual method, does what dialog_destroy_cb was trying to
2003-02-23  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-search.c (mail_search_destroy): New overloaded virtual
	method, does what dialog_destroy_cb was trying to do.
	(mail_search_construct): Connect to the "response" signal rather
	than "clicked" to correspond to the GtkDialog API
	(instead og the old GnomeDialog API).
	(dialog_response_cb): Changed the function name and made it check
	button == GTK_RESPONSE_ACCEPT to search, any other button
	closes. Fixes bug #37947.

svn path=/trunk/; revision=20005
2003-02-23 05:03:18 +00:00
81a5255f6d Don't try to get a FontPrefs control.
2003-02-21  Hans Petter Jansson  <hpj@ximian.com>

	* component-factory.c (factory): Don't try to get a FontPrefs control.

	* mail-config-factory.c (mail_config_control_factory_cb): Just return
	NULL if a FontPrefs control was requested.

	* mail-config.c (mail_config_get_default_account): If no accounts
	are defined, don't try to set the default account.

svn path=/trunk/; revision=19996
2003-02-22 00:44:47 +00:00
d40f089a70 Make libversit a shared library, update stuff for that, and clean up
some LDADDs in the process

svn path=/trunk/; revision=19994
2003-02-21 21:24:34 +00:00
80906889c2 Use tables instead of vboxes, so that groups of label/entry pairs (as in
* mail-account-gui.c (mail_account_gui_build_extra_conf): Use
	tables instead of vboxes, so that groups of label/entry pairs (as
	in Connector's config page) can line up nicely.

	* mail-config.glade: Turn extra_vbox and extra_mailcheck_vbox into
	tables.

	* mail-config-druid.c (get_fn): s/extra_vbox/extra_table/

	* Makefile.am (libevolution_mail_la_LIBADD):
	s/libcomposer.a/libcomposer.la/

svn path=/trunk/; revision=19993
2003-02-21 19:05:57 +00:00
d2dd873c5e Use camel_folder_free_uids().
2003-02-20  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (mark_all_as_seen): Use
	camel_folder_free_uids().

svn path=/trunk/; revision=19986
2003-02-20 22:45:34 +00:00
41f1a39d58 Use camel_charset_canonical_name() here instead of e_iconv_charset_name().
2003-02-20  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-format.c (write_headers): Use
	camel_charset_canonical_name() here instead of
	e_iconv_charset_name().

	* mail-preferences.c (mail_preferences_construct): Same as below.
	(mail_preferences_apply): Again here.

	* mail-composer-prefs.c (mail_composer_prefs_construct): Use
	camel_charset_locale_name() here instead of
	e_iconv_locale_charset().
	(mail_composer_prefs_apply): Same.

svn path=/trunk/; revision=19978
2003-02-20 21:35:59 +00:00
986f2ace07 Make libemiscwidgets, libefilterbar, and libetimezonedialog dynamic
libraries, so they can be portably linked into the (shared library)
components. (Part 1 of N.)

svn path=/trunk/; revision=19971
2003-02-20 16:48:43 +00:00
fa7d7fa8b4 Fixed a memory leak - make sure to free all uids.
2003-02-18  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (mark_all_as_seen): Fixed a memory leak - make
	sure to free all uids.

svn path=/trunk/; revision=19936
2003-02-18 20:55:42 +00:00
2f46886814 Removed. (lookup_signature): Removed. (xml_get_int): Removed.
2003-02-18  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-config.c (uri_to_key): Removed.
	(lookup_signature): Removed.
	(xml_get_int): Removed.
	(xml_get_bool): Removed.
	(mail_config_get_time_24hour): Removed.

	* evolution-mail.schemas: s/long/int/g and change default_account
	to be a string instead of an int.

	* mail-config.c (mail_config_get_default_account): default_account
	now uses the account uid, so change the code a bit to match uid
	strings rather than use an index.
	(mail_config_remove_account): Same here. simplifies the code a
	bunch.
	(mail_config_set_default_account): Here too.

	* folder-browser-ui.c (folder_browser_ui_setup_view_menus): Update
	the GalView path.

svn path=/trunk/; revision=19932
2003-02-18 20:11:01 +00:00
4d98f14113 Change the logic here slightly. Instead of only reprompting the user if
2003-02-14  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-session.c (do_get_pass): Change the logic here
	slightly. Instead of only reprompting the user if the cache is
	empty, also reprompt the user if the backend is forcing a
	reprompt.
	(request_password): If we have a cached passwd string for the
	account, fill-in the GtkEntry box with that value by
	default. This, together with the camel changes, fixes the
	"Evolution forgets my POP passwd if it gets a -ERR response during
	the login phase" bug.

svn path=/trunk/; revision=19911
2003-02-14 20:10:15 +00:00
31dc41be37 #include <stdio.h>
2003-02-13  Jeffrey Stedfast  <fejj@ximian.com>

	* e-searching-tokenizer.c: #include <stdio.h>

	* mail-config-factory.c: #include <string.h>

	* mail-config-druid.c (identity_prepare): Use
	gtk_editable_select_region() since gtk_entry_select_region() has
	been deprecated.
	(construct): Use gtk_window_set_resizable() instead of
	gtk_window_set_policy().
	(wizard_free): account_destroy() is no longer around, use
	g_object_unref() instead. (how did this even compile before?)

	* mail-account-gui.c (mail_account_gui_build_extra_conf): Use
	gtk_label_set_text_with_mnemonic() instead of
	gtk_label_parse_uline() as the latter has been deprecated.

svn path=/trunk/; revision=19905
2003-02-13 20:31:50 +00:00
8fea59137c Removed unused variables.
2003-02-12  Jeffrey Stedfast  <fejj@ximian.com>

	* importers/netscape-importer.c: Removed unused variables.

	* importers/pine-importer.c: Removed unused variables.
	(parse_address): Removed - it's unused and we have CamelAddress
	available to us anyway.

	* importers/elm-importer.c: Removed unused variables.

	* importers/evolution-mbox-importer.c (load_file_fn): Removed an
	unused variable.

svn path=/trunk/; revision=19896
2003-02-12 20:16:36 +00:00
3fa465c9d7 Use gtk_window_set_resizable() instead of gtk_window_set_policy().
2003-02-11  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-editor.c (construct): Use
	gtk_window_set_resizable() instead of gtk_window_set_policy().

	* mail-config.c: Fix a bunch of warnings.
	(mail_config_signature_write): Removed.

	* mail-callbacks.c: Removed unused variables.

svn path=/trunk/; revision=19885
2003-02-11 22:14:49 +00:00
cdb6418008 Register a destroy virtual method. (mail_accounts_tab_destroy): Set
2003-02-11  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-accounts.c (mail_accounts_tab_class_init): Register a
	destroy virtual method.
	(mail_accounts_tab_destroy): Set mail_display->destroyed = TRUE.

	* message-list.c (message_list_destroy): Set
	mail_display->destroyed = TRUE. This is a workaround for the
	GTK_OBJECT_DESTROYED() macro that we used to use before.

svn path=/trunk/; revision=19884
2003-02-11 21:20:43 +00:00
de02508770 Set mail_display->destroyed = TRUE. This is a workaround for the
2003-02-11  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-display.c (mail_display_destroy): Set
	mail_display->destroyed = TRUE. This is a workaround for the
	GTK_OBJECT_DESTROYED() macro that we used to use before.

svn path=/trunk/; revision=19883
2003-02-11 20:45:27 +00:00
0701addc19 Use g_signal_emit() rather than gtk_signal_emit(). (build_flat): Same
2003-02-10  Jeffrey Stedfast  <fejj@ximian.com>

	* message-list.c (build_tree): Use g_signal_emit() rather than
	gtk_signal_emit().
	(build_flat): Same here.

	* mail-signature-editor.c: #include <string.h>

	* mail-vfolder.c: #include <string.h>

	* mail-session.c: #include <string.h>

	* mail-search.c: #include <string.h>

	* mail-mt.c: #include <string.h>

	* mail-ops.c (save_part_save): Use strcasecmp() instead of
	g_strcasecmp().

	* mail-local.c: #include <string.h>
	(reconfigure_folder_reconfigured): Use a GtkDialog instead of
	gnome_error_dialog().

	* mail-format.c (find_preferred_alternative): Use g_ascii_strdown
	since g_strdown is deprecated.
	(fake_mime_part_from_data): Removed, no longer used it seems.
	(destroy_part): Also removed.

	* mail-display.c (make_popup_window): Replace call to
	gtk_window_set_polociy() with gtk_window_set_resizable() instead.
	(popup_size_allocate_cb): Use gtk_window_set_position() with
	GTK_WIN_POS_MOUSE instead of calculating the position to put it
	in.

svn path=/trunk/; revision=19878
2003-02-10 19:50:55 +00:00
24d00dba85 Split the ORBit IDL compilation rules to work properly with parallel
* importers/Makefile.am: Split the ORBit IDL compilation rules to
work properly with parallel makes.
(BUILT_SOURCES): Add this.
(CLEANFILES): Add this.

* Makefile.am: Split the ORBit IDL compilation rules to work
properly with parallel makes.
(BUILT_SOURCES): Add $(IDL_GENERATED) here.
(CLEANFILES): Remove from here.

svn path=/trunk/; revision=19874
2003-02-10 17:39:10 +00:00
13515cf674 Add LDFLAGS to ported libs
2003-02-10  Rodney Dawes  <dobey@ximian.com>

	* importers/Makefile.am: Add LDFLAGS to ported libs

svn path=/trunk/; revision=19867
2003-02-10 14:53:09 +00:00
e83af287b2 look in the http cache for images when saving (image_save_as): remove
2003-02-10  Larry Ewing  <lewing@ximian.com>

	* mail-display.c (save_url): look in the http cache for images
	when saving
	(image_save_as): remove random warning.
	(do_external_viewer): remove unused variable.
	(do_attachment_header): use g_ascii_strdown

svn path=/trunk/; revision=19864
2003-02-10 07:08:42 +00:00
a3fb0b3114 don't use random memory as a gconf client.
2003-02-07  Larry Ewing  <lewing@ximian.com>

	* mail-display.c (save_data_cb): don't use random memory as a
	gconf client.

svn path=/trunk/; revision=19848
2003-02-07 21:58:04 +00:00
0f8f0ea3c6 track change to e_book_load_uri type.
2003-02-06  Chris Toshok  <toshok@ximian.com>

	* importers/pine-importer.c (import_addressbook): track change to
	e_book_load_uri type.

svn path=/trunk/; revision=19840
2003-02-07 07:19:46 +00:00
79be1b28d3 (on_right_click): Use
e_auto_kill_popup_menu_on_selection_done() instead of
e_auto_kill_popup_menu_on_hide().

svn path=/trunk/; revision=19837
2003-02-06 23:25:38 +00:00
be2641bebc Fix EVOLUTION_ICONSDIR
svn path=/trunk/; revision=19825
2003-02-06 19:05:08 +00:00
8b11adc287 add EVOLUTION_PRIVDATADIR
* Makefile.am (INCLUDES): add EVOLUTION_PRIVDATADIR

	* component-factory.c (owner_set_cb): Use EVOLUTION_PRIVDATADIR
	* mail-autofilter.c (filter_gui_add_from_message): Likewise
	(mail_filter_rename_uri): Likewise
	(mail_filter_delete_uri): Likewise
	* mail-callbacks.c (filter_edit): Likewise.
	* mail-search-dialogue.c (mail_search_dialogue_construct):
	Likewise
	* mail-session.c (main_get_filter_driver): Likewise
	* mail-summary.c (generate_folder_summaries): Likewise
	* mail-vfolder.c (vfolder_load_storage): Likewise

svn path=/trunk/; revision=19824
2003-02-06 18:44:33 +00:00
d0ead0c4a9 s/PACKAGE/GETTEXT_PACKAGE/ in gettext init
svn path=/trunk/; revision=19818
2003-02-06 17:26:04 +00:00