Commit Graph

237 Commits

Author SHA1 Message Date
0a60162f0b new files to contain functions to parse and format dates and times for
2001-03-04  Damon Chaplin  <damon@ximian.com>

	* e-time-utils.[hc]: new files to contain functions to parse and
	format dates and times for various calendar widgets.

svn path=/trunk/; revision=8546
2001-03-04 23:52:39 +00:00
ca443fec62 New function to turn foo/bar into foo/subfolders/bar. The inverse function
* e-path.c (e_path_to_physical): New function to turn foo/bar into
	foo/subfolders/bar. The inverse function doesn't exist yet because
	I didn't need it. Also, if the shell were going to use this, we'd
	need a few more tools...

	* Makefile.am (libeutil_la_SOURCES): Add e-path.[ch]

svn path=/trunk/; revision=8467
2001-03-02 00:31:23 +00:00
dbcf425277 Make it handle a NULL string as an empty string.
2001-03-01  Not Zed  <NotZed@Ximian.com>

        * e-sexp.c (e_sexp_encode_string): Make it handle a NULL string as
        an empty string.

svn path=/trunk/; revision=8448
2001-03-01 17:10:35 +00:00
5a2e01a7af Added e-sorter.lo and e-selection-model.lo.
2001-02-27  Christopher James Lahey  <clahey@ximian.com>

	* gal/Makefile.am: Added e-sorter.lo and e-selection-model.lo.

	* gal/util/Makefile.am: Added e-sorter.c and e-sorter.h.

	* gal/util/e-sorter.c, gal/util/e-sorter.h: New class.  This is a
	new simple virtual class for use with ESelectionModel.  It
	implements the same set of methods as ETableSorter but the default
	behavior is as if the sorting was a no-op.

	* gal/widgets/Makefile.am: Added e-selection-model.c and
	e-selection-model.h.

	* gal/widgets/e-selection-model.c,
	gal/widgets/e-selection-model.h: New class.  Implements all of the
	semantics of ETableSelectionModel except for the connection to the
	ETableModel.

svn path=/trunk/; revision=8421
2001-02-28 03:32:47 +00:00
c2d5b54e94 Turned off some of the debug.
2001-02-23  Not Zed  <NotZed@Ximian.com>

        * e-msgport.c : Turned off some of the debug.

svn path=/trunk/; revision=8364
2001-02-23 02:42:15 +00:00
c70f26c34b Wait a lot lot longer for threads to finish.
2001-02-23  Not Zed  <NotZed@Ximian.com>

        * e-msgport.c (e_thread_destroy): Wait a lot lot longer for
        threads to finish.

svn path=/trunk/; revision=8352
2001-02-22 22:32:29 +00:00
2f099e392d implement.
2001-02-21  Michael Meeks  <michael@ximian.com>

	* gal/util/e-util.h (E_MAKE_X_TYPE): implement.

svn path=/trunk/; revision=8315
2001-02-21 08:31:28 +00:00
58eeaa0977 Changed the version number to 0.5.99.1.
2001-02-19  Christopher James Lahey  <clahey@ximian.com>

	* configure.in: Changed the version number to 0.5.99.1.

	* gal/Makefile.am (libgal_la_LIBADD): Change the directories for
	e-table-text-model.lo, e-text-event-processor.lo, and
	e-text-event-processor-emacs-like.lo.  Reordered the e-text
	directory to be after the e-table directory in build order.

	* gal/e-text/Makefile.am: Removed
	e-text-event-processor-emacs-like.c,
	e-text-event-processor-emacs-like.h,
	e-text-event-processor-types.h, e-text-event-processor.c, and
	e-text-event-processor.h.  Added e-table-text-model.c and
	e-table-text-model.h.

	* gal/e-text/e-table-text-model.c: Changed the signature of these
	mehtods to match the changed signature in ETextModel.

	* gal/e-text/e-text-event-processor-emacs-like.c,
	gal/e-text/e-text-event-processor-emacs-like.h,
	gal/e-text/e-text-event-processor-types.h,
	gal/e-text/e-text-event-processor.c,
	gal/e-text/e-text-event-processor.h: Moved these to gal/util/.

	* gal/e-text/e-text.c, gal/e-text/e-text.h: Changed the includes
	to match the moved files.

	* gal/util/Makefile.am: Added e-text-event-processor-emacs-like.c,
	e-text-event-processor-emacs-like.h,
	e-text-event-processor-types.h, e-text-event-processor.c, and
	e-text-event-processor.h.

	* gal/util/e-text-event-processor-emacs-like.h,
	gal/util/e-text-event-processor.h: Changed the includes to match
	the moved files.

2001-02-19  Christopher James Lahey  <clahey@ximian.com>

	* Makefile.am: Removed e-table-text-model.c and
	e-table-text-model.h.

	* e-table-text-model.c, e-table-text-model.h: Moved these to
	gal/e-text/.

	* e-cell-text.c: Changed the include line for
	e-text-event-processor.h and e-text-event-processor-emacs-like.h.

svn path=/trunk/; revision=8298
2001-02-20 03:25:48 +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
238d4b2091 From a patch submitted by Murray Cumming <Murray.Cumming@mybau.com>
2001-02-17  Christopher James Lahey  <clahey@ximian.com>

	From a patch submitted by Murray Cumming <Murray.Cumming@mybau.com>

	* gal/util/e-util.h, gal/util/e-xml-utils.h,
	gal/widgets/e-canvas-utils.h, gal/widgets/e-colors.h,
	gal/widgets/e-cursors.h, gal/widgets/e-gui-utils.h,
	gal/widgets/e-popup-menu.h, gal/widgets/e-printable.h,
	gal/widgets/gtk-combo-stack.h: Added GNOME_DECLS.

svn path=/trunk/; revision=8267
2001-02-17 08:40:12 +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
6827ac920d Don't handle C-Enter.
2001-02-08  Christopher James Lahey  <clahey@ximian.com>

	* gal/e-text/e-text-event-processor-emacs-like.c
	(e_text_event_processor_emacs_like_event): Don't handle C-Enter.

svn path=/trunk/; revision=8107
2001-02-08 16:48:09 +00:00
fc1cb88c14 Changed to allocate raw blocks for the data, and keep track of them with
2001-02-08  Not Zed  <NotZed@Ximian.com>

        * e-memory.c (EMemChunk): Changed to allocate raw blocks for the
        data, and keep track of them with an array, this is so the native
        malloc alignment is not lost at the allocation stage.

svn path=/trunk/; revision=8100
2001-02-08 03:19:37 +00:00
cbff8e5242 Added a comment.
2001-02-06  Christopher James Lahey  <clahey@ximian.com>

	* gal/util/e-i18n.h: Added a comment.

svn path=/trunk/; revision=8045
2001-02-07 03:39:19 +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
5017e3175f Rearranged the includes here a bit.
2001-02-05  Christopher James Lahey  <clahey@helixcode.com>

	* gal/util/e-xml-utils.c: Rearranged the includes here a bit.

svn path=/trunk/; revision=7969
2001-02-05 14:36:47 +00:00
5738d07c05 Added declarations for all the functions declared in gnome-i18n.h.
2001-02-05  Christopher James Lahey  <clahey@helixcode.com>

	* gal/util/e-i18n.h: Added declarations for all the functions
	declared in gnome-i18n.h.

svn path=/trunk/; revision=7968
2001-02-05 14:34:39 +00:00
282c5a057f Revert last patch
svn path=/trunk/; revision=7964
2001-02-05 00:26:13 +00:00
80697cc5ad Turn on joining of cancelled threads. (e_msgport_wait): Put a cleanup
2001-01-30  Not Zed  <NotZed@Ximian.com>

        * e-msgport.c (e_thread_destroy): Turn on joining of cancelled threads.
        (e_msgport_wait): Put a cleanup handler to clear the mp lock if it
        happens in cond_wait, since it will be locked again.

svn path=/trunk/; revision=7919
2001-01-30 23:08:25 +00:00
d057619fd6 If we have waiting threads, then dont start a new one for the NEW case.
2001-01-29  Not Zed  <NotZed@Ximian.com>

        * e-msgport.c (e_thread_put): If we have waiting threads, then
        dont start a new one for the NEW case.
        (thread_dispatch): For the NEW case, dont exit, just keep running,
        waiting for a new message to come along.
        (e_thread_destroy): When cleaning up NEW threads, cancel any
        non-busy threads.

svn path=/trunk/; revision=7883
2001-01-29 09:03:04 +00:00
0b38dc678a Don't #define __GNOME_I18N_H__ if it's already defined.
* gal/util/e-i18n.h: Don't #define __GNOME_I18N_H__ if it's already
defined.

*gal/util/e-xml-utils.c:
Functions moved from Gnumeric:
e_xml_get_child_by_name_by_lang_list,
e_xml_get_child_by_name_by_lang_list_with_score (static),
e_xml_get_child_by_name_no_lang.
New functions (for completness):
e_xml_get_integer_prop_by_name_with_default,
e_xml_get_string_prop_by_name_with_default,
e_xml_get_uint_prop_by_name,
e_xml_get_uint_prop_by_name_with_default,
e_xml_set_uint_prop_by_name.
Now every e_xml_get_*_prop_by_name function just calls
e_xml_get_*_prop_by_name_with_default with some sensible default
value.
Formatting fixes here and there.

svn path=/trunk/; revision=7874
2001-01-28 12:35:09 +00:00
7ad01f8ebe Add chunk allocators.
2001-01-24  Not Zed  <NotZed@Ximian.com>

        * e-sexp.h (ESExp): Add chunk allocators.

        * e-sexp.c: Removed some redundant debug printfs.
        (e_sexp_term_eval): Dont allocate result till we have it. so we
        can have a fatal error, and not leak it.
        (term_eval_plus): If we have to abort, free our arguments.
        (term_eval_sub): Same.
        (parse_new_term): Renamed to parse_term_new for consistency.
        Fixed callers.
        (e_sexp_result_new): Add the esexp as an argument.  Ouch, lots of
        code to change for this.  Allocate blocks from an ememchunk.
        Fixed all callers.
        (e_sexp_result_free): Same as above, free blocks from the
        ememchunk.  Fixed all callers.
        (parse_term_new):
        (parse_term_free): Similarly, add the esexp to the argument, and
        alloc/free from memchunks.  Fixed all local callers.
        (e_sexp_init): Setup the memory chunk allocators.
        (e_sexp_finalise): Destroy memchunk allocators.

svn path=/trunk/; revision=7795
2001-01-25 02:03:10 +00:00
1ec2a37465 Removed some redundant debug printfs. (e_sexp_term_eval): Dont allocate
2001-01-24  Not Zed  <NotZed@Ximian.com>

        * e-sexp.c: Removed some redundant debug printfs.
        (e_sexp_term_eval): Dont allocate result till we have it. so we
        can have a fatal error, and not leak it.
        (term_eval_plus): If we have to abort, free our arguments.
        (term_eval_sub): Same.
        (parse_new_term): Renamed to parse_term_new for consistency.
        Fixed callers.

svn path=/trunk/; revision=7766
2001-01-24 00:32:35 +00:00
73053088aa Setup error return and return error on parse error. (parse_list): Fail if
2001-01-23  Not Zed  <NotZed@Ximian.com>

        * e-sexp.c (e_sexp_parse): Setup error return and return error on
        parse error.
        (parse_list): Fail if we have a problem.
        (parse_value): Here too.
        (fatal_error): Fatal error handling function, jumps back to the
        top caller.
        (term_eval_and):
        (e_sexp_term_eval):
        (term_eval_sub):
        (term_eval_plus):
        (term_eval_gt):
        (term_eval_lt):
        (term_eval_or):  Fail on error.
        (e_sexp_term_eval): Added a comment about where this can be
        called, which is only from inside e_sexp_eval().
        (e_sexp_eval): Setup setjmp error handler.
        (e_sexp_error): Error accessor function.

        * e-sexp.h: Added a longjmp environment to the structure, and an
        error return to parse.

svn path=/trunk/; revision=7738
2001-01-23 04:34:33 +00:00
fa5982c96a New function, can't use strlen on the md5 hash because it might have null
2001-01-22  JP Rosevear  <jpr@ximian.com>

	* e-dbhash.c (md5_to_dbt): New function, can't use strlen on the md5
	hash because it might have null chars in it.
	(e_dbhash_add): use md5_to_dbt

svn path=/trunk/; revision=7726
2001-01-22 23:10:22 +00:00
ac6ce9637e Added function e_xml_get_bool_prop_by_name_with_default.
2001-01-21  Christopher James Lahey  <clahey@helixcode.com>

	* gal/util/e-xml-utils.c, gal/util/e-xml-utils.h: Added function
	e_xml_get_bool_prop_by_name_with_default.

svn path=/trunk/; revision=7675
2001-01-21 05:56:55 +00:00
bb7e98c4eb New function, name describes it well. (gtk_radio_button_select_nth): New
2001-01-17  Jason Leach  <jasonleach@usa.net>

	* e-gtk-utils.c (gtk_radio_button_get_nth_selected): New function,
	name describes it well.
	(gtk_radio_button_select_nth): New function.

svn path=/trunk/; revision=7629
2001-01-19 01:28:28 +00:00
3e5f2a63e4 Ximianified.
2001-01-17  Federico Mena Quintero  <federico@ximian.com>

	* e-dialog-widgets.[ch]: Ximianified.

svn path=/trunk/; revision=7574
2001-01-17 10:49:30 +00:00
02c4a82a7f This fixes translations of library messages compared to application
This fixes translations of library messages compared to application messages.

2001-01-17  Miguel de Icaza  <miguel@gnu.org>

	* po/POTFILES.in: update.

	* gal/widgets/color-palette.c: use e-i18n.h

	* gal/util/e-i18n.h: Avoid inclussion of the GNOME i18n file as we
	provide our own.

2001-01-17  Miguel de Icaza  <miguel@gnu.org>

	* e-table-header-item.c: Use e-i18n.h here.

	* e-table.c (et_col_spec_to_col): Use gettext here.
	(et_real_construct): Use gettext too.
	(et_col_spec_to_col): Use gettext here.

	* e-cell-date.c: Use e-i18n.h here.

	* e-table-config.c (config_sort_info_update): Simplify column
	grabbing code and drop item layout code.
	(config_group_info_update): ditto.

	* e-table-config.c: Get correct translation setup working.

2001-01-17  Miguel de Icaza  <miguel@gnu.org>

	* e-group-bar.c: Use e-i18n.h

svn path=/trunk/; revision=7565
2001-01-17 07:59:19 +00:00
905f29ebb3 Dup the string passed in, not the temporary string. d'oh.
2001-01-15  JP Roseveaer  <jpr@ximian.com>

	* e-pilot-util.c (e_pilot_utf8_from_pchar): Dup the string passed
	in, not the temporary string. d'oh.

svn path=/trunk/; revision=7501
2001-01-15 14:04:29 +00:00
84d7968512 remove old config message
2001-01-14  JP Rosevear  <jpr@ximian.com>

	* configure.in: remove old config message

svn path=/trunk/; revision=7492
2001-01-15 01:34:54 +00:00
fc9fd0c4dd #define E_THREAD_NONE as ((pthread_t)~0) and use that instead of ~0
* e-msgport.c: #define E_THREAD_NONE as ((pthread_t)~0) and use
	that instead of ~0 throughout. (pthread_t is a pointer type on my
	system, so there are lots of warnings without the cast.)

svn path=/trunk/; revision=7271
2001-01-05 20:04:15 +00:00
33e0d0e847 Added functions for encoding utf8 safely into libxml brokenness
svn path=/trunk/; revision=7225
2001-01-03 03:03:34 +00:00
95279feb14 Some debug commented out, static list intialiser.
svn path=/trunk/; revision=7221
2001-01-03 00:09:02 +00:00
5674966eeb Merge from camel-mt-branch.
2000-12-24  Not Zed  <NotZed@HelixCode.com>

        * Merge from camel-mt-branch.

svn path=/trunk/; revision=7152
2000-12-24 00:58:02 +00:00
9c08224bb7 Added e_xml_get_double_prop_by_name_with_default.
2000-12-23  Christopher James Lahey  <clahey@helixcode.com>

	* gal/util/e-xml-utils.c, gal/util/e-xml-utils.h: Added
	e_xml_get_double_prop_by_name_with_default.

svn path=/trunk/; revision=7137
2000-12-23 05:42:37 +00:00
64e2a500f8 Check for null strings (e_pilot_utf8_from_pchar): ditto
2000-12-20  JP Rosevear  <jpr@helixcode.com>

	* e-pilot-util.c (e_pilot_utf8_to_pchar): Check for null strings
	(e_pilot_utf8_from_pchar): ditto

svn path=/trunk/; revision=7106
2000-12-20 21:48:10 +00:00
fff1110610 Convert cal component strings to pilot character set
2000-12-19  JP Rosevear  <jpr@helixcode.com>

	* conduits/calendar/calendar-conduit.c (local_record_from_comp):
	Convert cal component strings to pilot character set
	(comp_from_remote_record): vice versa

	* conduits/todo/todo-conduit.c: Same as above

2000-12-19  JP Rosevear  <jpr@helixcode.com>

	* conduit/address-conduit.c (local_record_from_ecard): Convert ecard
	strings to pilot encodings

2000-12-19  JP Rosevear  <jpr@helixcode.com>

	* e-pilot-util.c (e_pilot_utf8_to_pchar): Convert utf8 strings to
	pilot character set
	(e_pilot_utf8_from_pchar): vice versa

	* Makefile.am: Conditionally build e-pilot-util.[hc] because
	they depend on pilot-link stuff

svn path=/trunk/; revision=7090
2000-12-19 23:09:31 +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
9fc3ed958a make sure we actually make enough space for "&nbsp;".
2000-12-13  Larry Ewing  <lewing@helixcode.com>

	* e-html-utils.c (e_text_to_html): make sure we actually make
	enough space for "&nbsp;".

svn path=/trunk/; revision=6964
2000-12-13 08:52:53 +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
e68b48fb6e Work to get a Gtk-Doc infrastructure in place for Gal.
Work to get a Gtk-Doc infrastructure in place for Gal.

Miguel.

svn path=/trunk/; revision=6883
2000-12-09 02:18:00 +00:00
10cab4c208 Updated documentation comment.
2000-12-08  Federico Mena Quintero  <federico@helixcode.com>

	* e-dialog-widgets.c (e_dialog_editable_get): Updated
	documentation comment.

svn path=/trunk/; revision=6869
2000-12-08 21:09:31 +00:00
bf5e92e96c Increased the version number to 0.3. Increased the so number.
2000-12-06  Christopher James Lahey  <clahey@helixcode.com>

	* configure.in: Increased the version number to 0.3.  Increased
	the so number.

	* gal/util/e-util.h: Removed unnecessary #define e_str_make_safe
	e_filename_make_safe.

svn path=/trunk/; revision=6824
2000-12-06 21:37:38 +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
8044585228 New `e-corba-utils.c' module, for now just containing a function to
get a safe CORBA string from a possibly NULL string pointer.

svn path=/trunk/; revision=6786
2000-12-04 23:16:05 +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
3fa03e87ea Fix typename of args (for all funcs). (e_strv_set_ref): Assert the index
2000-11-30  Not Zed  <NotZed@HelixCode.com>

        * e-memory.c (e_strv_new): Fix typename of args (for all funcs).
        (e_strv_set_ref): Assert the index is in range.
        (e_strv_set_ref_free): "
        (e_strv_set): "
        (e_strv_get): "

svn path=/trunk/; revision=6733
2000-11-30 11:50:11 +00:00
fe151f1599 Plug a memleak, need to free results from term_eval(). (term_eval_gt):
2000-11-29  Not Zed  <NotZed@HelixCode.com>

        * e-sexp.c (term_eval_lt): Plug a memleak, need to free results
        from term_eval().
        (term_eval_gt):
        (term_eval_eq):

2000-11-27  Not Zed  <NotZed@HelixCode.com>

        * e-memory.c (e_mempool_new): Added some locking to global data.
        This should make the interfaces mt-safe, although each object is
        only per-thread safe.

svn path=/trunk/; revision=6710
2000-11-29 10:29:56 +00:00