1. 16 Sep, 2004 1 commit
  2. 15 Sep, 2004 1 commit
    • Tor Lillqvist's avatar
      Convert message to UTF-8. Technically this breaks API, but the actual use · 1852bc0d
      Tor Lillqvist authored
      2004-09-15  Tor Lillqvist  <tml@iki.fi>
      
      	* glib/gwin32.c (g_win32_error_message): Convert message to
      	UTF-8. Technically this breaks API, but the actual use cases in
      	gdk/win32 have assumed it is UTF-8 anyway. Fix
      	documentation. (#152618, Kazuki Iwamoto)
      
      	* glib/gwin32.h: Don't define ftruncate as a macro. Was never a
      	good idea, and it clashes with newest mingw headers, which have a
      	ftruncate implementation as an inline function. Thanks to Dominik R.
      
      	* glib/gwin32.c (g_win32_ftruncate): Simplify implementation, just
      	call _chsize() in the C library.
      1852bc0d
  3. 09 Sep, 2004 5 commits
  4. 08 Sep, 2004 1 commit
    • Tor Lillqvist's avatar
      On Win32, as last resort call g_win32_getlocale() to get the current · cbadee08
      Tor Lillqvist authored
      2004-09-08  Tor Lillqvist  <tml@iki.fi>
      
      	* glib/gutils.c (guess_category_value): On Win32, as last resort
      	call g_win32_getlocale() to get the current thread locale. There
      	usually aren't any POSIXish LANG or LC_* environment variables
      	present on Windows machines.
      
      	* glib/glib.def: Add g_get_language_names.
      cbadee08
  5. 07 Sep, 2004 1 commit
    • Matthias Clasen's avatar
      Add a function to return a list of applicable locale names. (#95587, · d209e108
      Matthias Clasen authored
      2004-09-07  Matthias Clasen  <mclasen@redhat.com>
      
      	* glib/gutils.h:
      	* glib/gutils.c (g_get_language_names): Add a function to
      	return a list of applicable locale names.  (#95587,
      	Hidetoshi Tajima)
      	(guess_category_value, compute_locale_variants):
      	(explode_locale, unalias_lang, read_aliases): Helper
      	functions for g_get_language_names()
      
      	* tests/testglib.c (main): Show the results of
      	g_get_language_names()
      d209e108
  6. 05 Sep, 2004 1 commit
  7. 03 Sep, 2004 1 commit
    • Tor Lillqvist's avatar
      Update. · 1df50a98
      Tor Lillqvist authored
      2004-09-03  Tor Lillqvist  <tml@iki.fi>
      
      	* glib/glib.def: Update.
      1df50a98
  8. 02 Sep, 2004 1 commit
  9. 01 Sep, 2004 2 commits
  10. 30 Aug, 2004 2 commits
  11. 27 Aug, 2004 2 commits
  12. 25 Aug, 2004 2 commits
    • Tor Lillqvist's avatar
      New function. Returns the Windows version code like GetVersion(), except · 1de0e063
      Tor Lillqvist authored
      2004-08-25  Tor Lillqvist  <tml@iki.fi>
      
      	* glib/gwin32.c (g_win32_get_windows_version): New
      	function. Returns the Windows version code like GetVersion(),
      	except that one can pretend to be running on Win9x by setting the
      	G_WIN32_PRETEND_WIN9X environment variable. This is mainly for
      	debugging purposed.
      
      	* glib/gwin32.h: Declare it. Define macros G_WIN32_WINDOWS_IS_NT_BASED
      	and G_WIN32_HAVE_WIDECHAR_API to test Windows features at run-time.
      1de0e063
    • Tor Lillqvist's avatar
      Win32 equivalences of the XDG folders · a56aee27
      Tor Lillqvist authored
      2004-08-25  Tor Lillqvist  <tml@iki.fi>
      
      	Win32 equivalences of the XDG folders
      
      	* glib/gutils.c (get_special_folder): New function, calls
      	SHGetSpecialFolderLocation() to get path to places like the My
      	Documents folder.
      	(g_get_any_init): Use CSIDL_PROFILE as HOME if not
      	overridden by env vars.
      	(g_get_user_data_dir): Use CSIDL_PERSONAL.
      	(g_get_user_config_dir): Use CSIDL_APPDATA.
      	(g_get_user_cache_dir): Use CSIDL_INTERNET_CACHE. Debatable...
      	(g_get_system_data_dirs): Use CSIDL_COMMON_APPDATA and
      	CSIDL_COMMON_DOCUMENTS.
      	(g_get_system_config_dirs): Use CSIDL_COMMON_APPDATA.
      
      	* configure.in: Add -lole32 to G_LIBS_EXTRA for mingw.
      
      	* glib/glib.def: Add the new functions.
      a56aee27
  13. 23 Aug, 2004 2 commits
    • Manish Singh's avatar
      remove unused variable. · b38cb869
      Manish Singh authored
      Mon Aug 23 16:16:35 2004  Manish Singh  <yosh@gimp.org>
      
              * glib/goption.c (g_option_group_add_entries): remove unused
              variable.
      b38cb869
    • Matthias Clasen's avatar
      Don't call g_get_home_dir() while holding the g_utils_global lock, simply · ea92e29a
      Matthias Clasen authored
      Mon Aug 23 01:35:18 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* glib/gutils.c (g_get_user_cache_dir):
      	* glib/gutils.c (g_get_user_config_dir):
      	* glib/gutils.c (g_get_user_data_dir): Don't call g_get_home_dir()
      	while holding the g_utils_global lock, simply use g_home_dir.
      	(#150695, Jody Goldberg)
      ea92e29a
  14. 21 Aug, 2004 2 commits
  15. 19 Aug, 2004 2 commits
  16. 11 Aug, 2004 1 commit
    • Ray Strode's avatar
      Add new XDG basedir API (bug 139973). · 305e8c86
      Ray Strode authored
      2004-08-11  Ray Strode  <rstrode@redhat.com>
      
      	* docs/reference/glib/glib-sections.txt:
      	* glib/gutils.[ch] (g_get_user_data_dir),
      	(g_get_user_config_dir), (g_get_user_cache_dir),
      	(g_get_system_data_dirs), (g_get_system_config_dirs):
      	Add new XDG basedir API (bug 139973).
      305e8c86
  17. 10 Aug, 2004 1 commit
  18. 09 Aug, 2004 1 commit
  19. 06 Aug, 2004 1 commit
    • Hans Breuer's avatar
      updated · 838a02bc
      Hans Breuer authored
      2004-08-06  Hans Breuer  <hans@breuer.org>
      
      	* glib/makefile.msc.in glib/glib.def : updated
      
      	* glib/gutils.c : avoid 'inconsitent dll linkage' by not
      	defining extern char** environ with msvc
      838a02bc
  20. 05 Aug, 2004 1 commit
  21. 03 Aug, 2004 3 commits
  22. 02 Aug, 2004 4 commits
    • Anders Carlsson's avatar
      Move GTranslateFunc to gtypes.h · 24784330
      Anders Carlsson authored
      2004-08-03  Anders Carlsson  <andersca@gnome.org>
      
      	* glib/goption.h:
      	* glib/gtypes.h:
      	Move GTranslateFunc to gtypes.h
      24784330
    • Anders Carlsson's avatar
      Add GOption. · deee47ed
      Anders Carlsson authored
      2004-08-02  Anders Carlsson  <andersca@gnome.org>
      
      	* glib/Makefile.am:
      	* glib/glib.h:
      	* glib/goption.c:
      	* glib/goption.h:
      	* tests/.cvsignore:
      	* tests/Makefile.am:
      	* tests/option-test.c:
      	Add GOption.
      deee47ed
    • Matthias Clasen's avatar
      Add a G_GNUC_INTERNAL macro to mark function declarations as internal and · f1024215
      Matthias Clasen authored
      2004-08-02  Matthias Clasen  <mclasen@redhat.com>
      
      	* glib/gmacros.h: Add a G_GNUC_INTERNAL macro to mark function
      	declarations as internal and avoid PLT indirections for
      	them.  (#145465, Arjan van de Ven)
      
      	* glib/gunicodeprivate.h:
      	* glib/gthreadinit.h:
      	* glib/gmessages.h:
      	* glib/gdebug.h:
      	* glib/gconvert.c: Use G_GNUC_INTERNAL for _g_charset_get_aliases(),
      	_g_debug_init(), _g_log_fallback_handler(), _g_mem_thread_init(),
      	_g_messages_thread_init(), _g_convert_thread_init(),
      	_g_rand_thread_init(), _g_main_thread_init(), _g_atomic_thread_init(),
      	_g_mem_thread_private_init(), _g_messages_thread_private_init(),
      	_g_utf8_normalize_wc() and _g_unichar_combining_class().
      
      	* glib/gatomic.c: Include gthreadinit.h here to see the declaration
      	for _g_atomic_thread_init().
      f1024215
    • Matthias Clasen's avatar
      Include gthreadinit.h here to see the declaration for · 76ce9fcb
      Matthias Clasen authored
      2004-08-02  Matthias Clasen  <mclasen@redhat.com>
      
      	* glib/gatomic.c: Include gthreadinit.h here to see the declaration
      	for _g_atomic_thread_init().
      76ce9fcb
  23. 01 Aug, 2004 1 commit
  24. 30 Jul, 2004 1 commit
    • Matthias Clasen's avatar
      Don't validate for UTF-8 here. (#148420, Robert Ögren) · 0611985d
      Matthias Clasen authored
      2004-07-30  Matthias Clasen  <mclasen@redhat.com>
      
      	* glib/gconvert.c (g_unescape_uri_string): Don't validate
      	for UTF-8 here.  (#148420, Robert Ögren)
      
      	* tests/uri-test.c (run_roundtrip_tests): Add tests for
      	roundtrip compatibility. Going from filename to uri and
      	back should always give you the same filename back.
      0611985d