Commit Graph

318 Commits

Author SHA1 Message Date
0a672ffa44 added comments to help translators a bit.
2001-08-20  Damon Chaplin  <damon@ximian.com>

	* e-time-utils.c (e_time_parse_date): added comments to help
	translators a bit.

svn path=/trunk/; revision=12260
2001-08-20 07:32:12 +00:00
76ab4cd9fc return when there's no icon associated with the category
2001-08-09  Rodrigo Moya <rodrigo@ximian.com>

	* e-categories-config.c (e_categories_config_get_icon_for): return
	when there's no icon associated with the category

svn path=/trunk/; revision=11860
2001-08-10 00:27:11 +00:00
702df809d2 reworked to use the ECategoriesMasterListWombat class. Also, load
2001-08-09  Rodrigo Moya <rodrigo@ximian.com>

	* e-categories-config.c: reworked to use the ECategoriesMasterListWombat
	class. Also, load correctly images (fixes #6794)

svn path=/trunk/; revision=11856
2001-08-10 00:13:13 +00:00
8f3673b5fe Chain to the destroy handler in the parent class!
2001-08-09  Federico Mena Quintero  <federico@ximian.com>

	* e-categories-master-list-wombat.c (ecmlw_destroy): Chain to the
	destroy handler in the parent class!

	* e-list-iterator.c (e_list_iterator_destroy): Likewise.  Sigh.

	* e-list.c (e_list_destroy): Likewise.  Double sigh.

svn path=/trunk/; revision=11819
2001-08-09 06:24:27 +00:00
2d4b0e2c4b Quintuple sigh. See below.
2001-08-09  Federico Mena Quintero  <federico@ximian.com>

	* gal/e-text/e-entry.c (e_entry_destroy): Quintuple sigh.  See below.

	* gal/util/e-bit-array.c (eba_destroy): Sextuple sigh.

svn path=/trunk/; revision=11815
2001-08-09 05:21:41 +00:00
e4470e8256 Ooops. Committed the wrong version of the file.
svn path=/trunk/; revision=11769
2001-08-08 08:44:50 +00:00
af262b103c New. New.
* e-dialog-utils.h: New.
* e-dialog-utils.c: New.

svn path=/trunk/; revision=11767
2001-08-08 08:17:00 +00:00
d682c4f31e New function to create a factory that creates separate component instances
* e-bonobo-factory-util.c
(e_bonobo_generic_factory_multi_display_new): New function to
create a factory that creates separate component instances for
different displays.

svn path=/trunk/; revision=11686
2001-08-05 04:30:33 +00:00
68518c1d98 p2001-08-03 Christopher James Lahey <clahey@ximian.com>
* e-list-iterator.c (e_list_iterator_next): Made it so that
	e_list_iterator_next goes to the first element if it's set to
	NULL.  This makes deleting the first element and then doing
	e_list_iterator_next go to the new first element.  Did the analogy
	for e_list_iterator_prev for completeness and consistency's sakes.
	Fixes Ximian bug #6057.

svn path=/trunk/; revision=11614
2001-08-03 14:43:58 +00:00
34706b4a56 Fixed the load statement here by just using array_from_string.
2001-08-01  Christopher James Lahey  <clahey@ximian.com>

	* e-categories-master-list-wombat.c (ecmlw_load): Fixed the load
	statement here by just using array_from_string.
	(ecmlw_save): Removed the part where we save the icons and colors
	since that's handled in the array_to_string function.  Fixes
	Ximian bug #4451.

svn path=/trunk/; revision=11561
2001-08-02 01:54:22 +00:00
216e27b012 memset everything to 0 (md5_to_dbt): ditto
2001-07-27  JP Rosevear  <jpr@ximian.com>

	* e-dbhash.c (string_to_dbt): memset everything to 0
	(md5_to_dbt): ditto

svn path=/trunk/; revision=11462
2001-07-27 22:14:12 +00:00
870148b22d use the 2 new category icons (16_category_suppliers.png and
2001-07-20  Rodrigo Moya <rodrigo@ximian.com>

	* e-categories-config.c (initialize_categories_config): use the 2
	new category icons (16_category_suppliers.png and
	16_category_time-and-expenses.png)

svn path=/trunk/; revision=11261
2001-07-20 15:40:15 +00:00
f215a6dd84 use the 2 new category icons
2001-07-19  Rodrigo Moya <rodrigo@ximian.com>

	* e-categories-config.c (initialize_categories_config): use the 2
	new category icons

svn path=/trunk/; revision=11232
2001-07-19 20:05:37 +00:00
6ddd675133 s/imagedir/imagesdir
2001-07-19  Rodrigo Moya <rodrigo@ximian.com>

	* Makefile.am: s/imagedir/imagesdir

svn path=/trunk/; revision=11224
2001-07-19 13:02:30 +00:00
eda30c6ad6 generate default configuration for icons-per-category the first time. And
2001-07-17  Rodrigo Moya <rodrigo@ximian.com>

	* e-categories-config.c (initialize_categories_config): generate
	default configuration for icons-per-category the first time. And
	use a global (for this file) Bonobo_ConfigDatabase

2001-07-16  Rodrigo Moya <rodrigo@ximian.com>

	* e-categories-config.c (e_categories_config_get_icon_for):
	(e_categories_config_get_icon_file_for):
	(e_categories_config_set_icon_file_for): use GdkPixbuf to load images

svn path=/trunk/; revision=11189
2001-07-18 00:55:04 +00:00
55eb097681 Generalized function for trying a number of strptime() formats on a
2001-07-16  Federico Mena Quintero  <federico@ximian.com>

	* e-time-utils.c (parse_with_strptime): Generalized function for
	trying a number of strptime() formats on a string.
	(e_time_parse_time): Use parse_with_strptime().
	(e_time_parse_date): New function, analogous to the previous one,
	but uses a number of date formats.

svn path=/trunk/; revision=11138
2001-07-16 21:26:12 +00:00
7e05144bba Added is_addr_char_no_pipes macro, which specifically does not consider
2001-07-12  Jon Trowbridge  <trow@ximian.com>

	* e-html-utils.c: Added is_addr_char_no_pipes macro, which
	specifically does not consider '|' ("pipe") to be a legal address
	character.
	(email_address_extract): Use is_addr_char_no_pipes when looking
	for e-mail addresses to turn into HTML links. (Bug #3940)

svn path=/trunk/; revision=11029
2001-07-12 05:42:49 +00:00
6a61d6a7e5 Added some malloc check stuff.
2001-07-05  Not Zed  <NotZed@Ximian.com>

        * e-memory.c: Added some malloc check stuff.

svn path=/trunk/; revision=10899
2001-07-09 01:48:19 +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
834ae55a48 load all icons and colors for each category
2001-07-04  Rodrigo Moya <rodrigo@ximian.com>

	* e-categories-master-list-wombat.c (ecmlw_load): load all icons
	and colors for each category

	(ecmlw_save): save all icons and categories associated with
	each category

	* e-categories-config.c: use BonoboConf to store/retrieve settings,
	and use ECategoriesMasterListWombat when creating a ECategories
	dialog widget

svn path=/trunk/; revision=10781
2001-07-04 20:03:48 +00:00
37069d45fd use BonoboConf to store/retrieve settings, and use
2001-07-04  Rodrigo Moya <rodrigo@ximian.com>

	* e-categories-config.c: use BonoboConf to store/retrieve settings,
	and use ECategoriesMasterListWombat when creating a ECategories
	dialog widget

svn path=/trunk/; revision=10779
2001-07-04 14:59:23 +00:00
36e1d69809 Forgot to commit this bit.
svn path=/trunk/; revision=10721
2001-07-03 03:24:33 +00:00
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
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
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
91cc026904 Update the copyrights, replacing Helix Code with Ximian and
helixcode.com with ximian.com all over the place.

svn path=/trunk/; revision=10440
2001-06-23 08:52:02 +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
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
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