1. 28 Nov, 2008 1 commit
    • Matthias Clasen's avatar
      Bug 559110 – Do not include libintl.h after glibintl.h · 6417df2a
      Matthias Clasen authored
      2008-11-28  Matthias Clasen  <mclasen@redhat.com>
      
              Bug 559110 – Do not include libintl.h after glibintl.h
      
              * glib/glibintl.h: Define bind_textdomain_codeset in the DISABLE_NLS
              branch. Patch by Peter Kjellerstedt.
      
              * glib/gutil.c: Don't include libintl.h directly.
      
      
      svn path=/trunk/; revision=7688
      6417df2a
  2. 19 Sep, 2008 1 commit
    • Tor Lillqvist's avatar
      glib/gutils.c (_glib_get_dll_directory) Be a bit less restrictive, look · bc8e1dd8
      Tor Lillqvist authored
      2008-09-19  Tor Lillqvist  <tml@novell.com>
      
      	* glib/gutils.c (_glib_get_dll_directory)
      	* glib/gspawn-win32.c (do_spawn_with_pipes): Be a bit less
      	restrictive, look for the helper programs in the same folder where
      	the GLib DLL is, not necessarily in a "bin" subfolder of the top
      	GLib installation folder.
      
      
      svn path=/trunk/; revision=7511
      bc8e1dd8
  3. 02 Sep, 2008 1 commit
  4. 27 Jul, 2008 1 commit
    • Tor Lillqvist's avatar
      glib/glib.symbols glib/gconvert.c glib/gdir.c glib/gfileutils.c · 80ecc308
      Tor Lillqvist authored
      2008-07-27  Tor Lillqvist  <tml@novell.com>
      
      	* glib/glib.symbols
      	* glib/gconvert.c
      	* glib/gdir.c
      	* glib/gfileutils.c
      	* glib/giowin32.c
      	* glib/gspawn-win32.c
      	* glib/gutils.c
      	* glib/gwin32.c: Bypass the Windows "ABI compatibility" symbols on
      	_WIN64. As there hasn't been any widely deployed 64-bit Windows
      	builds of the really old GLib (pre-2.8.1) versions those refer to,
      	there is no need to have the "ABI compatibility" versions in the
      	DLL.
      
      	* glib/makegalias.pl: Handle #ifndef _WIN64: Just output it, too.
      
      
      svn path=/trunk/; revision=7257
      80ecc308
  5. 11 Jun, 2008 2 commits
    • Behdad Esfahbod's avatar
      Bug 503071 – Application direction changes to right to left even if · e0916c3f
      Behdad Esfahbod authored
      2008-06-11  Behdad Esfahbod  <behdad@gnome.org>
      
              Bug 503071 – Application direction changes to right to left even if
              theres no translation
      
              * glib/gi18n-lib.h:
              * glib/glib.symbols:
              * glib/gstrfuncs.h:
              * glib/gstrfuncs.c:
              Add new functions g_dgettext() and g_dngettext().
      
              * glib/gutils.c (glib_gettext):
              * glib/gfileutils.c (g_format_size_for_display):
              * glib/goption.c (dgettext_swapped):
              Use the new functions.
      
      
      svn path=/trunk/; revision=7020
      e0916c3f
    • Matthias Clasen's avatar
      Improve the docs · 12fe2121
      Matthias Clasen authored
      svn path=/trunk/; revision=7003
      12fe2121
  6. 20 May, 2008 1 commit
  7. 12 May, 2008 1 commit
    • Tor Lillqvist's avatar
      Bug 530457 - G_USER_DIRECTORY_DOWNLOAD folder improperly mapped · e9f4abe4
      Tor Lillqvist authored
      2008-05-12  Tor Lillqvist  <tml@novell.com>
      
      	Bug 530457 - G_USER_DIRECTORY_DOWNLOAD folder improperly mapped
      
      	* glib/gutils.c (load_user_special_dirs): When running on Vista or
      	later, use SHGetKnownFolderPath() to get the FOLDERID_Downloads
      	folder for G_USER_DIRECTORY_DOWNLOAD, and FOLDERID_Public for
      	G_USER_DIRECTORY_PUBLIC_SHARE.
      
      
      svn path=/trunk/; revision=6883
      e9f4abe4
  8. 11 May, 2008 1 commit
    • Yair Hershkovitz's avatar
      Bug 503071 - Application direction changes to right to left even if theres · 7ab77ec9
      Yair Hershkovitz authored
      2008-05-11  Yair Hershkovitz  <yairhr@gmail.com>
      
              Bug 503071 - Application direction changes to right to left even if
              theres no translation. 
      
              * glib/gi18n.c: g_i18n_init() for initializing the glib i18n,
              checking if a translation is available for the calling app. wrappers for
              gettext, dgettext and dpgettext to check first if the application
              should be translated.
      
              * glib/gi18n.h: symbol declaration for gettext wrappers.
      
              * glib/gi18n-lib.h: include gi18n.h instead of libintl.h.
      
              * glib/gstrfuncs.c: moved g_dpgettext() to glib/gi18n.c.
      
              * glib/gutils.c: use g_dgettext() instead of dgettext().
      
              * glib/glibintl.h: include gi18n.h.
      
              * glib.symbols: added gettext wrappers.
      
              * glib/Makefile.am: added gi18n.c.
      
      
      svn path=/trunk/; revision=6882
      7ab77ec9
  9. 03 Apr, 2008 1 commit
    • Tor Lillqvist's avatar
      Don't enforce shared library build only on Windows. It might well make · 285b31e7
      Tor Lillqvist authored
      2008-04-03  Tor Lillqvist  <tml@novell.com>
      
      	* configure.in: Don't enforce shared library build only on
      	Windows. It might well make sense to build static libraries in
      	some use cases.
      
      	* glib/gutils.c: Don't compile the DllMain if building libglib
      	statically. Also in that case don't return NULL from
      	_glib_get_installation_directory(), but return the installation
      	directory of the program's .exe file.
      
      
      svn path=/trunk/; revision=6818
      285b31e7
  10. 31 Mar, 2008 1 commit
  11. 24 Feb, 2008 2 commits
    • Tor Lillqvist's avatar
      New internal function. · 17640e78
      Tor Lillqvist authored
      2008-02-24  Tor Lillqvist  <tml@novell.com>
      
      	* glib/gutils.c (_glib_get_installation_directory): New internal function.
      
      	* glib/gspawn-win32.c: When spawning the helper process, use an
      	explicit full path. (#518292)
      
      	* glib/gspawn-win32.c
      	* glib/gspawn-win32-helper.c: Fix race condition when using the
      	helper process: When the helper process writes the handle of the
      	actual started user process to the parent process, it must be
      	duplicated in the parent process with DuplicateHandle() so that it
      	is a valid handle in that process. However, if the helper process
      	has happened to exit before the DuplicateHandle() call, the
      	duplication will fail. Thus we must synchronise the helper
      	process's exit. Use another pipe for this.
      
      	Take care not to inherit the writing end of this pipe to the
      	helper process. Also, in the helper process, take care not to
      	inherit either of the pipes used for communication with the parent
      	process to the started user process.
      
      
      svn path=/trunk/; revision=6575
      17640e78
    • Tor Lillqvist's avatar
      Mention G_WIN32_DLLMAIN_FOR_DLL_NAME() will be deprecated in the future. · 811b86fa
      Tor Lillqvist authored
      2008-02-24  Tor Lillqvist  <tml@novell.com>
      
      	* glib/gutils.h: Mention G_WIN32_DLLMAIN_FOR_DLL_NAME() will be
      	deprecated in the future.
      
      	* glib/gutils.c: Drop use of G_WIN32_DLLMAIN_FOR_DLL_NAME(). Use a
      	minimal DllMain() instead that just saves the DLL handle.
      	(g_win32_get_system_data_dirs_for_module, _glib_get_locale_dir)
      	(get_module_share_dir): Use
      	g_win32_get_package_installation_directory_of_module().
      
      
      svn path=/trunk/; revision=6570
      811b86fa
  12. 17 Feb, 2008 1 commit
  13. 30 Jan, 2008 1 commit
  14. 16 Dec, 2007 1 commit
  15. 28 Nov, 2007 2 commits
    • Matthias Clasen's avatar
      Fix up some doc comments, avoid C99 comments · 01f1f9ce
      Matthias Clasen authored
      2007-11-28  Matthias Clasen  <mclasen@redhat.com>
      
              * glib/gtestutils.c: Fix up some doc comments, avoid C99 comments
      
              * glib/gconvert.c: De-doc-commentify static functions to
              shut up gtk-doc.
      
              * glib/gutils.c: Fix the glib_gettext doc comment.
      
      
      svn path=/trunk/; revision=5982
      01f1f9ce
    • Alexander Larsson's avatar
      Add in the new symbols · 6ae887bb
      Alexander Larsson authored
      2007-11-28  Alexander Larsson  <alexl@redhat.com>
      
              * glib/glib.symbols:
      	Add in the new symbols
      	
              * glib/gurifuncs.c:
      	Use the aliases framework
      	
              * glib/glibintl.h:
              * glib/gutils.c:
      	Make the alias stuff work now that glib_gettext
      	is exported to libgio. 
      
      
      svn path=/trunk/; revision=5973
      6ae887bb
  16. 26 Nov, 2007 2 commits
    • Tor Lillqvist's avatar
      Use either lib/locale or share/locale depending on which one is in · 007d3ad2
      Tor Lillqvist authored
      2007-11-27  Tor Lillqvist  <tml@novell.com>
      
      	* glib/gutils.c (_glib_get_locale_dir) [Win32]: Use either
      	lib/locale or share/locale depending on which one is in
      	GLIB_LOCALE_DIR. When the configury recognizes GNU gettext (based
      	on the _nl_msg_cat_cntr variable, eek), share/locale gets used.
      
      	* glib-zip.in: Likewise, look for message catalogs either in
      	lib/locale or share/locale.
      
      
      svn path=/trunk/; revision=5944
      007d3ad2
    • Alexander Larsson's avatar
      gio/ docs/reference/gio Merged gio-standalone into glib. · 8bdbcb92
      Alexander Larsson authored
      2007-11-26  Alexander Larsson  <alexl@redhat.com>
      
              * Makefile.am:
              * configure.in:
              * gio-2.0-uninstalled.pc.in:
              * gio-2.0.pc.in: 
              * gio-unix-2.0-uninstalled.pc.in:
              * gio-unix-2.0.pc.in:
      	* gio/
      	* docs/reference/gio
      	Merged gio-standalone into glib.
      	
              * glib/glibintl.h:
              * glib/gutils.c:
      	Export glib_gettext so that gio can use it
      	Add P_ (using same domain for now)
      	Add I_ as g_intern_static_string
      
      
      svn path=/trunk/; revision=5940
      8bdbcb92
  17. 25 Nov, 2007 1 commit
    • Matthias Clasen's avatar
      Require gtk-doc 1.8. · d2f111fc
      Matthias Clasen authored
      2007-11-25  Matthias Clasen  <mclasen@redhat.com>
      
              * configure.in: Require gtk-doc 1.8.
      
              * glib/gasyncqueue.c:
              * glib/gdate.c:
              * glib/gfileutils.c:
              * glib/gmain.c:
              * glib/gmarkup.c:
              * glib/gregex.c:
              * glib/gtestutils.c:
              * glib/gutils.c: Use gtk-doc abbreviations for
              examples in doc comments.
      
      
      svn path=/trunk/; revision=5933
      d2f111fc
  18. 09 Nov, 2007 1 commit
  19. 22 Oct, 2007 1 commit
  20. 01 Aug, 2007 1 commit
    • Tor Lillqvist's avatar
      Drop leftover use of a union. · 75f974d1
      Tor Lillqvist authored
      2007-08-01  Tor Lillqvist  <tml@novell.com>
      
      	* glib/gutils.c (get_special_folder): Drop leftover use of a
      	union.
      
      
      svn path=/trunk/; revision=5661
      75f974d1
  21. 18 Jun, 2007 2 commits
  22. 11 Jun, 2007 1 commit
    • Emmanuele Bassi's avatar
      Remove the cache expiration logic: it makes g_get_user_special_dir() not · 72024709
      Emmanuele Bassi authored
      2007-06-11  Emmanuele Bassi  <ebassi@gnome.org>
      
      	* glib/gutils.c (maybe_expire_user_special_dirs),
      	(g_get_user_special_dir): Remove the cache expiration logic: it
      	makes g_get_user_special_dir() not thread-safe. Document the fact
      	that on some platform the value might be changed by the user and
      	that GLib won't be able to reflect the change.
      
      svn path=/trunk/; revision=5550
      72024709
  23. 06 Jun, 2007 3 commits
  24. 05 Jun, 2007 1 commit
  25. 04 Jun, 2007 1 commit
    • Matthias Clasen's avatar
      Add support for a number of special directories, as defined by the · d154485b
      Matthias Clasen authored
      2007-06-04  Matthias Clasen  <mclasen@redhat.com>
      
              Add support for a number of special directories, as
              defined by the xdg-user-dirs specification.  (#432651,
              Bastien Nocera, Emmanuele Bassi, Michael Natterer)
      
              * glib/glib.symbols:
              * glib/gutils.[hc]: Add the GUserDirectory enum and
              g_get_user_special_dir(), with implementations based
              on the xdg-user-dirs spec and on native interfaces
              for Win32 and Carbon.
      
              * configure.in: Add Carbon checks.
      
              * tests/tetsglib.c: Test g_get_user_special_dir().
      
      
      svn path=/trunk/; revision=5528
      d154485b
  26. 12 Jan, 2007 1 commit
  27. 28 Dec, 2006 2 commits
  28. 01 Sep, 2006 1 commit
  29. 29 Aug, 2006 1 commit
    • Tor Lillqvist's avatar
      Remove support for Windows 9x/ME, as will be done also in Pango and GTK+. · da422c00
      Tor Lillqvist authored
      2006-08-29  Tor Lillqvist  <tml@novell.com>
      
      	Remove support for Windows 9x/ME, as will be done also in Pango
      	and GTK+. GTK+ hasn't worked on Win9x since 2.6 or 2.8 anyway, so
      	it's pretty pointless to keep the Win9x code in here either. If
      	somebody is interested, the code can always be found in older GLib
      	versions, and in CVS.
      
      	* glib/gdir.c
      	* glib/gfileutils.c
      	* glib/gspawn-win32-helper.c
      	* glib/gspawn-win32.c
      	* glib/gstdio.c
      	* glib/gutils.c
      	* glib/gwin32.c
      	* glib/gwin32.h: Remove the G_WIN32_IS_NT_BASED() and
      	G_WIN32_HAVE_WIDECHAR_API() tests and their false (Win9x)
      	branches, and any variables or static functions used only by the
      	Win9x branches.
      
      	* glib/gwin32.c (g_win32_windows_version_init): Call g_error() if
      	run on Win9x.
      da422c00
  30. 06 Jul, 2006 1 commit
  31. 13 Jun, 2006 1 commit
  32. 10 May, 2006 1 commit
    • Sebastian Wilhelmi's avatar
      Renamed to glib/gthreadprivate.h and moved system thread identifier · e4f8f3b9
      Sebastian Wilhelmi authored
      
      2006-05-09  Sebastian Wilhelmi  <wilhelmi@google.com>
      
      	* glib/gthreadinit.h: Renamed to glib/gthreadprivate.h and moved
      	system thread identifier comparision and assignment macros from
      	glib/gthread.c to glib/gthreadprivate.h.
      
      	* glib/Makefile.am, glib/gatomic.c, glib/gconvert.c, glib/gmain.c,
      	glib/gmem.c, glib/gmessages.c, glib/grand.c, glib/gslice.c,
      	glib/gthread.c, glib/gutils.c, gthread/gthread-impl.c: Use
      	glib/gthreadprivate.h instead of glib/gthreadinit.h.
      
      	* gthread/gthread-impl.c: Use GSystemThread instead of GThread for
      	owner determination. This fixes #311043 and is mostly modeled
      	after the patch from jylefort@FreeBSD.org.
      e4f8f3b9