Commit Graph

373 Commits

Author SHA1 Message Date
5f5b342dbd Bumped the version number to 0.15.99.1.
2001-10-18  Christopher James Lahey  <clahey@ximian.com>

	* configure.in: Bumped the version number to 0.15.99.1.

	* gal/util/e-util.c, gal/util/e-util.h (e_write_file_mkstemp): New
	function to create a unique file.
	(e_write_file): Check the return value of close here.

svn path=/trunk/; revision=13772
2001-10-18 21:10:04 +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
6
6e9c98ceef Want to check nn not in for end of list condition.
2001-10-16    <NotZed@Ximian.com>

        * gal/util/e-iconv.c (flush_entry): Want to check nn not in for
        end of list condition.

svn path=/trunk/; revision=13699
2001-10-16 19:44:09 +00:00
063f8d21af work around broken behavior in some iconv implementions that require the
2001-10-13  Larry Ewing  <lewing@ximian.com>

	* gal/util/e-iconv.c (e_iconv_open): work around broken behavior
	in some iconv implementions that require the length arguments to
	be valid pointers event if both buffers are NULL.

svn path=/trunk/; revision=13665
2001-10-14 01:08:07 +00:00
f5b66ae847 Added special case for iso-10646-1 -> ucs-2be encoding since its not
2001-10-14  Not Zed  <NotZed@Ximian.com>

	* gal/util/e-iconv.c: Added special case for iso-10646-1 ->
	ucs-2be encoding since its not always available.

svn path=/trunk/; revision=13663
2001-10-13 18:56:38 +00:00
71f512b570 (flush_entry): free the conv string and make sure we remove all the the
2001-10-12  Larry Ewing  <lewing@ximian.com>

	(flush_entry): free the conv string and make sure we remove all
	the the items not all but the last one.

svn path=/trunk/; revision=13652
2001-10-13 04:05:00 +00:00
2d46a24438 fix the test for "cp".
2001-10-12  Larry Ewing  <lewing@ximian.com>

	* gal/util/e-iconv.c (e_iconv_charset_name): fix the test for
	"cp".

svn path=/trunk/; revision=13651
2001-10-13 02:39:27 +00:00
b6d1043499 Fix for Debian systems which apparently can use a ';' as a codeset
2001-10-12  Jeffrey Stedfast  <fejj@ximian.com>

	* gal/util/e-iconv.c (e_iconv_init): Fix for Debian systems which
	apparently can use a ';' as a codeset terminator? Cleaned up the
	code in the process, the parser is a little nicer now.

svn path=/trunk/; revision=13650
2001-10-13 02:29:25 +00:00
8a59f7a4e9 (e_iconv_charset_name): fix microsoft fix.
2001-10-12  Larry Ewing  <lewing@ximian.com>

(e_iconv_charset_name): fix microsoft fix.

svn path=/trunk/; revision=13649
2001-10-13 02:22:35 +00:00
35ee1586fc tweak the conversion routine slightly for microsoft charsets.
2001-10-12  Larry Ewing  <lewing@ximian.com>

	* gal/util/e-iconv.c (e_iconv_charset_name): tweak the conversion
	routine slightly for microsoft charsets.

svn path=/trunk/; revision=13648
2001-10-13 02:13:20 +00:00
2
d3f0028320 Fix case of some entries to work with solaris, incl adding UTF-8.
2001-10-12    <NotZed@Ximian.com>

        * gal/util/e-iconv.c: Fix case of some entries to work with
        solaris, incl adding UTF-8.
        (e_iconv_init): Dont down-case the name, only the key.
        (e_iconv_charset_name): Use capitals for ISO and CP for Solaris's
        iconv to work.
        (e_iconv_open): If we can't convert, say we're not busy, so it
        gets re-used next open, spit out a warning.

svn path=/trunk/; revision=13638
2001-10-12 22:27: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
1534d99bbd Changed the crash fix to just return -1.
2001-10-12  Christopher James Lahey  <clahey@ximian.com>

	* gal/util/e-iconv.c (e_iconv_open): Changed the crash fix to just
	return -1.

svn path=/trunk/; revision=13629
2001-10-12 21:32:42 +00:00
2025fe2753 Fixed a crash here for NULL ofrom.
2001-10-12  Christopher James Lahey  <clahey@ximian.com>

	* gal/util/e-iconv.c (e_iconv_open): Fixed a crash here for NULL
	ofrom.

svn path=/trunk/; revision=13622
2001-10-12 15:54:04 +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
d80806e8e8 Left in some test code, shit.
svn path=/trunk/; revision=13606
2001-10-11 23:15:12 +00:00
25e7651b80 missed locale.h for some system that requires it.
svn path=/trunk/; revision=13605
2001-10-11 23:02:20 +00:00
1
736e73548c bumped revision to .1
2001-10-11    <NotZed@Ximian.com>

	* configure.in: bumped revision to .1

	* gal/widgets/test-font-loading.c (print_gdk_font_name): Close
	iconv when done.

	* gal/widgets/e-unicode.c (e_utf8_to_gtk_string_sized): Close
	iconv when dont with it.
	(e_utf8_from_charset_string_sized): Changed for e_iconv api
	changes.
	(e_utf8_to_charset_string_sized): "
	(e_utf8_from_gtk_string_sized): Close iconv when done with it.
	(e_utf8_from_locale_string_sized): "
	(e_utf8_to_locale_string_sized): "

	* gal/widgets/e-font.c (e_locale_encoding): Removed.
	(e_iconv_from_charset): Removed.
	(e_iconv_to_charset): Removed.
	(e_iconv_from_locale): Removed.
	(e_iconv_to_locale): Removed.
	(e_iconv_from_gdk_font): Changd to use new e-iconv apis.
	(e_iconv_to_gdk_font): "
	(e_font_unref): Close iconv's when done with them.
	(translate_encoding): Removed.
	(get_locale_charset): Removed.
	(e_gdk_font_encoding): Fix for api changes.

	* gal/util/e-iconv.c: New stuff to commonify/fix up some problems
	with the iconv cache/conversion stuff inside e-font.

svn path=/trunk/; revision=13601
2001-10-11 22:07:28 +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
a035cd8f33 Based on patches from Fredrik Nilsson <jymdman@home.se>.
2001-10-11  Christopher James Lahey  <clahey@ximian.com>

	Based on patches from Fredrik Nilsson <jymdman@home.se>.

	* gal/util/e-util.c (e_format_number): Made this work properly for
	numbers with a full set of 0s for one of the grouping elements.

svn path=/trunk/; revision=13586
2001-10-11 18:08:54 +00:00
69b2e6d8ee Use e_strdup_append_strings here instead of g_strdup_printf because
2001-10-11  Christopher James Lahey  <clahey@ximian.com>

	* gal/e-text/e-table-text-model.c (e_table_text_model_insert,
	e_table_text_model_insert_length, e_table_text_model_delete),
	gal/e-text/e-text-model.c (e_text_model_real_insert,
	e_text_model_real_insert_length): Use e_strdup_append_strings here
	instead of g_strdup_printf because printf("%.*s") is locale
	dependent on some systems.

	* gal/util/e-util.c (e_strdup_append_strings): New function to
	append a bunch of strings with optional lengths.

svn path=/trunk/; revision=13581
2001-10-11 16:17:41 +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
8c8bf81c61 New function that parses a string as a double either in the C locale or
2001-10-06  Christopher James Lahey  <clahey@ximian.com>

	* gal/util/e-util.c, gal/util/e-util.h (e_flexible_strtod): New
	function that parses a string as a double either in the C locale
	or the current locale.
	(e_ascii_dtostr): New function that saves a double as a string as
	it would be saved in the C locale.

	* gal/util/e-xml-utils.c
	(e_xml_get_double_prop_by_name_with_default): Use
	e_flexible_strtod here.
	(e_xml_set_double_prop_by_name): Use e_ascii_dtostr here.

svn path=/trunk/; revision=13479
2001-10-06 14:23:10 +00:00
bdc4787aef *.c s/->childs/->xmlChildrenNode/g;
2001-10-06  Michael Meeks  <michael@ximian.com>

	* *.c s/->childs/->xmlChildrenNode/g;

svn path=/trunk/; revision=13431
2001-10-05 01:48:39 +00:00
c5f392ca0e add E_OBJECT_CLASS_ADD_SIGNALS and E_OBJECT_CLASS_TYPE to ease migration
2001-10-05  Michael Meeks  <michael@ximian.com>

	* gal/util/e-util.h: add E_OBJECT_CLASS_ADD_SIGNALS and
	E_OBJECT_CLASS_TYPE to ease migration to Gnome 2.0 from
	a single source base.

	* All C files:
	s/object_class->type,/E_OBJECT_CLASS_TYPE (object_class),/g;
	s/gtk_object_class_add_signals([^\(]*)\(([^,]*),([^,]*),([^\)]*)/
	E_OBJECT_CLASS_ADD_SIGNALS\1(\2,\3,\4/;

svn path=/trunk/; revision=13428
2001-10-04 23:52:20 +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
8f6ee6cb9b Don't handle control-enter if allow_newlines is off. Fixes Ximian bug
2001-10-02  Christopher James Lahey  <clahey@ximian.com>

	* gal/util/e-text-event-processor-emacs-like.c
	(e_text_event_processor_emacs_like_event): Don't handle
	control-enter if allow_newlines is off. Fixes Ximian bug #3742.

svn path=/trunk/; revision=13345
2001-10-02 19:27:47 +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
12ecaf7cef Bumped the version number to 0.12.99.0.
2001-09-22  Christopher James Lahey  <clahey@ximian.com>

	* configure.in: Bumped the version number to 0.12.99.0.

	From a patch by Damian Ivereigh <damian@cisco.com>:

	* gal/util/e-util.c, gal/util/e-util.h (e_strftime_fix_am_pm): New
	function, takes the same arguments as strftime, but does some
	fixup if the given string is in 12 hour mode but the locale
	doesn't have AM/PM descriptors.

From gal/e-table/ChangeLog:

2001-09-22  Christopher James Lahey  <clahey@ximian.com>

	From a patch by Damian Ivereigh <damian@cisco.com>:

	* e-cell-date.c: Made this use e_strftime_fix_am_pm instead of
	strftime.

svn path=/trunk/; revision=13081
2001-09-22 19:03:48 +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
6fe66715f9 Fixed a typo here. esa->rows += count, not esa->rows = count.
2001-09-19  Christopher James Lahey  <clahey@ximian.com>

	* gal/util/e-sorter-array.c (e_sorter_array_append): Fixed a typo
	here.  esa->rows += count, not esa->rows = count.

svn path=/trunk/; revision=12991
2001-09-19 22:07:48 +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
87b3e9277f Patch to fix few 64bit issues
Tue Aug 28 18:29:28 2001  George Lebl <jirka@5z.com>

	Patch to fix few 64bit issues

	* gal/e-table/e-table-header-item.c (ethi_draw) (ethi_start_drag)
	  gal/widgets/e-categories.c (e_categories_value_at)
	  (e_categories_value_to_string):
	  Use GINT_TO_POINTER and GPOINTER_TO_INT to cast between pointers
	  and ints to fix 64bit issues connected with that.

	* gal/e-table/e-table-sorting-utils.c
	  (e_table_sorting_utils_tree_check_position)
	  gal/util/e-sorter-array.c (e_sorter_array_append):
	  Use size_t for size not ints to fix crashes

	* gal/e-text/e-completion-match.c, gal/e-text/e-completion.c:
	  Include <string.h>

svn path=/trunk/; revision=12507
2001-08-29 01:30:26 +00:00