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-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 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-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-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-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-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 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 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 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-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-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 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 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 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-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 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-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-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-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-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-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-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-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
* 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-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-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
* 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
* 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
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