Commit Graph

189 Commits

Author SHA1 Message Date
e3997d78ae Added e-categories-master-list-wombat.c and
2001-07-02  Christopher James Lahey  <clahey@ximian.com>

	* Makefile.am (libeutil_la_SOURCES): Added
	e-categories-master-list-wombat.c and
	e-categories-master-list-wombat.h.
	(INCLUDES): Added $(BONOBO_CONF_CFLAGS).

	* e-categories-master-list-wombat.c,
	e-categories-master-list-wombat.h: New class implementing a master
	list that stores its state using bonobo-conf.

svn path=/trunk/; revision=10720
2001-07-03 02:57:58 +00:00
44bdae41f7 new file for a set of functions for managing category-related (icons,
2001-07-02  Rodrigo Moya <rodrigo@ximian.com>

	* e-categories-config.[ch]: new file for a set of functions for
	managing category-related (icons, colors) configuration

svn path=/trunk/; revision=10698
2001-07-02 19:36:08 +00:00
d1706596df Added a simple `e_request_string()' utility function.
svn path=/trunk/; revision=10650
2001-07-01 06:13:11 +00:00
9c1dcd7eaa When ANDing two bools, don't use a bitwise AND.
2001-06-25  Jeffrey Stedfast  <fejj@ximian.com>

	* e-sexp.c (term_eval_and): When ANDing two bools, don't use a
	bitwise AND.

svn path=/trunk/; revision=10499
2001-06-26 00:20:58 +00:00
6e3f88affe Split e-db3-utils and e-dbhash off into libedb3util so eutil won't depend
* Makefile.am: Split e-db3-utils and e-dbhash off into libedb3util
	so eutil won't depend on db3.

svn path=/trunk/; revision=10271
2001-06-18 20:05:45 +00:00
7ee90ffe77 REmove a silly hardcoded term limit, oops forgot about that.
2001-06-15  Not Zed  <NotZed@Ximian.com>

        * e-sexp.c (parse_values): REmove a silly hardcoded term limit,
        oops forgot about that.

svn path=/trunk/; revision=10248
2001-06-15 05:44:43 +00:00
be26e5a854 skip any non-digits while looking for dates and times. This should fix
2001-06-11  Damon Chaplin  <damon@ximian.com>

	* e-time-utils.c (e_time_parse_date_and_time): skip any non-digits
	while looking for dates and times. This should fix some translation
	problems. Though there is still a problem with Japanese, where the
	am/pm flag comes before the time so we will skip it incorrectly.

svn path=/trunk/; revision=10224
2001-06-14 06:04:20 +00:00
56132926ca got rid of '%n' at end of each format string for strptime. I don't know
2001-06-10  Damon Chaplin  <damon@ximian.com>

	* e-time-utils.c (e_time_parse_date_and_time):
	(e_time_parse_time): got rid of '%n' at end of each format string
	for strptime. I don't know how I managed to put them in there.

svn path=/trunk/; revision=10177
2001-06-10 20:53:13 +00:00
8f183d269e Included information about db3.
2001-05-31  Christopher James Lahey  <clahey@ximian.com>

	* README: Included information about db3.

	* acconfig.h: Added HAVE_DB_H and HAVE_DB3_DB_H.

	* configure.in: Added various checks for db3 libraries and
	includes.  Of note are the new configure options
	--with-db3-includes=PREFIX and --with-db3-libs=PREFIX to specify
	the location for your db3 library.

From addressbook/ChangeLog:

2001-05-31  Christopher James Lahey  <clahey@ximian.com>

	* backend/pas/Makefile.am (INCLUDES): Added db3 cflags.

	* backend/pas/pas-backend-file.c: Updated this to use db3.

From e-util/ChangeLog:

2001-05-31  Christopher James Lahey  <clahey@ximian.com>

	* Makefile.am (INCLUDES): Added db3 cflags.

	* e-dbhash.c: Made this use db3.

	* e-db3-utils.c, e-db3-utils.h: New files with some helper
	functions.

From wombat/ChangeLog:

2001-05-31  Christopher James Lahey  <clahey@ximian.com>

	* Makefile.am (wombat_LDADD): Added db3 libs.

svn path=/trunk/; revision=10077
2001-06-01 01:02:12 +00:00
d129a4a8fc Remove e_pixmaps_update (moved to libeshell) so libeutil won't depend on
* e-gui-utils.c: Remove e_pixmaps_update (moved to libeshell) so
	libeutil won't depend on bonobo.

svn path=/trunk/; revision=10017
2001-05-27 18:00:25 +00:00
e2edef6e5e Modify `e_gethostbyname_r()' so that it doesn't report an error if the
5-argument `gethostbyname_r()' returns a non-NULL hostent and a
nonzero herr.

This fixes the "Cannot resolve localhost" error on GNU/Linux with libc
2.2.x.

svn path=/trunk/; revision=9888
2001-05-19 12:38:39 +00:00
23bcf6e31a add E_TEXT_TO_HTML_ESCAPE_8BIT to turn non-US-ASCII characters into "?"s.
* e-html-utils.c (e_text_to_html_full): add
	E_TEXT_TO_HTML_ESCAPE_8BIT to turn non-US-ASCII characters into
	"?"s.

svn path=/trunk/; revision=9859
2001-05-16 22:30:44 +00:00
05817ac122 Replicate the semantics of the libunicode utf8 functions by returning NULL
2001-05-14  Jon Trowbridge  <trow@ximian.com>

        * camel-search-private.c (utf8_get): Replicate the semantics of
        the libunicode utf8 functions by returning NULL in the arg
        on invalid utf8.

        * camel-pgp-context.c (pgp_verify): Check for valid utf8,
        terminate loop if something looks wrong.

        * camel-mime-utils.c (header_encode_phrase_get_words): Properly
        check for invalid utf8.
        (header_encode_string): Properly check for invalid utf8.

        * camel-charset-map.c (camel_charset_step): Properly check for
        invalid utf8.

2001-05-14  Jon Trowbridge  <trow@ximian.com>

        * e-html-utils.c (is_citation): Check for bad utf8.

svn path=/trunk/; revision=9798
2001-05-14 21:04:35 +00:00
9bcfef421b Walk a hierarchy using the "/subfolders/" convention and call a callback
* e-path.c (e_path_find_folders): Walk a hierarchy using the
        "/subfolders/" convention and call a callback for each folder
        found.

svn path=/trunk/; revision=9721
2001-05-08 22:05:00 +00:00
4ce894e3ab Debugging routine. (Only works for recursive mutexes right now.)
* e-msgport.c (e_mutex_assert_locked): Debugging routine. (Only
	works for recursive mutexes right now.)

svn path=/trunk/; revision=9638
2001-05-01 17:37:31 +00:00
eba2691d5d Don't use g_utf8_next_char on text that isn't valid UTF8, since it won't
* e-html-utils.c (e_text_to_html_full): Don't use g_utf8_next_char
	on text that isn't valid UTF8, since it won't work (and might even
	get into an infinite loop).

svn path=/trunk/; revision=9637
2001-05-01 16:46:31 +00:00
9071df0d8f Make this smarter. Now e_text_to_html_full calls it when it sees a '@',
* e-html-utils.c (email_address_extract): Make this smarter. Now
	e_text_to_html_full calls it when it sees a '@', and
	email_address_extract deals with scanning both forward and
	backward to find the bounds of the email address. It's still
	fooled by Message-IDs, but there's not a whole lot we can do
	there...

svn path=/trunk/; revision=9628
2001-04-29 17:41:33 +00:00
e06a2c8d52 Make the Solaris and no-gethostbyname_r implementations behave more like
* e-host-utils.c (e_gethostbyname_r): Make the Solaris and
	no-gethostbyname_r implementations behave more like the Linux one.
	Document.

svn path=/trunk/; revision=9594
2001-04-26 20:26:08 +00:00
acaff5acfb Remove UNICODE_CFLAGS (libeutil_la_LIBADD): Change UNICODE_LIBS to
* Makefile.am (INCLUDES): Remove UNICODE_CFLAGS
	(libeutil_la_LIBADD): Change UNICODE_LIBS to GAL_LIBS

svn path=/trunk/; revision=9587
2001-04-26 18:23:55 +00:00
36cac270be Modified to match e_strv_get behaviour. Assert on bad cases, and return ""
2001-04-26  Not Zed  <NotZed@Ximian.com>

        * e-memory.c (e_poolv_get): Modified to match e_strv_get
        behaviour.  Assert on bad cases, and return "" rather than NULL
        for empty/unset strings.
        (e_poolv_new): Simplify the mutex cases, only have a single mutex
        for mempool and hashtable references.
        (e_poolv_set): Simplify mutex code.  Fixed a #ifdef orde prob in
        profile stuff.  Always copy string to our own memory when we add
        it to the hash, even if we free it; I think this would have led to
        dangling references otherwise.
        (e_poolv_destroy): Renamed from poolv_free, for consistency with
        the rest of the allocators here.
        (e_poolv_set): Add optional refcounting code here, not currently
        enabled/used, but should make proper string collection work
        easily.
        (e_poolv_destroy): Unrefcount the strings here.
        (e_poolv_cpy): Add refcounting code here.

        * e-memory.[ch]: Applied Jacob's patches <jacob@ximian.com> for
        'e-poolv' type, added his name to the authors list.

svn path=/trunk/; revision=9570
2001-04-26 01:07:44 +00:00
ec67eb41a7 If the buffer is too small, making it twice as big does not guarantee it
* e-html-utils.c (check_size): If the buffer is too small, making
	it twice as big does not guarantee it will be big enough. "Duh".
	Also, a bunch of the check_size calls don't seem to be taking
	trailing NULs into account, so add in a +1 here.

svn path=/trunk/; revision=9549
2001-04-24 20:00:38 +00:00
4c2f2ea4a7 Added #include <glib.h> and move corresponding local headers to the top to
2001-04-24  Kjartan Maraas  <kmaraas@gnome.org>

	* e-gui-utils.c, e-memory, e-msgport.c, e-pilot-map, e-sexp.c:
	Added #include <glib.h> and move corresponding local headers
	to the top to catch missing includes in them. Tip from clahey.

svn path=/trunk/; revision=9537
2001-04-24 09:23:12 +00:00
a525821bc7 remove prototype for e_gethostbyname_init.
2001-04-24  Chris Toshok  <toshok@ximian.com>

	* e-host-utils.h: remove prototype for e_gethostbyname_init.

	* e-host-utils.c (e_gethostbyname_r): don't dynamically allocate
	anything - store everything in the buffer that's passed in.  Also,
	stop using EMutex.  Switch to a static GMutex (so we can
	initialize it without having e_gethostbyname_init).
	(e_gethostbyname_init): removed.

svn path=/trunk/; revision=9535
2001-04-24 07:09:06 +00:00
038d1a932c Removed attempts to use Radek's evil <DATA> hacks, which were just causing
2001-04-23  Jon Trowbridge  <trow@ximian.com>

        * e-html-utils.c (e_text_to_html_full): Removed attempts to use
        Radek's evil <DATA> hacks, which were just causing me
        (and GtkHTML) grief.

2001-04-23  Jon Trowbridge  <trow@ximian.com>

        * gui/component/e-address-popup.c: Lots of code has been
        simplified here.
        (e_address_popup_factory_new_control): Rather than directly pop
        our control up in a window (via the e_address_popup_popup
        function, which is now gone), just return the widget and let the
        caller do the popping.  This works better, since it means we don't
        have to work around the vagaries of bonobo focus & event handling.
        (e_address_popup_set_name): Refresh when both name & email have
        been set, rather than checking a stupid counter.
        (e_address_popup_set_email): Ditto.

2001-04-23  Jon Trowbridge  <trow@ximian.com>

        * mail-display.c (html_button_press_event): Check for mailto:
        links, and pop up our mail address menu when we find one.
        (make_popup_window): The main piece of code (ignoring a zillion
        little callbacks) to pop up our windows with reasonable semantics
        for having them close automatically.
        (mail_text_write): Enable converting addresses to mailto links
        in message bodies.

        * mail-format.c (write_address): Simplify code, removing Radek's
        <DATA> hacks.  Write out addresses as mailto: links.

svn path=/trunk/; revision=9534
2001-04-24 02:51:45 +00:00
2b9cb3edda Include glib.h, so that the g_warning in e_gethostbyname_r will be treated
2001-04-23  Jon Trowbridge  <trow@ximian.com>

        * e-host-utils.c: Include glib.h, so that the g_warning in
        e_gethostbyname_r will be treated as a macro and not as an
        unresolved symbol.

svn path=/trunk/; revision=9528
2001-04-23 22:44:58 +00:00
f726a8e69e add e-host-utils.[ch]
2001-04-22  Chris Toshok  <toshok@ximian.com>

	* Makefile.am (libeutil_la_SOURCES): add e-host-utils.[ch]

	* e-host-utils.c: new file, with e_gethostbyname_r.

	* e-host-utils.h: new file.

svn path=/trunk/; revision=9502
2001-04-23 02:53:27 +00:00
a50c888bbe ">From" is not a citation unless the previous or following line is a
* e-html-utils.c (is_citation): ">From" is not a citation unless
        the previous or following line is a citation.
        (e_text_to_html_full): Update for is_citation change. Also, when
        marking citations, unmangle mbox From-mangling.

svn path=/trunk/; revision=9458
2001-04-19 14:37:05 +00:00
5c2d405738 Start parsing the sexp with parse_value(), not parse_list(), because we
2001-04-15  Federico Mena Quintero  <federico@ximian.com>

	* e-sexp.c (e_sexp_parse): Start parsing the sexp with
	parse_value(), not parse_list(), because we may have immediate
	values (e.g. "#f") as the whole sexp.

svn path=/trunk/; revision=9332
2001-04-15 21:26:28 +00:00
b96649c911 Setup up the conduit library building better so the files get disted
2001-04-08  JP Rosevear  <jpr@ximian.com>

	* Makefile.am: Setup up the conduit library building better so the
	files get disted

svn path=/trunk/; revision=9205
2001-04-08 11:14:27 +00:00
b2a698bb4b Added a question mark to the set of valid characters for symbol names.
2001-04-06  Federico Mena Quintero  <federico@ximian.com>

	* e-sexp.c (scanner_config): Added a question mark to the set of
	valid characters for symbol names.
	(parse_value): Fixed parsing of boolean values.
	(parse_term_free): Added missing clause for ESEXP_TERM_BOOL.

svn path=/trunk/; revision=9198
2001-04-06 13:47:51 +00:00
0e7ec05e9a Fix headers.
2001-04-04  Kjartan Maraas  <kmaraas@gnome.org>

	* ename/test-ename-western-gtk.c: Fix headers.

svn path=/trunk/; revision=9185
2001-04-04 20:50:57 +00:00
004034cf32 Added ESEXP_RES_TIME for time values. (ESExpResult): Added a "time_t
2001-04-03  Federico Mena Quintero  <federico@ximian.com>

	* e-sexp.h (ESExpResultType): Added ESEXP_RES_TIME for time
	values.
	(ESExpResult): Added a "time_t value.time" field.
	(ESExpTermType): Added ESEXP_TERM_TIME.
	(ESExpTerm): Added a "time_t value.time" field.

	* e-sexp.c (e_sexp_result_free): Deal with time values.  Also, be
	more paranoid; added a default clause with g_assert_not_reached().
	(term_eval_lt): Deal with time values.
	(term_eval_gt): Likewise.
	(term_eval_eq): Likewise.
	(term_eval_plus): Likewise.
	(term_eval_sub): Likewise.
	(e_sexp_term_eval): Likewise.
	(eval_dump_result): Likewise.
	(parse_dump_term): Likewise.
	(parse_term_free): Likewise.

svn path=/trunk/; revision=9130
2001-04-03 16:04:53 +00:00
042704ddd3 Blessed by Ettore.
Guided by Jacub Stener's mail, where he explaned which icons were renamed or
added, I added a bunch of new icons to menus, fixed renamed ones. Changed Trash
and Executive summary folder type icons. Fixed art/Makefile.am for these
changes.

Also, pulled icon cache from mailer and moved it to e-util/e-gui-utils.h, made
all components and dialogs use cache and not load pixmaps every time.

Accidentally got a couple of includes fix in, but they won't break anything.

svn path=/trunk/; revision=9092
2001-04-02 03:59:11 +00:00
6ba2a1416e Check that first_colon < last_at, to prevent horrible things from
2001-03-31  Jon Trowbridge  <trow@ximian.com>

	* e-url.c (e_url_shroud): Check that first_colon < last_at,
	to prevent horrible things from happening.  Removed spew.
	(e_url_equal): Removed spew.

svn path=/trunk/; revision=9065
2001-03-31 06:08:30 +00:00
2067796514 Add support for converting e-mail addresses to links. (is_email_address):
2001-03-30  Jon Trowbridge  <trow@ximian.com>

        * e-html-utils.c (e_text_to_html_full): Add support for converting
        e-mail addresses to links.
        (is_email_address): Added.  Identifies e-mail addresses.
        (email_address_extract): Added.  Extracts a copy of the e-mail
        address from the text.

        * e-html-utils.h (E_TEXT_TO_HTML_CONVERT_ADDRESSES): Added.

        * e-url.c (e_url_shroud): Added.  Copy a url, replacing
        any plaintext passwords with a single *.
        (e_url_equal): Compare two urls, taking into account that
        they may or may not be shrouded.

2001-03-30  Jon Trowbridge  <trow@ximian.com>

        * camel-mime-message.c (camel_mime_message_set_source): Shrould
        our source URL before putting it into X-Evolution-Source.

2001-03-30  Jon Trowbridge  <trow@ximian.com>

        * mail-display.c (mail_text_write): Add (commented-out)
        E_TEXT_TO_HTML_CONVERT_ADDRESSES.

        * mail-config.c (mail_config_get_account_by_source_url):
        Call e_url_equal to compare URLs.

svn path=/trunk/; revision=9050
2001-03-30 18:05:48 +00:00
6d9167de80 Remove #include <glib.h> Shuffle some headers. Remove #include
2001-03-29  Kjartan Maraas  <kmaraas@gnome.org>

	* e-corba-utils.h: Remove #include <glib.h>
	* e-dialog-widgets.c: Shuffle some headers.
	* e-dialog-widgets.h: Remove #include <libgnomeui/gnome-propertybox.h>
	* e-gtk-utils.c: #include <gtk/gtksignal.h>
	* e-gtk-utils.h: Replace #include <gtk/gtk.h>
	* e-gui-utils.c: Replace #include <gnome.h>
	* e-html-utils.c: Shuffle headers.
	* e-iterator.c: Replace #include <gtk/gtk.h>
	* e-iterator.h: Replace #include <gtk/gtk.h>
	* e-list-iterator.c: Remove #include <gtk/gtk.h>
	* e-list-iterator.h: Replace #include <gtk/gtk.h>
	* e-list.c: Remove #include <gtk/gtk.h>
	* e-list.h: Replace #include <gtk/gtk.h>
	* e-memory.c: #include <string.h> and <stdlib.h>
	* e-msgport.c: Move around some includes. s/%d/%ld/g in a printf()
	call to fix a warning.
	* e-pilot-map.c: #include <string.h>. Replace #include <gnome.h>
	* e-pilot-util.c: Remove #include <gnome.h>
	* e-sexp.c: Remove #include <glib.h>
	* e-sexp.h: Replace #include <gtk/gtk.h>
	* e-time-utils.c: #include <string.h>
	* md5-utils.c: Shuffle headers.
	* test-ename-western-gtk.c: Replace #include <gnome.h>
	* test-ename-western.c: Same here.

svn path=/trunk/; revision=9016
2001-03-29 18:07:13 +00:00
3e105b5bb7 new function, extracted from e_text_to_html, added color parameter
2001-03-20  Radek Doulik  <rodo@ximian.com>

	* e-html-utils.c (e_text_to_html_full): new function, extracted
	from e_text_to_html, added color parameter

2001-03-19  Radek Doulik  <rodo@ximian.com>

	* e-html-utils.c (e_text_to_html): support mark citation

	* e-html-utils.h (E_TEXT_TO_HTML_MARK_CITATION): added
	E_TEXT_TO_HTML_MARK_CITATION

svn path=/trunk/; revision=8847
2001-03-20 16:50:12 +00:00
79b4221f89 added function to format just the time.
2001-03-18  Damon Chaplin  <damon@ximian.com>

	* e-time-utils.c (e_time_format_time): added function to format just
	the time.

svn path=/trunk/; revision=8822
2001-03-19 15:46:32 +00:00
13afe78350 Fix a bug noticed by kmaraas
* e-path.c (e_path_to_physical): Fix a bug noticed by kmaraas

svn path=/trunk/; revision=8763
2001-03-16 21:00:39 +00:00
aa69aa95cd Fix a bit: [mailto:foo] shouldn't grab the ']'
* e-html-utils.c (url_extract): Fix a bit: [mailto:foo] shouldn't
	grab the ']'

svn path=/trunk/; revision=8736
2001-03-15 14:36:23 +00:00
48a7e88376 update cflag macros
2001-03-12  JP Rosevear  <jpr@ximian.com>

	* Makefile.am: update cflag macros

svn path=/trunk/; revision=8648
2001-03-12 20:42:02 +00:00
bb6e7097e0 Fix an off-by-one in the "is this for real?" check so that "http:// "
* e-html-utils.c (url_extract): Fix an off-by-one in the "is this
	for real?" check so that "http:// " won't get URLified

svn path=/trunk/; revision=8581
2001-03-07 15:39:54 +00:00
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
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
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
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