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
* 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 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 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-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-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
* 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-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-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-10 Christopher James Lahey <clahey@ximian.com>
* gal/widgets/e-unicode.c, gal/widgets/e-unicode.h
(e_xml_get_translated_utf8_string_prop_by_name): New function to
translate a string and then convert it to utf8. Acts just like
e_xml_get_translated_string and then calls
e_utf_from_locale_string on it.
* gal/util/e-xml-utils.c: Changed e_xml_get_translated_string to
take a string with no underscore at the beginning and search for
both that prop and the same prop with the underscore prepended.
If it finds it without the underscore, it returns it. If it finds
it with the underscore, it translates.
* gal/util/e-xml-utils.c, gal/util/e-xml-utils.h: Reformatted
these a bit.
svn path=/trunk/; revision=9216
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-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
(woohoo!):
2001-04-05 Gediminas Paulauskas <menesis@delfi.lt>
* gal/widgets/e-popup-menu.c: Copied gnome_app_helper_gettext function
here, and use it for translating menu names (they are passed from app as
well as from gal in arrays with N_(), and domains differ).
svn path=/trunk/; revision=9190
2001-04-04 Christopher James Lahey <clahey@ximian.com>
* gal/e-text/e-text-model-uri.c, gal/e-text/e-text.c,
gal/e-text/e-text.h, gal/e-text/e-text-event-processor.c,
gal/util/e-xml-utils.c, gal/widgets/e-cursors.c,
gal/widgets/e-cursors.h: Fixed headers. Moved the .h associated
with each .c to the top of the list of included files.
* gal/util/e-util.h: Removed the bonobo-xobject.h header here.
* gal/util/e-xml-utils.c: Replaced strcasecmp with g_strcasecmp.
* gal/widgets/e-canvas-vbox.c: Make this work even if the item is
destroyed after the vbox.
* gal/widgets/e-categories.c (do_parse_categories): Made this
translate using e_utf8_from_locale string as it should.
svn path=/trunk/; revision=9175
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
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-03-31 Christopher James Lahey <clahey@ximian.com>
* gal/util/e-bit-array.c, gal/util/e-bit-array.h: Added
e_bit_array_cross_and and e_bit_array_cross_or.
svn path=/trunk/; revision=9069
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-26 Christopher James Lahey <clahey@ximian.com>
* gal/Makefile.am (libgal_la_LIBADD): Added util/e-bit-array.lo.
* gal/util/Makefile.am: Added e-bit-array.c and e-bit-array.h.
* gal/util/e-bit-array.c, gal/util/e-bit-array.h: New class
containing the implementation of the bit array used in
e-selection-model-array.
* gal/widgets/e-selection-model-array.c,
e-selection-model-array.h: Refactored the bit array implementation
into a separate class.
* gal/widgets/e-selection-model-simple.c: Changed how it clears
the bit array of the ESelectionModelArray parent class.
* gal/widgets/e-selection-model.h: Added code to make the
declaration of EForeachFunc only get included once.
svn path=/trunk/; revision=8955
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-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-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-11 Timur Bakeyev <timur@gnu.org>
* gal/util/e-xml-utils.c: Added condition and fallback to LC_CTYPE
if system doesn't define LC_MESSAGES. Usage of LC_CTYPE to determine
language is hackish and questionable, then... Still, gives nice re-
sults if there is no other ways to get that value.
svn path=/trunk/; revision=8632
* 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-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