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
* 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-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-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-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-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-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-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 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-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-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
* 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-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-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-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-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-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-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
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-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
* 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
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 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-13 Larry Ewing <lewing@helixcode.com>
* e-html-utils.c (e_text_to_html): make sure we actually make
enough space for " ".
svn path=/trunk/; revision=6964
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-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 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-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-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 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-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