Commit Graph

62 Commits

Author SHA1 Message Date
8d6bc9e331 Fix for 47474 e_filename_make_safe routine not utf8 friendly.
2003-08-20  Suresh Chandrasekharan  <suresh.chandrasekharan@sun.com>

	* gal/util/e-util.c (e_filename_make_safe): Fix for 47474
	e_filename_make_safe routine not utf8 friendly.

svn path=/trunk/; revision=22321
2003-08-21 01:27:10 +00:00
447b846a9b check null after conversions. (e_utf8_strftime_fix_am_pm): ditto. fixes
2003-07-09  Mike Kestner  <mkestner@ximian.com>

	* gal/util/e-util.c (e_utf8_strftime): check null after conversions.
	(e_utf8_strftime_fix_am_pm): ditto.  fixes [44904].

svn path=/trunk/; revision=21771
2003-07-09 15:40:23 +00:00
f0a3dbe3e7 mangle the %'s out too so that libxml2 doesn't convert the encoded hex
2003-05-31  Mike Kestner  <mkestner@ximian.com>

	* gal/util/e-util.c (e_filename_make_safe): mangle the %'s out
	too so that libxml2 doesn't convert the encoded hex values.

svn path=/trunk/; revision=21358
2003-05-31 17:21:23 +00:00
0701e570aa bump libtool version for api addition new, utf8 in/out
2003-05-28  Mike Kestner  <mkestner@ximian.com>

	* configure.in : bump libtool version for api addition
	* gal/util/e-util.c (e_utf8_strftime): new, utf8 in/out
	(e_utf8_strftime_fix_am_pm): new, utf8 in/out

2003-05-28  Mike Kestner  <mkestner@ximian.com>

	* e-cell-date.c (ecd_get_text): use e_utf8_strftime_fix_am_pm
	and remove locale to utf8 conversion at end.  [43485]

svn path=/trunk/; revision=21343
2003-05-28 21:32:52 +00:00
bbe28c9d76 use E_I18N_DOMAIN
2003-05-08  Radek Doulik  <rodo@ximian.com>

	* gal/util/e-util.c (e_gettext): use E_I18N_DOMAIN

	* gal/util/e-i18n.h: use e_gettext as we need our text domain to
	be binded

svn path=/trunk/; revision=21131
2003-05-08 14:58:57 +00:00
ec640140b3 ugh, we need to make sure the file is opened for writing. or the flags
2003-03-14  Chris Toshok  <toshok@ximian.com>

	* gal/util/e-util.c (e_write_file): ugh, we need to make sure the
	file is opened for writing.  or the flags with O_WRONLY.

svn path=/trunk/; revision=20304
2003-03-15 00:34:11 +00:00
0b82cc7a34 use access() like camel
2003-03-14  Mike Kestner  <mkestner@ximian.com>

	* gal/util/e-util.c (e_mkdir_hier): use access() like camel

2003-03-14  Mike Kestner  <mkestner@ximian.com>

	* gal-view-collection.c (gal_view_collection_load): check failure
	on e_create_directory call and warn.
	* gal-view-instance.c (save_current_view): check for failure and
	warn.

svn path=/trunk/; revision=20291
2003-03-14 17:19:25 +00:00
1d8a9f2443 Add a "collate" sort callback that uses the new g_collate_compare().
2002-12-05  Jeffrey Stedfast  <fejj@ximian.com>

	* e-table-extras.c (ete_init): Add a "collate" sort callback that
	uses the new g_collate_compare().

2002-12-05  Jeffrey Stedfast  <fejj@ximian.com>

	* gal/util/e-util.c (g_str_compare): Revert back to using just
	strcmp - this fixes bug #33933 but reopens bug #26355.
	(g_collate_compare): New function meant to address the sorting
	required by bug #26335.

svn path=/trunk/; revision=19014
2002-12-05 18:31:30 +00:00
6e93dd6be8 add lots of marshallers (most, if not all, for etable).
2002-11-16  Chris Toshok  <toshok@ximian.com>

	* gal/util/e-marshal.list: add lots of marshallers (most, if not
	all, for etable).

	* gal/util/e-text-event-processor-emacs-like.[ch]: lotsa GObject work.

	* gal/util/e-text-event-processor.[ch]: lotsa GObject work.

	* gal/util/e-util.c: same.

	* gal/e-paned/e-hpaned.[ch]: lotsa GObject work.

	* gal/e-paned/e-paned.[ch]: same.

	* gal/e-paned/e-vpaned.[ch]: same.

svn path=/trunk/; revision=18797
2002-11-16 23:31:47 +00:00
613453b109 merging the gal-2 branch back to the trunk.
merging the gal-2 branch back to the trunk.

svn path=/trunk/; revision=18471
2002-10-31 21:30:57 +00:00
14432d0716 [ Fixes evolution bug #26355 ] use g_utf8_collate here instead of strcmp.
2002-10-20  Chris Toshok  <toshok@ximian.com>

	[ Fixes evolution bug #26355 ]
	* gal/util/e-util.c (g_str_compare): use g_utf8_collate here
	instead of strcmp.

	* gal/e-text/Makefile.am (e_completion_test_LDADD): reorder so
	that util comes before unicode.

svn path=/trunk/; revision=18400
2002-10-21 15:56:09 +00:00
9a7c54c193 Documented this function as not necessarily stripping shell
2002-05-01  Christopher James Lahey  <clahey@ximian.com>

	* gal/util/e-util.c, gal/util/e-util.h (e_filename_make_safe):
	Documented this function as not necessarily stripping shell
	metacharacters.  Fixes Ximian bug #21223.

svn path=/trunk/; revision=16660
2002-05-02 00:17:03 +00:00
c049d43462 Changed this to handle large numbers. (e_create_directory): Changed this
2002-04-29  Christopher James Lahey  <clahey@ximian.com>

	* gal/util/e-util.c (e_format_number_float): Changed this to
	handle large numbers.
	(e_create_directory): Changed this to be a wrapper around
	e_mkdir_hier.

svn path=/trunk/; revision=16639
2002-04-29 21:53:41 +00:00
a020c2bd2f Added widgets/e-option-menu.lo.
2002-03-25  Christopher James Lahey  <clahey@ximian.com>

	* gal/Makefile.am (libgal_la_LIBADD): Added
	widgets/e-option-menu.lo.

	* gal/util/e-util.c, gal/util/e-util.h (e_strdupv): Copied this
	function from glib2.
	(GET_STRING_ARRAY_FROM_ELLIPSIS,
	GET_DUPLICATED_STRING_ARRAY_FROM_ELLIPSIS): Added these macros to
	automate getting a NULL terminated array off of the stack.

	* gal/widgets/Makefile.am (libwidgets_la_SOURCES): Added
	e-option-menu.c.
	(libwidgetsinclude_HEADERS): Added e-option-menu.h.

	* gal/widgets/e-canvas.c (e_canvas_class_init): Reformatted this
	function.

	* gal/widgets/e-gui-utils.c, gal/widgets/e-gui-utils.h
	(e_glade_xml_connect_widget, e_glade_xml_set_sensitive): Two new
	functions to automate pulling a widget from a GladeXML and either
	connecting a signal or setting the sensitivity.

	* gal/widgets/e-option-menu.c, gal/widgets/e-option-menu.h: New
	class to simplify the interface to GtkOptionMenu.

svn path=/trunk/; revision=16246
2002-03-25 19:33:20 +00:00
abd6567ea0 Replaced e_marshal_BOOL__STRING with this since the function it was used
2002-03-13  Christopher James Lahey  <clahey@ximian.com>

	* gal/util/e-util.c, gal/util/e-util.h
	(e_marshal_BOOL__STRING_INT): Replaced e_marshal_BOOL__STRING with
	this since the function it was used for has been modified.

From gal/e-table/ChangeLog:

2002-03-13  Christopher James Lahey  <clahey@ximian.com>

	* e-table-extras.c (e_string_search): Check for a NULL haystack
	here.

	* e-table-search.c, e-table-search.h: Added a parameter to the
	search signal here to pass in flags.  Specifically, added the
	E_TABLE_SEARCH_FLAGS_CHECK_CURSOR_FIRST flag.  Improved the search
	behavior here.

	* e-table.c, e-tree.c: Handle the new signature for the search
	signal here.

svn path=/trunk/; revision=16139
2002-03-13 07:10:22 +00:00
fd4ffbd38c Added e-table-search.lo.
2002-03-12  Christopher James Lahey  <clahey@ximian.com>

	* gal/Makefile.am (libgal_la_LIBADD): Added e-table-search.lo.

	* gal/util/e-util.c, gal/util/e-util.h (e_marshal_BOOL__STRING):
	Added this marshal function.

From gal/e-table/ChangeLog:

2002-03-12  Christopher James Lahey  <clahey@ximian.com>

	* Makefile.am (libetable_la_SOURCES): Added e-table-search.c.
	(libetableinclude_HEADERS): Added e-table-search.h.

	* e-cell.h: Added ETableSearchFun here.

	* e-table-col.h: Added search here.

	* e-table-column-specification.c, e-table-column-specification.h:
	Added search here.

	* e-table-extras.c, e-table-extras.h (e_table_extras_add_search):
	Added ETableSearchFuncs here.

	* e-table-memory-store.c (e_table_memory_store_insert,
	e_table_memory_store_insert_adopt): Handle row == -1 here.

	* e-table-search.c, e-table-search.h: New class to reusably handle
	the semantics of searching for a string.

	* e-table-simple.c, e-table-simple.h: Added a bunch of simple
	functions here for if your table is all strings.  Should be
	reusable.

	* e-table-utils.c (et_col_spec_to_col): Added support for searches
	here.

	* e-table.c, e-table.h: Added an ETableSearch here.

svn path=/trunk/; revision=16119
2002-03-12 14:30:53 +00:00
9c5cceeeb8 New signal for when the width of the column changes.
2002-02-13  Christopher James Lahey  <clahey@ximian.com>

	* gal/widgets/e-reflow.c, gal/widgets/e-reflow.h
	(column_width_changed): New signal for when the width of the
	column changes.

	* gal/util/e-util.c, gal/util/e-util.h (e_marshal_NONE__DOUBLE):
	New marshaller.

From gal/menus/ChangeLog:

2002-02-13  Christopher James Lahey  <clahey@ximian.com>

	* gal-view-etable.c (detach_table): Set
	view->table_state_changed_id to 0.
	(detach_tree): Set view->tree_state_changed_id to 0.

svn path=/trunk/; revision=15705
2002-02-13 13:03:48 +00:00
cfe53117d6 Yet Another Stupid Marshaller.
* gal/util/e-util.c (e_marshal_NONE__POINTER_POINTER_POINTER_POINTER): New.

svn path=/trunk/; revision=15423
2002-01-22 20:14:17 +00:00
67802a09c4 Merging changes:
2001-12-17  Christopher James Lahey  <clahey@ximian.com>

From a patch by Dan Nguyen <dnn@austin.ibm.com>

	* configure.in: Added configure check for %l and %k in strftime.

	* gal/util/e-util.c, gal/util/e-util.h (e_strftime): New function.
	Handles %l and %k even on platforms that don't support them by
	translating to %I and %H.

svn path=/trunk/; revision=15146
2001-12-18 05:48:50 +00:00
ef0da865b4 Bump up to 0.15.99.5.
* configure.in: Bump up to 0.15.99.5.

* gal/util/e-util.c
(e_marshal_INT__POINTER_POINTER_POINTER_POINTER_POINTER): pass
`args[4]' as the fourth argument instead of `args[3]' again.
(e_marshal_INT__POINTER_POINTER_POINTER_BOOL): New.

svn path=/trunk/; revision=14175
2001-10-26 22:19:33 +00:00
dc8927136a Changed the license announcement at the top of these files.
2001-10-26  Christopher James Lahey  <clahey@ximian.com>

	* gal/e-paned/e-hpaned.c, gal/e-paned/e-hpaned.h,
	gal/e-paned/e-paned.c, gal/e-paned/e-paned.h,
	gal/e-paned/e-vpaned.c, gal/e-paned/e-vpaned.h,
	gal/e-text/e-completion-match.c, gal/e-text/e-completion-match.h,
	gal/e-text/e-completion-test.c, gal/e-text/e-completion-view.c,
	gal/e-text/e-completion-view.h, gal/e-text/e-completion.c,
	gal/e-text/e-completion.h, gal/e-text/e-entry-test.c,
	gal/e-text/e-entry.c, gal/e-text/e-entry.h,
	gal/e-text/e-table-text-model.c, gal/e-text/e-table-text-model.h,
	gal/e-text/e-text-model-repos.c, gal/e-text/e-text-model-repos.h,
	gal/e-text/e-text-model-test.c, gal/e-text/e-text-model-uri.c,
	gal/e-text/e-text-model-uri.h, gal/e-text/e-text-model.c,
	gal/e-text/e-text-model.h, gal/e-text/e-text.c,
	gal/e-text/e-text.h, gal/util/e-bit-array.c,
	gal/util/e-bit-array.h, gal/util/e-cache.c, gal/util/e-cache.h,
	gal/util/e-iconv.c, gal/util/e-iconv.h, gal/util/e-sorter-array.c,
	gal/util/e-sorter-array.h, gal/util/e-sorter.c,
	gal/util/e-sorter.h, gal/util/e-text-event-processor-emacs-like.c,
	gal/util/e-text-event-processor-emacs-like.h,
	gal/util/e-text-event-processor-types.h,
	gal/util/e-text-event-processor.c,
	gal/util/e-text-event-processor.h, gal/util/e-util.c,
	gal/util/e-util.h, gal/util/e-xml-utils.c, gal/util/e-xml-utils.h,
	gal/widgets/color-group.c, gal/widgets/color-group.h,
	gal/widgets/color-palette.c, gal/widgets/color-palette.h,
	gal/widgets/e-canvas-utils.c, gal/widgets/e-canvas-utils.h,
	gal/widgets/e-canvas-vbox.c, gal/widgets/e-canvas-vbox.h,
	gal/widgets/e-canvas.c, gal/widgets/e-canvas.h,
	gal/widgets/e-categories-master-list-array.c,
	gal/widgets/e-categories-master-list-array.h,
	gal/widgets/e-categories-master-list-combo.c,
	gal/widgets/e-categories-master-list-combo.h,
	gal/widgets/e-categories-master-list-dialog-model.c,
	gal/widgets/e-categories-master-list-dialog-model.h,
	gal/widgets/e-categories-master-list-dialog.c,
	gal/widgets/e-categories-master-list-dialog.h,
	gal/widgets/e-categories-master-list.c,
	gal/widgets/e-categories-master-list.h,
	gal/widgets/e-categories.c, gal/widgets/e-categories.h,
	gal/widgets/e-colors.c, gal/widgets/e-colors.h,
	gal/widgets/e-cursors.c, gal/widgets/e-cursors.h,
	gal/widgets/e-font.c, gal/widgets/e-font.h,
	gal/widgets/e-gui-utils.c, gal/widgets/e-gui-utils.h,
	gal/widgets/e-hscrollbar.c, gal/widgets/e-hscrollbar.h,
	gal/widgets/e-popup-menu.c, gal/widgets/e-popup-menu.h,
	gal/widgets/e-printable.c, gal/widgets/e-printable.h,
	gal/widgets/e-reflow-model.c, gal/widgets/e-reflow-model.h,
	gal/widgets/e-reflow-sorted.c, gal/widgets/e-reflow-sorted.h,
	gal/widgets/e-reflow.c, gal/widgets/e-reflow.h,
	gal/widgets/e-scroll-frame.c, gal/widgets/e-scroll-frame.h,
	gal/widgets/e-selection-model-array.c,
	gal/widgets/e-selection-model-array.h,
	gal/widgets/e-selection-model-simple.c,
	gal/widgets/e-selection-model-simple.h,
	gal/widgets/e-selection-model.c, gal/widgets/e-selection-model.h,
	gal/widgets/e-unicode.c, gal/widgets/e-unicode.h,
	gal/widgets/e-vscrollbar.c, gal/widgets/e-vscrollbar.h,
	gal/widgets/gtk-combo-box.c, gal/widgets/gtk-combo-box.h,
	gal/widgets/gtk-combo-stack.c, gal/widgets/gtk-combo-stack.h,
	gal/widgets/gtk-combo-text.c, gal/widgets/gtk-combo-text.h,
	gal/widgets/test-color.c, gal/widgets/test-e-font.c,
	gal/widgets/test-e-font.h, gal/widgets/test-font-loading.c,
	gal/widgets/widget-color-combo.c,
	gal/widgets/widget-color-combo.h,
	gal/widgets/widget-pixmap-combo.c,
	gal/widgets/widget-pixmap-combo.h,
	src/e-table/e-table-sorted-variable.c, tests/test-define-views.c,
	tests/test-shortcut-bar.c, tests/test-table-1.c,
	tests/test-tree-1.c, tests/test-tree-2.c, tests/test-tree-3.c,
	tests/test-unicode.c: Changed the license announcement at the top
	of these files.

svn path=/trunk/; revision=14158
2001-10-26 18:33:33 +00:00
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
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
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
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
f6e8b09c24 Allocate one byte for the terminating zero as well.
2001-07-05  Richard Hult  <rhult@codefactory.se>

	* gal/util/e-util.c (e_format_number): Allocate one byte for the
	terminating zero as well.

svn path=/trunk/; revision=10792
2001-07-05 10:53:01 +00:00
d55e49c51f Add e_free_string_slist() and e_free_object_slist().
svn path=/trunk/; revision=10613
2001-06-29 23:42:14 +00:00
6fdce740b0 Add a new `e_marshal_INT__POINTER_POINTER_POINTER_POINTER' marshaller
and bump version number.

(BTW, did I mention that GTK+ marshalling sucks?)

svn path=/trunk/; revision=10518
2001-06-27 00:17:18 +00:00
5d4895eb43 Added util/e-sorter-array.lo and widgets/e-reflow-model.lo. Removed
2001-05-07  Christopher James Lahey  <clahey@ximian.com>

	* gal/Makefile.am (libgal_la_LIBADD): Added util/e-sorter-array.lo
	and widgets/e-reflow-model.lo.  Removed
	widgets/e-reflow-sorted.lo.

	* gal/util/Makefile.am (libutil_la_SOURCES): Added
	e-sorter-array.c.
	(libgalinclude_HEADERS): Added e-sorter-array.h.

	* gal/util/e-sorter-array.c, gal/util/e-sorter-array.h: A sorter
	for use with a single compare function to do sorting.

	* gal/util/e-util.c, gal/util/e-util.h
	(e_marshal_INT__OBJECT_POINTER): Added this marshaller.

	* gal/widgets/Makefile.am (libwidgets_la_SOURCES): Added
	e-reflow-model.c.  Removed e-reflow-sorted.c.
	(libwidgetsinclude_HEADERS): Added e-reflow-sorted.h.  Removed
	e-reflow-model.h.

	* gal/widgets/e-reflow-model.c, gal/widgets/e-reflow-model.h:
	Model for EReflow.  Has a number of items and generates canvas
	items on the fly.

	* gal/widgets/e-reflow.c, gal/widgets/e-reflow.h: Major rewrite.
	This now uses a model to generate its canvas items instead of
	having canvas items added to it.  It doesn't create the canvas
	items now until they will be shown on screen.

svn path=/trunk/; revision=9710
2001-05-08 04:56:03 +00:00
9d81248e5f Added e-table/e-cell-spin-button.lo Added e-table/e-cell-float.lo
2001-04-13  Mikael Hallendal  <micke@codefactory.se>

	* gal/Makefile.am (libgal_la_LIBADD):
	  Added e-table/e-cell-spin-button.lo
	  Added e-table/e-cell-float.lo

	* gal/util/e-util.[ch]
	(e_format_number_float):
  	  Added function to format floats. Uses e_format_number for the
	  integer part.
	(e_marshal_NONE__POINTER_INT_INT_INT): Added used by
	  gal/e-table/e-cell-spin-button.c

svn path=/trunk/; revision=9295
2001-04-13 01:58:14 +00:00
784478463a Fixed this function to properly format numbers that have leading zeros in
2001-04-02  Rusty Conover  <rconover@zootweb.com>

	* gal/util/e-util.c (e_format_number): Fixed this function to
	properly format numbers that have leading zeros in sub groups.
	Case in point 3042423 should now come out as 3,042,423 not
	3,42,423.

svn path=/trunk/; revision=9116
2001-04-03 03:09:17 +00:00
0cdb4fef03 Handle NULL args semi-gracefully.
2001-03-31  Jon Trowbridge  <trow@ximian.com>

        * gal/util/e-util.c (g_str_compare): Handle NULL args
        semi-gracefully.

svn path=/trunk/; revision=9066
2001-03-31 06:51:17 +00:00
8771680776 Fixed the GTK_RETLOC calls for these marshallers.
2001-03-20  Christopher James Lahey  <clahey@ximian.com>

	* gal/util/e-util.c (e_marshal_INT__INT_POINTER_INT_POINTER,
	e_marshal_BOOL__INT_POINTER_INT_POINTER_INT_INT_INT): Fixed the
	GTK_RETLOC calls for these marshallers.

svn path=/trunk/; revision=8843
2001-03-20 09:51:26 +00:00
79aed0f7f0 Upped the version number to 0.5.99.4.
2001-03-19  Christopher James Lahey  <clahey@ximian.com>

	* configure.in: Upped the version number to 0.5.99.4.

	* Merged branch:

2001-03-18  Christopher James Lahey  <clahey@ximian.com>

	* gal/widgets/e-selection-model.c,
	gal/widgets/e-selection-model.h: Added another semi-private
	function (e_selection_model_change_cursor.)

2001-03-18  Christopher James Lahey  <clahey@ximian.com>

	* gal/widgets/e-selection-model.c,
	gal/widgets/e-selection-model.h: Added a couple of semi-private
	functions (e_selection_model_change_one_row and
	e_selection_model_confirm_row_count.)

2001-03-18  Christopher James Lahey  <clahey@ximian.com>

	* tests/test-tree-1.c, tests/test-tree-3.c: Added arguments for
	e_tree_memory_callbacks_new of get_save_id and has_save_id to
	NULL.

2001-03-17  Christopher James Lahey  <clahey@ximian.com>

	* gal/util/e-util.c (e_sort): Switched to just using qsort
	directly here.

2001-03-17  Christopher James Lahey  <clahey@ximian.com>

	* gal/util/e-util.c, gal/util/e-util.h (e_bsearch, e_sort): Added e_sort and
	e_bsearch.  They both take a closure.  e_sort guarantees a stable
	sort.  e_bsearch returns the range of matching elements including
	the position where an object would be if there are no matching
	elements.

2001-03-16  Christopher James Lahey  <clahey@ximian.com>

	* gal/Makefile.am (libgal_la_LIBADD): Added e-tree-sorted.lo.

2001-03-14  Christopher James Lahey  <clahey@ximian.com>

	* gal/widgets/e-selection-model-simple.c,
	gal/widgets/e-selection-model-simple.h: Replaced the methods
	insert_row and delete_row with insert_rows and delete_rows.

	* gal/widgets/e-selection-model.c,
	gal/widgets/e-selection-model.h: Replaced the methods insert_row
	and delete_row with insert_rows and delete_rows.

2001-03-08  Christopher James Lahey  <clahey@ximian.com>

	* Makefile.am: Added e-table/e-table-utils.lo,
	e-table/e-tree-memory-callbacks.lo, e-table/e-tree-memory.lo,
	e-table/e-tree-scrolled.lo, e-table/e-tree-table-adapter.lo, and
	e-table/e-tree.lo.  Removed e-table/e-tree-simple.lo.

	* gal/util/e-util.c, gal/util/e-util.h: Added a whole bunch of
	e_marshal functions for ETree.

	* tests/test-tree-1.c, tests/test-tree-3.c: Reworked these to use
	the new tree stuff.

End of branch

svn path=/trunk/; revision=8840
2001-03-20 04:51:11 +00:00
cf479fb7dc Fix it so that numbers containing inner zeros will be formatted correctly.
2001-02-18  Rusty Conover  <rconover@zootweb.com>

	* gal/util/e-util.c (e_format_number): Fix it so that numbers
	containing inner zeros will be formatted correctly.  For instance
	the number 5005 when formatted was coming out as 5,5.  It now
	comes out at 5,005.

svn path=/trunk/; revision=8272
2001-02-18 23:31:27 +00:00
43449a554f New marshallers
* gal/util/e-util.c (e_marshal_INT__POINTER_POINTER,
	e_marshal_INT__POINTER_POINTER_POINTER_POINTER): New marshallers

svn path=/trunk/; revision=8235
2001-02-14 22:53:44 +00:00
758b87ad37 Added e_format_number and e_create_directory.
2001-02-06  Christopher James Lahey  <clahey@ximian.com>

	* gal/util/e-util.c, gal/util/e-util.h (e_format_number,
	e_create_directory): Added e_format_number and e_create_directory.

svn path=/trunk/; revision=8042
2001-02-07 03:28:54 +00:00
5d5a132d18 Made the parameter type of e_strdup_string a const. Made it not call
2000-12-19  Christopher James Lahey  <clahey@helixcode.com>

	* gal/util/e-util.c, gal/util/e-util.h (e_strdup_strip): Made the
	parameter type of e_strdup_string a const.  Made it not call
	isspace on signed characters.  Made the return type of
	e_strstrcase non const again.

svn path=/trunk/; revision=7078
2000-12-19 15:52:10 +00:00
f0761e8f6c Fixed a warning by making e_strstrcase return a const gchar.
2000-12-11  Christopher James Lahey  <clahey@helixcode.com>

	* gal/util/e-util.c, gal/util/e-util.h: Fixed a warning by making
	e_strstrcase return a const gchar.

svn path=/trunk/; revision=6936
2000-12-12 02:47:58 +00:00
3f2af99788 Fixed some warnings.
2000-12-06  Christopher James Lahey  <clahey@helixcode.com>

	* gal/util/e-util.c, gal/widgets/e-font.c: Fixed some warnings.

svn path=/trunk/; revision=6818
2000-12-06 18:50:26 +00:00
79737076b8 macro that calls e_filename_make_safe
2000-12-04  Jeffrey Stedfast  <fejj@helixcode.com>

	* gal/util/e-util.h (e_str_make_safe): macro that calls
	e_filename_make_safe

	* gal/util/e-util.c (e_filename_make_safe): Renamed from
	e_str_make_safe
	(e_strstrcase): go back to returning gchar * rather than const.

svn path=/trunk/; revision=6780
2000-12-04 20:19:12 +00:00
be13fec343 Bump the version to 0.2.99.4
2000-11-30  Jeffrey Stedfast  <fejj@helixcode.com>

	* configure.in: Bump the version to 0.2.99.4

	* gal/util/e-util.c (e_strstrcase): This should return a const
	gchar *.
	(e_str_make_safe): New convenience function to replace risky chars
	with an underscore.

svn path=/trunk/; revision=6744
2000-11-30 22:23:44 +00:00
56704ecef4 Add another marshalling function.
* gal/util/e-util.c (e_marshal_NONE__POINTER_POINTER_INT): Add
	another marshalling function.

svn path=/trunk/; revision=6171
2000-10-25 18:59:36 +00:00
4d5ebbc363 Included a missing #include.
2000-10-11  Christopher James Lahey  <clahey@helixcode.com>

	* gal/util/e-util.c: Included a missing #include.

	* gal/util/e-xml-utils.c, gal/util/e-xml-utils.h: Added
	e_xml_get_bool_prop_by_name, e_xml_set_bool_prop_by_name, and
	e_xml_get_translated_string_prop_by_name.  Reindented prototypes.

svn path=/trunk/; revision=5835
2000-10-11 07:54:51 +00:00
9acde37ac5 New function to make a directory and (if needed), its parents
* gal/util/e-util.c (e_mkdir_hier): New function to make a
	directory and (if needed), its parents

svn path=/trunk/; revision=5778
2000-10-07 19:41:42 +00:00
8600d3c205 The return value should not be const. (Well, unless the input was, but you
* e-util.c (e_strstrcase): The return value should not be
	const. (Well, unless the input was, but you can't know that.)

svn path=/trunk/; revision=5338
2000-09-11 18:45:32 +00:00
fbf55cd7f3 Added uncompiled e_read_uri function.
2000-08-09  Christopher James Lahey  <clahey@helixcode.com>

	* e-util.c, e-util.h: Added uncompiled e_read_uri function.

svn path=/trunk/; revision=4629
2000-08-09 05:16:53 +00:00
55702ec70b Added a bunch of e_marshal functions.
2000-07-25  Christopher James Lahey  <clahey@helixcode.com>

	* e-util.c, e-util.h: Added a bunch of e_marshal functions.

svn path=/trunk/; revision=4311
2000-07-25 07:44:11 +00:00
5e764dcac9 From addressbook/ChangeLog:
2000-07-12  Christopher James Lahey  <clahey@helixcode.com>

	* backend/pas/pas-backend-file.c: Do case insensitive compares.

	* addressbook/gui/component/addressbook.c: Make quick search
	search both name and company name.

From camel/ChangeLog:

2000-07-12  Christopher James Lahey  <clahey@helixcode.com>

	* camel-folder-search.c, providers/imap/camel-imap-store.c:
	Changed from strstrcase to e_strstrcase.

	* string-utils.c, string-utils.h: Removed strstrcase (in favor of
	e_strstrcase in e-util/e-util.c.)

From e-util/ChangeLog:

2000-07-12  Christopher James Lahey  <clahey@helixcode.com>

	* e-util.c, e-util.h: Added e_strstrcase function.

svn path=/trunk/; revision=4127
2000-07-12 22:59:25 +00:00