Commit Graph

242 Commits

Author SHA1 Message Date
2ea98fb813 plug leak
2001-10-22  JP Rosevear  <jpr@ximian.com>

	* e-pilot-map.c (map_set_node_timet): plug leak

svn path=/trunk/; revision=13945
2001-10-23 17:40:27 +00:00
6a76e39e37 Change " " to "&nbsp;" at start of line.
* e-html-utils.c (e_text_to_html_full): Change " " to "&nbsp;" at
	start of line.

svn path=/trunk/; revision=13940
2001-10-23 13:54:38 +00:00
44faa44bff Pass a CORBA_Environment to bonobo_config_get_string so it doesn't g_warn
* e-passwords.c (e_passwords_get_password): Pass a
	CORBA_Environment to bonobo_config_get_string so it doesn't g_warn
	on error. (Since the "error" is most likely just that the password
	isn't cached.)
	(e_passwords_remember_password, e_passwords_get_password,
	e_passwords_add_password): Change "if (foo) { entire function; }"
	to "if (!foo) return;"

	* e-html-utils.c (special_chars): Don't allow single quote or
	backtick in email addresses, or pipes following URLs.

svn path=/trunk/; revision=13887
2001-10-22 18:46:46 +00:00
3b3c44b51c null out DBT memory prior to usage (from Edd Dumbill <edd@usefulinc.com>)
2001-10-22  JP Rosevear  <jpr@ximian.com>

	* e-dbhash.c (e_dbhash_foreach_key): null out DBT memory prior to
	usage (from Edd Dumbill <edd@usefulinc.com>)

svn path=/trunk/; revision=13869
2001-10-22 13:54:12 +00:00
cb0ed21028 Fix the WM problems related to the folder selection dialog being
out-of-proc.  Now it can be set to be a transient window correctly,
and fakes its WindowGroup hint appropriately.

svn path=/trunk/; revision=13765
2001-10-18 19:58:22 +00:00
1641994074 new parameter to e_passwords_init, and add prototype for
2001-10-12  Chris Toshok  <toshok@ximian.com>

	* e-passwords.h: new parameter to e_passwords_init, and add
	prototype for e_passwords_clear_component_passwords.

	* e-passwords.c (e_passwords_init): copy off the component name.
	(e_passwords_shutdown): free/NULL the component name.
	(e_passwords_clear_component_passwords): new function.  remove the
	subtree rooted at /Passwords/<ComponentName>.
	(e_passwords_remember_password): use component_name when building
	up the path.
	(e_passwords_get_password): same.
	(e_passwords_add_password): remove/free the currently stored
	session password for this key if there is one, before adding the
	new one.

svn path=/trunk/; revision=13637
2001-10-12 22:19:34 +00:00
88e80089d1 change prototype for e_passwords_get_password.
2001-10-11  Chris Toshok  <toshok@ximian.com>

	* e-passwords.h: change prototype for e_passwords_get_password.

	* e-passwords.c (e_passwords_get_password): remove 'const' from
	return type - the return type is now allocated and must be freed
	by the caller.

svn path=/trunk/; revision=13608
2001-10-12 02:01:38 +00:00
7d7fcc9aea open the bonobo config db for our passwords. (e_passwords_shutdown): sync
2001-10-11  Chris Toshok  <toshok@ximian.com>

	* e-passwords.c (e_passwords_init): open the bonobo config db for
	our passwords.
	(e_passwords_shutdown): sync and unref the bonobo db, and clear
	out the per session hash.
	(e_passwords_forget_passwords): remove the bonobo config db
	/Passwords path, and free up the session hash (but don't destroy
	it).
	(e_passwords_remember_password): remove the key/value from the
	session hash, after inserting it into the bonobo db.
	(e_passwords_get_password): look up a session password for the
	uri, and if it's not there, consult the bonobo db.
	(e_passwords_ask_password): quiet gcc's warnings, and only consult
	the toggle button state if we actaully created it.

svn path=/trunk/; revision=13598
2001-10-11 20:13:23 +00:00
20d8a18413 don't add the host if it's null
2001-10-09  Rodrigo Moya <rodrigo@ximian.com>

	* e-url.c (e_uri_to_string): don't add the host if it's null

svn path=/trunk/; revision=13526
2001-10-09 18:40:20 +00:00
f7f5a3032f Made this refuse to parse more than 2047 characters of address.
2001-10-06  Christopher James Lahey  <clahey@ximian.com>

	* ename/e-address-western.c (e_address_western_parse): Made this
	refuse to parse more than 2047 characters of address.

svn path=/trunk/; revision=13484
2001-10-06 16:30:54 +00:00
59b0684415 Make this dup the strings it's passed. (*) Add lots of docs.
* e-passwords.c (e_passwords_add_password): Make this dup the
	strings it's passed.
	(*) Add lots of docs.

svn path=/trunk/; revision=13409
2001-10-04 17:45:42 +00:00
a9155f28dd Fixed typo in the ChangeLog
svn path=/trunk/; revision=13378
2001-10-03 16:53:38 +00:00
818f16f74f default protocol to file: if not specified
2001-10-03  Rodrigo Moya <rodrigo@ximian.com>

	* e-url.c (e_url_new): default protocol to file: if not specified

svn path=/trunk/; revision=13377
2001-10-03 16:51:50 +00:00
2bef0f376d duplicate also the params member
2001-10-02  Rodrigo Moya <rodrigo@ximian.com>

	* e-url.c (e_uri_copy): duplicate also the params member

svn path=/trunk/; revision=13303
2001-10-02 14:50:59 +00:00
8828ff2fa3 new functions
2001-10-02  Rodrigo Moya <rodrigo@ximian.com>

	* e-url.[ch] (e_uri_copy, e_uri_to_string): new functions

svn path=/trunk/; revision=13301
2001-10-02 14:40:45 +00:00
f3730d9037 added basic URI management functions
2001-10-01  Rodrigo Moya <rodrigo@ximian.com>

	* e-url.[ch]: added basic URI management functions

	* Makefile.am: added BONOBO flags to make it compile with latest
	Bonobo, which installs headers in a version-based directory

svn path=/trunk/; revision=13274
2001-10-01 19:25:06 +00:00
d74b078aeb New, copied/renamed from mailer and gnome-libs.
* e-passwords.c (e_passwords_ask_password): New, copied/renamed
	from mailer and gnome-libs.

svn path=/trunk/; revision=13261
2001-10-01 16:27:02 +00:00
2491a3506c add e-passwords.[ch]
2001-09-30  Chris Toshok  <toshok@ximian.com>

	* Makefile.am (libeutil_la_SOURCES): add e-passwords.[ch]

svn path=/trunk/; revision=13253
2001-09-30 06:07:18 +00:00
432496bdf0 copy/rename the mail specific password stuff here.
2001-09-30  Chris Toshok  <toshok@ximian.com>

	* e-passwords.c: copy/rename the mail specific password stuff
	here.

	* e-passwords.h: same.

svn path=/trunk/; revision=13252
2001-09-30 05:16:25 +00:00
8
2ca8993160 Write the pipe notification outside the lock. This way if the pipe fills
2001-09-28    <NotZed@Ximian.com>

	* e-msgport.c (e_msgport_put): Write the pipe notification outside
	the lock.  This way if the pipe fills up because of too many
	outstanding request, the queue isn't deadlocked.  This only
	happens wiht 4096 outstanding messages, so something is getting
	VERY busy!  Fixes #11121.

svn path=/trunk/; revision=13218
2001-09-28 18:38:45 +00:00
e779a92583 Make the printouts here conditionally compiled out.
2001-09-24  Christopher James Lahey  <clahey@ximian.com>

	* e-categories-master-list-wombat.c (ecmlw_load, ecmlw_save): Make
	the printouts here conditionally compiled out.

svn path=/trunk/; revision=13100
2001-09-24 21:15:59 +00:00
1
03238847a7 Instead of using pthread_cancel() which seems to have numerous
2001-09-21    <NotZed@Ximian.com>

	* e-msgport.c (e_thread_destroy): Instead of using
	pthread_cancel() which seems to have numerous implementation
	issues, send a special quit message to the subordinate thread.
	(thread_dispatch): When it gets a quit message, well, quit!

svn path=/trunk/; revision=13043
2001-09-21 05:56:03 +00:00
26d26391da Use ->bin_window [instead of ->window] if the widget is a GtkLayout.
* e-gtk-utils.c (widget_realize_callback_for_backing_store): Use
->bin_window [instead of ->window] if the widget is a GtkLayout.

svn path=/trunk/; revision=12943
2001-09-18 18:48:36 +00:00
5772dcbe43 only use 1 format, so we are consistent everywhere. If we support multiple
2001-09-17  Damon Chaplin  <damon@ximian.com>

	* e-time-utils.c (e_time_parse_date): only use 1 format, so we are
	consistent everywhere. If we support multiple formats we have to
	support that in e_time_parse_date_and_time() which means an explosion
	of different formats. I don't think the alternatives are that useful,
	anyway.
	(e_time_parse_date_and_time): parse everything in one go, to avoid
	i18n problems. Also only use '%p' if the locale has am/pm strings.
	(e_time_parse_time): Only use '%p' if locale has am/pm strings.

svn path=/trunk/; revision=12924
2001-09-18 01:23:11 +00:00
f88ca730db Removed. (gtk_radio_button_select_nth): Removed.
* e-gtk-utils.c (gtk_radio_button_get_nth_selected): Removed.
(gtk_radio_button_select_nth): Removed.
(e_make_widget_backing_stored): New.

svn path=/trunk/; revision=12919
2001-09-17 23:21:20 +00:00
02fecf70e2 Make sure the dir pointer is non-NULL before using it.
2001-09-13  Jeffrey Stedfast  <fejj@ximian.com>

	* e-mktemp.c (e_mktemp_cleanup): Make sure the dir pointer is
	non-NULL before using it.

svn path=/trunk/; revision=12807
2001-09-13 19:42:28 +00:00
f6a949c349 Fix some broken calls to check_size that could result in memory corruption
* e-html-utils.c (e_text_to_html_full): Fix some broken calls to
	check_size that could result in memory corruption displaying short
	replies.

svn path=/trunk/; revision=12705
2001-09-08 16:34:21 +00:00
e14c614159 Add E_TEXT_TO_HTML_CITE, to prepend "> " to each line.
* e-html-utils.c (e_text_to_html_full): Add E_TEXT_TO_HTML_CITE,
	to prepend "> " to each line.

svn path=/trunk/; revision=12655
2001-09-06 19:47:46 +00:00
ab8885da53 Fix the check for the case when mkdir() returns EEXIST to check S_ISDIR on
* e-mktemp.c (get_path): Fix the check for the case when mkdir()
	returns EEXIST to check S_ISDIR on the right structure component.
	Fixes bug #8775.

svn path=/trunk/; revision=12644
2001-09-05 23:37:01 +00:00
e137371494 Added format for "7 PM" and equivalents. Fixes bug #7456.
2001-08-31  Federico Mena Quintero  <federico@ximian.com>

	* e-time-utils.c (e_time_parse_date_and_time): Added format for
	"7 PM" and equivalents.  Fixes bug #7456.
	(e_time_parse_time): Likewise.

svn path=/trunk/; revision=12549
2001-09-01 00:14:01 +00:00
0ed38b0d75 Dont call g_print with a NULL string. See bug #7396.
2001-08-28  Not Zed  <NotZed@Ximian.com>

	* e-categories-master-list-wombat.c (ecmlw_load): Dont call
        g_print with a NULL string.  See bug #7396.

svn path=/trunk/; revision=12498
2001-08-28 10:50:56 +00:00
2854f067ae robustification
svn path=/trunk/; revision=12468
2001-08-24 23:49:49 +00:00
7c6273ec2e Added e-mktemp.[c,h] to the build.
2001-08-24  Jeffrey Stedfast  <fejj@ximian.com>

	* Makefile.am: Added e-mktemp.[c,h] to the build.

	* e-mktemp.c (e_mktemp): A new wrapper around mktemp so that we
	can keep track of temp files for later cleanup.
	(e_mkstemp): Same but obviously for the mkstemp call.
	(e_mkdtemp): And finally a mkdtemp wrapper.

svn path=/trunk/; revision=12460
2001-08-24 22:36:52 +00:00
b74947b0a0 Added e-unicode-i18n.c and e-unicode-i18n.h.
* Makefile.am (libeutil_la_SOURCES): Added e-unicode-i18n.c and
e-unicode-i18n.h.

* e-unicode-i18n.[ch]: New files with two extra functions
(e_utf8_gettext, e_utf8_dgettext) and U_() macro.
Should be used instead of _() if we need UTF-8 string.

svn path=/trunk/; revision=12459
2001-08-24 22:18:06 +00:00
5461762966 Modified to accept and return UTF-8 string.
2001-08-23  Zbigniew Chyla  <cyba@gnome.pl>

	* e-request.c (e_request_string): Modified to accept and return UTF-8
	string.

svn path=/trunk/; revision=12442
2001-08-24 18:22:56 +00:00
0a672ffa44 added comments to help translators a bit.
2001-08-20  Damon Chaplin  <damon@ximian.com>

	* e-time-utils.c (e_time_parse_date): added comments to help
	translators a bit.

svn path=/trunk/; revision=12260
2001-08-20 07:32:12 +00:00
76ab4cd9fc return when there's no icon associated with the category
2001-08-09  Rodrigo Moya <rodrigo@ximian.com>

	* e-categories-config.c (e_categories_config_get_icon_for): return
	when there's no icon associated with the category

svn path=/trunk/; revision=11860
2001-08-10 00:27:11 +00:00
702df809d2 reworked to use the ECategoriesMasterListWombat class. Also, load
2001-08-09  Rodrigo Moya <rodrigo@ximian.com>

	* e-categories-config.c: reworked to use the ECategoriesMasterListWombat
	class. Also, load correctly images (fixes #6794)

svn path=/trunk/; revision=11856
2001-08-10 00:13:13 +00:00
8f3673b5fe Chain to the destroy handler in the parent class!
2001-08-09  Federico Mena Quintero  <federico@ximian.com>

	* e-categories-master-list-wombat.c (ecmlw_destroy): Chain to the
	destroy handler in the parent class!

	* e-list-iterator.c (e_list_iterator_destroy): Likewise.  Sigh.

	* e-list.c (e_list_destroy): Likewise.  Double sigh.

svn path=/trunk/; revision=11819
2001-08-09 06:24:27 +00:00
af262b103c New. New.
* e-dialog-utils.h: New.
* e-dialog-utils.c: New.

svn path=/trunk/; revision=11767
2001-08-08 08:17:00 +00:00
d682c4f31e New function to create a factory that creates separate component instances
* e-bonobo-factory-util.c
(e_bonobo_generic_factory_multi_display_new): New function to
create a factory that creates separate component instances for
different displays.

svn path=/trunk/; revision=11686
2001-08-05 04:30:33 +00:00
68518c1d98 p2001-08-03 Christopher James Lahey <clahey@ximian.com>
* e-list-iterator.c (e_list_iterator_next): Made it so that
	e_list_iterator_next goes to the first element if it's set to
	NULL.  This makes deleting the first element and then doing
	e_list_iterator_next go to the new first element.  Did the analogy
	for e_list_iterator_prev for completeness and consistency's sakes.
	Fixes Ximian bug #6057.

svn path=/trunk/; revision=11614
2001-08-03 14:43:58 +00:00
34706b4a56 Fixed the load statement here by just using array_from_string.
2001-08-01  Christopher James Lahey  <clahey@ximian.com>

	* e-categories-master-list-wombat.c (ecmlw_load): Fixed the load
	statement here by just using array_from_string.
	(ecmlw_save): Removed the part where we save the icons and colors
	since that's handled in the array_to_string function.  Fixes
	Ximian bug #4451.

svn path=/trunk/; revision=11561
2001-08-02 01:54:22 +00:00
216e27b012 memset everything to 0 (md5_to_dbt): ditto
2001-07-27  JP Rosevear  <jpr@ximian.com>

	* e-dbhash.c (string_to_dbt): memset everything to 0
	(md5_to_dbt): ditto

svn path=/trunk/; revision=11462
2001-07-27 22:14:12 +00:00
870148b22d use the 2 new category icons (16_category_suppliers.png and
2001-07-20  Rodrigo Moya <rodrigo@ximian.com>

	* e-categories-config.c (initialize_categories_config): use the 2
	new category icons (16_category_suppliers.png and
	16_category_time-and-expenses.png)

svn path=/trunk/; revision=11261
2001-07-20 15:40:15 +00:00
f215a6dd84 use the 2 new category icons
2001-07-19  Rodrigo Moya <rodrigo@ximian.com>

	* e-categories-config.c (initialize_categories_config): use the 2
	new category icons

svn path=/trunk/; revision=11232
2001-07-19 20:05:37 +00:00
6ddd675133 s/imagedir/imagesdir
2001-07-19  Rodrigo Moya <rodrigo@ximian.com>

	* Makefile.am: s/imagedir/imagesdir

svn path=/trunk/; revision=11224
2001-07-19 13:02:30 +00:00
eda30c6ad6 generate default configuration for icons-per-category the first time. And
2001-07-17  Rodrigo Moya <rodrigo@ximian.com>

	* e-categories-config.c (initialize_categories_config): generate
	default configuration for icons-per-category the first time. And
	use a global (for this file) Bonobo_ConfigDatabase

2001-07-16  Rodrigo Moya <rodrigo@ximian.com>

	* e-categories-config.c (e_categories_config_get_icon_for):
	(e_categories_config_get_icon_file_for):
	(e_categories_config_set_icon_file_for): use GdkPixbuf to load images

svn path=/trunk/; revision=11189
2001-07-18 00:55:04 +00:00
55eb097681 Generalized function for trying a number of strptime() formats on a
2001-07-16  Federico Mena Quintero  <federico@ximian.com>

	* e-time-utils.c (parse_with_strptime): Generalized function for
	trying a number of strptime() formats on a string.
	(e_time_parse_time): Use parse_with_strptime().
	(e_time_parse_date): New function, analogous to the previous one,
	but uses a number of date formats.

svn path=/trunk/; revision=11138
2001-07-16 21:26:12 +00:00
7e05144bba Added is_addr_char_no_pipes macro, which specifically does not consider
2001-07-12  Jon Trowbridge  <trow@ximian.com>

	* e-html-utils.c: Added is_addr_char_no_pipes macro, which
	specifically does not consider '|' ("pipe") to be a legal address
	character.
	(email_address_extract): Use is_addr_char_no_pipes when looking
	for e-mail addresses to turn into HTML links. (Bug #3940)

svn path=/trunk/; revision=11029
2001-07-12 05:42:49 +00:00