aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-unicode.c
Commit message (Collapse)AuthorAgeFilesLines
* write what was converted to console, this function does not work always.Gediminas Paulauskas2001-05-081-3/+6
| | | | | | | | | | | | | | | | | 2001-05-07 Gediminas Paulauskas <menesis@delfi.lt> * gal/widgets/e-unicode.c (e_utf8_to_gtk_string_sized): write what was converted to console, this function does not work always. (e_utf8_gtk_editable_get_chars), (e_utf8_gtk_menu_item_new_with_label): removed some unneeded checks. (e_xml_get_translated_utf8_string_prop_by_name): if i.e. "title" was found, do not convert it to utf8 -- it already is. do this only on "_title". * gal/e-table/e-table-header-item.c: fix warning. svn path=/trunk/; revision=9692
* Added #include <stdlib.h>.Christopher James Lahey2001-04-241-0/+1
| | | | | | | | 2001-04-23 Christopher James Lahey <clahey@ximian.com> * gal/widgets/e-unicode.c: Added #include <stdlib.h>. svn path=/trunk/; revision=9520
* bump to 0.7.99.1, add gal/unicode/Makefile. gal no longer internallyDan Winship2001-04-241-44/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.in: bump to 0.7.99.1, add gal/unicode/Makefile. gal no longer internally depends on libunicode, although it will continue to configure against it until gtkhtml/evolution are ported too. * gal/Makefile.am (nonui_subdirs): add unicode (libgal_la_LDFLAGS): remove $(UNICODE_LIBS) (libgal_la_LIBADD): add unicode/*.lo * gal/unicode/*: unicode handling code copied nearly verbatim from glib 2.0, plus gal build glue. * gal/e-text/Makefile.am (INCLUDES): Remove UNICODE_CFLAGS (e_text_test_LDADD, e_entry_test_LDADD, e_text_model_test_LDADD, e_completion_test_LDADD): remove -lunicode, add libunicode.la * gal/e-text/e-text.c: Remove <unicode.h>, use gunicode functions. * gal/widgets/Makefile.am (libwidgets_la_LDFLAGS): remove UNICODE_LIBS (INCLUDES): remove UNICODE_CFLAGS (test_e_font_LDADD, test_font_loading_LDADD): add libunicode.la * gal/widgets/e-unicode.h: #include <gal/unicode/gunicode.h>. Remove some cruft. * gal/widgets/e-unicode.c: remove <unicode.h>, use gunicode functions. Add e_unicode_get_utf8 to replace some uses of unicode_get_utf8, which isn't quite the same as any gunicode function. * gal/widgets/e-font.c: remove <unicode.h>, use gunicode functions svn path=/trunk/; revision=9512
* New function to translate a string and then convert it to utf8. Acts justChristopher James Lahey2001-04-111-1/+33
| | | | | | | | | | | | | | | | | | | | | 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
* i18n fixes.Gediminas Paulauskas2001-04-111-0/+4
| | | | | | | | | | | | | | | i18n fixes. 2001-04-10 Gediminas Paulauskas <menesis@delfi.lt> * gal/widgets/e-unicode.c (e_utf8_*_*_string): if (!string) return NULL; to avoid crashes in strlen(NULL). TODO: need g_strlen which does that. 2001-04-10 Gediminas Paulauskas <menesis@delfi.lt> * e-table.c (et_real_construct): convert click_to_add_message locale->utf8. svn path=/trunk/; revision=9214
* Fix headers. Ditto. Ditto. Ditto. Ditto. Ditto. Ditto. Same. Ditto. SameKjartan Maraas2001-04-041-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-04-04 Kjartan Maraas <kmaraas@gnome.org> * gal/e-text/e-entry.c: Fix headers. * gal/e-text/e-table-text-model.[ch]: Ditto. * gal/e-text/e-table-text-model-uri.c: Ditto. * gal/e-text/e-text-model-uri.[ch]: Ditto. * gal/e-text/e-text-model.[ch]: Ditto. * gal/e-text/e-text.[ch]: Ditto. * gal/util/e-text-event-processor-emacs-like.[ch]: Ditto. * gal/util/e-text-event-processor.[ch]: Same. * gal/util/e-util.h: Ditto. * gal/util/e-xml-utils.[ch]: Same here. * gal/widgets/color-group.[ch]: Ditto. * gal/widgets/color-palette.[ch]: Ditto. * gal/widgets/e-canvas-utils.h: Ditto. * gal/widgets/e-canvas-vbox.[ch]: Ditto. * gal/widgets/e-canvas.[ch]: Ditto. * gal/widgets/e-categories.h: Ditto. * gal/widgets/e-colors.[ch]: Ditto. * gal/widgets/e-cursors.c: Ditto. * gal/widgets/e-gui-utils.c: Ditto * gal/widgets/e-popup-menu.[ch]: Same. * gal/widgets/e-reflow-sorted.c: Same. * gal/widgets/e-reflow.[ch]: Same. * gal/widgets/e-selection-model.c: Same * gal/widgets/e-unicode.[ch]: Same. * gal/widgets/gtk-combo-stack.[ch]: Same. * gal/widgets/widget-color-combo.[ch]: Same. * gal/widgets/widget-pixmap-combo.[ch]: Same. svn path=/trunk/; revision=9168
* Rename this from g_unichar_to_utf8 so that it doesn't conflict with theDan Winship2001-03-141-8/+8
| | | | | | | | | * gal/widgets/e-unicode.c (e_unichar_to_utf8): Rename this from g_unichar_to_utf8 so that it doesn't conflict with the function of that name exported by gnome-print (and so that it's consistent with all of the other functions in the file). svn path=/trunk/; revision=8679
* Added Akira's japanese etc. encodings to e-fontLauris Kaplinski2001-02-081-5/+10
| | | | svn path=/trunk/; revision=8056
* Check for nl_langinfo (CODESET). Code taken from glib 1.3 branch.Christopher James Lahey2001-02-071-0/+123
| | | | | | | | | | | | | | | | | 2001-02-06 Christopher James Lahey <clahey@ximian.com> * configure.in: Check for nl_langinfo (CODESET). Code taken from glib 1.3 branch. * gal/widgets/e-font.c, gal/widgets/e-font.h (e_locale_encoding): Added e_locale_encoding, e_iconv_from_locale, and e_iconv_to_locale. * gal/widgets/e-unicode.c, gal/widgets/e-unicode.h: Added e_utf8_from_locale_string, e_utf8_from_locale_string_sized, e_utf8_to_locale_string, e_utf8_to_locale_string_sized. svn path=/trunk/; revision=8032
* Changed the call to iconv to be char ** instead of const char **.Christopher James Lahey2001-02-051-5/+5
| | | | | | | | | | 2001-02-05 Christopher James Lahey <clahey@helixcode.com> * gal/widgets/e-font.c (e_font_to_native), gal/widgets/e-unicode.c (e_utf8_from_gtk_string_sized, e_utf8_to_gtk_string_sized): Changed the call to iconv to be char ** instead of const char **. svn path=/trunk/; revision=7970
* Always include +1 for the size. 0*2 == 0, so malloc returns NULL, which isNot Zed2001-01-291-1/+1
| | | | | | | | | | 2001-01-29 Not Zed <NotZed@Ximian.com> * gal/widgets/e-unicode.c (e_utf8_xml1_decode): Always include +1 for the size. 0*2 == 0, so malloc returns NULL, which is not what we want. svn path=/trunk/; revision=7885
* Removed an unused variable. (e_utf8_from_gtk_string_sized): Made ib constChristopher James Lahey2001-01-091-2/+3
| | | | | | | | | | 2001-01-06 Christopher James Lahey <clahey@helixcode.com> * gal/widgets/e-unicode.c (e_utf8_xml1_decode): Removed an unused variable. (e_utf8_from_gtk_string_sized): Made ib const here. svn path=/trunk/; revision=7307
* Broke font and fontset parts of EFont into separate functions. PossiblyLauris Kaplinski2001-01-061-2/+52
| | | | | | fixed bug #857 (needs some more testing) svn path=/trunk/; revision=7279
* Added functions for encoding utf8 safely into libxml brokennessLauris Kaplinski2001-01-031-0/+85
| | | | svn path=/trunk/; revision=7225
* Work to get a Gtk-Doc infrastructure in place for Gal.Miguel de Icaza2000-12-091-4/+4
| | | | | | | | Work to get a Gtk-Doc infrastructure in place for Gal. Miguel. svn path=/trunk/; revision=6883
* Move away from unicode_iconv*. We still need libunicode for utf8Dan Winship2000-11-301-25/+9
| | | | | | | | | | | | | | | | | | | | | | | | strings functions, but that will go away eventually. * configure.in: Add a check for libiconv, which is required if your system doesn't have iconv in libc, or has glibc 2.1.2. Bump the gal version number to 0.2.99.3 * tests/Makefile.am (LDADD): add ICONV_LIBS * gal/widgets/Makefile.am (libwidgets_la_LDFLAGS): Add ICONV_LIBS * gal/widgets/e-unicode.c: Use iconv rather than libunicode for iconv()ing. (e_unicode_init): No longer needed * gal/widgets/e-font.c: Use iconv rather than libunicode for iconv()ing. (e_iconv_{from,to}_gdk_font): renamed from e_uiconv... * gal/widgets/test-e-font.c: No longer need to e_unicode_init(). svn path=/trunk/; revision=6719
* Changed the gal version number and the gal so number. Added check forChristopher James Lahey2000-11-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | 2000-11-09 Christopher James Lahey <clahey@helixcode.com> * configure.in: Changed the gal version number and the gal so number. Added check for bonobo. * gal/Makefile.am: Added gal-view-menus.lo. * gal/widgets/e-unicode.c: Removed some unused variables. From gal/menus/ChangeLog: 2000-11-09 Christopher James Lahey <clahey@helixcode.com> * Makefile.am: Added gal-view-menus.c and gal-view-menus.h. * gal-view-menus.c, gal-view-menus.h: New files to create the view menus. svn path=/trunk/; revision=6528
* Added decomposing case insensitive utf-8 strstrLauris Kaplinski2000-11-081-3/+1486
| | | | svn path=/trunk/; revision=6498
* Use underscores for untranslated characters fro Gtk+Lauris Kaplinski2000-09-131-52/+42
| | | | svn path=/trunk/; revision=5391
* Added e_utf8_gtk_editable_get_text and e_utf8_gtk_editable_set_text.Christopher James Lahey2000-09-111-10/+34
| | | | | | | | | 2000-09-11 Christopher James Lahey <clahey@helixcode.com> * e-unicode.c, e-unicode.h: Added e_utf8_gtk_editable_get_text and e_utf8_gtk_editable_set_text. svn path=/trunk/; revision=5316
* Bunch of unicode related changesLauris Kaplinski2000-09-081-8/+34
| | | | svn path=/trunk/; revision=5235
* New font translation code for utf-8, but commented out at momentLauris Kaplinski2000-09-051-36/+32
| | | | svn path=/trunk/; revision=5194
* A bit more e_utf8 wrappers here and thereLauris Kaplinski2000-09-021-3/+47
| | | | svn path=/trunk/; revision=5180
* Email should now display correctly in GtkHTMLLauris Kaplinski2000-09-011-0/+928
| | | | svn path=/trunk/; revision=5154
* More UTF-8 handlingLauris Kaplinski2000-08-251-0/+17
| | | | svn path=/trunk/; revision=5032
* Unicode in addressbook basically works, including simple searchingLauris Kaplinski2000-08-241-0/+42
| | | | svn path=/trunk/; revision=4997
* Added missing e-unicode.h and e-unicode.cLauris Kaplinski2000-08-231-0/+159
svn path=/trunk/; revision=4977