Commit graph

7 commits

Author SHA1 Message Date
rh
7b3ce48a42 Update gal to 0.22. Changes include:
* gal/util/e-util.c (g_str_compare): Revert back to using just
	strcmp - this fixes bug #33933 but reopens bug #26355.
	(g_collate_compare): New function meant to address the sorting
	required by bug #26335.
	* gal/widgets/e-canvas-background.c (ecb_destroy): Don't leak
	private structure.
	* gal/widgets/e-file-selection.c (e_file_selection_get_filenames):
	Don't prepend the cwd to absolute paths.
	* gal/widgets/e-font.c (e_font_normalize_punctuation): helper
	fuction to do a (custom) normalization of unicode chars.
	(e_font_to_native) use e_font_normalize_punctuation to convert
	punctuation that is not in the current charset.
	[ Fixes evolution bug #26355 ]
	* gal/util/e-util.c (g_str_compare): use g_utf8_collate here
	instead of strcmp.
	* gal/e-text/Makefile.am (e_completion_test_LDADD): reorder so
	that util comes before unicode.
	* gal/widgets/e-unicode.c (e_utf8_from_gtk_string_sized): Don't
	include the byte reserved for the nul in the outleft size.
	(e_utf8_from_iconv_string_sized): Same.
	(e_utf8_to_iconv_string_sized): Here too, but also make sure we
	pad the end of the resulting string with enough nul bytes (4) so
	that even multi-byte charsets are terminated correctly.
	(e_utf8_to_gtk_string_sized): Again here.
	* gal/util/e-iconv.c (C_g_strdown): new helper function, g_strdown
	with forced C locale
	(e_iconv_init): use C_g_strdown
	(e_iconv_charset_name): ditto
	* gal/widgets/e-unicode.c: add the gtk2 keypad entries (resync
	with gdk).
	* gal/widgets/e-font.c (e_font_to_native): rework again to remove
	the need for converting nbsp ahead of time.
	* gal/widgets/e-option-menu.c (item_destroyed_cb): new function,
	free the cb_struct.
	(e_option_menu_set_strings_from_array): hook up the destroy signal
	to item_destroyed_cb.
	* gal/widgets/e-font.c (set_nbsp_zero_width_flag): Updated to the
	slightly changed e_font_to_native() API.
	(e_font_draw_utf8_text): Same.
	(e_font_utf8_text_width): Here too.
	(e_font_to_native): Rewritten from scratch.
	* gal/util/e-iconv.c: Make locale_charset a char *, not
	const char *. Kills a warning in the !HAVE_CODESET case.
	(e_iconv_init): No longer need to cast locale_charset to (char *)
	while mangling it in the HAVE_CODESET case.
	* gal/util/e-xml-utils.c: #include <stdlib.h> for free()
	* gal/widgets/e-categories-master-list-array.c: Likewise
	* gal/widgets/e-font.c (e_font_draw_utf8_text): set the pointer
	not the length to allocation.
	* gal/widgets/e-font.c (e_font_draw_utf8_text): limit alloca
	length to a E_ALLOCA_MAX.
	(e_font_utf8_text_width): limit alloca length to E_ALLOCA_MAX.
	* gal/util/e-iconv.c : apply patch for 27447 from Matt Avery for
	a bug in the solaris iconv implementation.
	* gal/e-text/e-text.c (line_splitter): take a clip_height and use
	it to set the maximum number of lines if necessary
	(split_into_lines): pass clip_height arg
	* gal/widgets/e-selection-model-array.c : kill a return that caused
	selection ranges to not emit selection_changed if the end index
	only changed by 1.
	* gal/e-text/Makefile.am: removed \ before new line to make
	automake 1.6 happy
	* configure.in: Fix the check for strftime, scan for "l" and "k"
	not "%l" and "%k"
	* configure.in (CFLAGS): Add -D_REENTRANT cause we need errno
	to behave reliably.
	* gal/util/e-xml-utils.c (e_xml_save_file): Do slightly better
	error handling for close() and loop until it closes successfully.
	* gal/util/e-xml-utils.c (e_xml_save_file): Changed to handle
	saving to a temp file first, this allows us to remove a lot of
	duplicate code from everywhere.
	* gal/util/e-xml-utils.c (e_xml_save_file): New convenience
	function to save an xmlDocPtr. Replaces xmlSaveFile because
	xmlSaveFile isn't dependable.
	* gal/widgets/e-font.c (e_font_from_gdk_font_gtkhtml): new
	simplified version of e_font_from_gdk_font for GtkHTML library
	* gal/widgets/e-reflow.c, gal/widgets/e-reflow.h
	(e_reflow_selection_event_real): Made this function handle
	GDK_BUTTON_RELEASE.  Added a maybe_in_drag variable that the API
	user can set to 0 to indicate that a drag has occurred.
	* gal/e-text/e-text.c: Added debugging printfs.
	(e_text_request_paste): Fixed the order of setting
	last_type_request before calling gtk_selection_convert due to a
	reentrancy bug.
	* gal/e-text/e-text.c, gal/e-text/e-text.h (e_text_style_set):
	Reflow and redraw when the style gets set.
	* gal/widgets/e-canvas.c (grab_cancelled_check): If grabbed_item
	is NULL, cancel the timeout.
	* gal/e-text/e-text.c: Switch from gnome_canvas_item_grab to
	e_canvas_item_grab.
	* gal/widgets/e-canvas.c, gal/widgets/e-canvas.h
	(e_canvas_item_grab, e_canvas_item_ungrab): Added these functions.
	* gal/widgets/Makefile.am (imagesdir): Change this directory to
	include the $(VERSION).
	* gal/widgets/e-reflow.c (set_empty): Don't switch from utf8 to
	widget encoding, since EText takes utf8.
	* gal/e-text/e-text.c (e_text_draw): Make the style here match the
	proper widget style to emulate a label or an entry.
2003-01-09 10:48:19 +00:00
jlam
efb93b17bd Merge changes in packages from the buildlink2 branch that have
buildlink2.mk files back into the main trunk.
2002-08-25 19:21:43 +00:00
mycroft
dd6d852cd9 Update to gal 0.19.3.
I've tested all the apps I found that link against gal -- various stuff in
gnome, gabber, mrproject, sodipodi, evolution, etc.  mrproject and sodipodi
had other problems (which I fixed).  gtt and gnome-gtkhtml-editor seem to
hang without doing much, but this also happens with gal-0.19nb1.

This update is necessary to update evolution.
2002-07-12 23:38:44 +00:00
seb
db84442a67 Substitute a couple of mkdir' by ${MKDIR}'.
Remove `-p' from mkdir arguments, it is already part of ${MKDIR}.
While here substitute a couple of ${PREFIX} by `%D' in
`@exec ${MKDIR} ...' lines and add a couple of missing `%D' in such lines too!
2002-06-26 10:29:33 +00:00
skrll
08bdd44549 mkdir -> ${MKDIR}
rmdir -> ${RMDIR}
rm -> ${RM} (${RM} added to PLIST_SUBST)
chmod -> ${CHMOD}
chown -> ${CHOWN}
2002-02-15 10:12:28 +00:00
rh
a1ea65cd77 Update gal to 0.19. Features several new widgets, API enhancements, some
more localisations, and bugfixes.
2002-01-16 03:20:17 +00:00
zuntum
c72c1cf5f9 Move pkg/ files into package's toplevel directory 2001-11-01 00:57:41 +00:00