1. 31 Mar, 2008 4 commits
  2. 22 Mar, 2008 2 commits
    • Claudio Saavedra's avatar
      Bug 523877 – gbookmarkfile: avoid using g_string_append_printf() and · 05b10040
      Claudio Saavedra authored
      2008-03-22  Claudio Saavedra  <csaavedra@gnome.org>
      
      	Bug 523877 – gbookmarkfile: avoid using g_string_append_printf() and
      	other optimizations
      
      	* glib/gbookmarkfile.c: (bookmark_metadata_dump),
      	(bookmark_item_dump), (g_bookmark_file_dump), (expand_exec_line):
      	Replace all calls to g_string_append_printf with g_strconcat () or
      	g_string_append () where appropriate, to reduce the file creation time.
      	Also, use g_string_sized_new () with an appropriate buffer size instead
      	of g_string_new (NULL), to reduce time spent in memory reallocation.
      	(#523877, Claudio Saavedra, Emmanuele Bassi)
      
      
      svn path=/trunk/; revision=6752
      05b10040
    • Emmanuele Bassi's avatar
      Bug 518160 - replace two g_strdup_printf calls in GBookmarkFile · c14b3842
      Emmanuele Bassi authored
      2008-03-22  Emmanuele Bassi  <ebassi@gnome.org>
      
      	Bug 518160 - replace two g_strdup_printf calls in GBookmarkFile
      
      	* glib/gbookmarkfile.c (is_element_full): Compare the fragments
      	instead of building two strings; this avoids two g_strdup_printf()
      	per namespaced element enountered. (#518160, Felix Riemann)
      
      svn path=/trunk/; revision=6751
      c14b3842
  3. 20 Mar, 2008 1 commit
    • Tor Lillqvist's avatar
      Bug 523298 - win_iconv can't convert from UTF-8 to GB18030 (or vice versa) · 908d3ef0
      Tor Lillqvist authored
      2008-03-19  Tor Lillqvist  <tml@novell.com>
      
      	Bug 523298 - win_iconv can't convert from UTF-8 to GB18030 (or vice versa)
      
      	* glib/win_iconv.c: Fixes for code page 54936 (GB18030)
      	(mbtowc_flags): New function. Check if a code page is one of those
      	for which the dwFlags parameter to MultiByteToWideChar() must be
      	zero. Return 0 or MB_ERR_INVALID_CHARS.
      	(mbcs_mblen): New function for multi-byte (more than two bytes for
      	some characters) code pages. Only handles 54936 for now.
      	(make_csconv): Use it for 54936.
      	(kernel_mbtowc): Use mbtowc_flags().
      
      
      svn path=/trunk/; revision=6741
      908d3ef0
  4. 18 Mar, 2008 1 commit
    • Sebastian Dröge's avatar
      Bug 522292 - Gives warnings in glib/gutils.h with GCC in C99 mode · 16484fd1
      Sebastian Dröge authored
      * glib/gutils.h: Use "__attribute__ ((__gnu_inline__))" for inlining
      if either __GNUC_STDC_INLINE__ or __GNUC_GNU_INLINE__ are defined. In
      gcc version prior to 4.3 no correct C99-inline was implemented which
      has semantic differences to GNU inline.
      
      svn path=/trunk/; revision=6733
      16484fd1
  5. 16 Mar, 2008 1 commit
    • Tor Lillqvist's avatar
      Don't bother defining Autoconf variables for glib.def, gmodule.def, · e2ee29dd
      Tor Lillqvist authored
      2008-03-16  Tor Lillqvist  <tml@novell.com>
      
      	* configure.in: Don't bother defining Autoconf variables for
      	glib.def, gmodule.def, gobject.def and gthread.def when this can
      	be handled easily in */Makefile.am which are the only files that
      	use them. Remove also TESTGMODULE_EXP which isn't used at all.
      
      	* */Makefile.am: Corrsponding changes.
      
      
      svn path=/trunk/; revision=6722
      e2ee29dd
  6. 14 Mar, 2008 1 commit
    • Michael Natterer's avatar
      make it possible to disable single-file includes by defining · f4bb21aa
      Michael Natterer authored
      2008-03-14  Michael Natterer  <mitch@imendio.com>
      
      	* glib/*.h: make it possible to disable single-file includes by
      	defining G_DISABLE_SINGLE_INCLUDES when building against GLib.
      	Approved by Tim Janik.
      
      	* glib/glib.h: include <glib/gslice.h>.
      
      	* glib/gi18n.h
      	* glib/gi18n-lib.h
      	* glib/gprintf.h: include <glib.h> so the above works when these
      	files are included without including <glib.h> first.
      
      
      svn path=/trunk/; revision=6713
      f4bb21aa
  7. 12 Mar, 2008 2 commits
  8. 11 Mar, 2008 2 commits
  9. 10 Mar, 2008 2 commits
  10. 05 Mar, 2008 1 commit
    • Tor Lillqvist's avatar
      Remove g_uri_get_scheme. · 795d8733
      Tor Lillqvist authored
      2008-03-05  Tor Lillqvist  <tml@novell.com>
      
      	* glib/glib.symbols: Remove g_uri_get_scheme.
      
      
      svn path=/trunk/; revision=6626
      795d8733
  11. 04 Mar, 2008 1 commit
    • Alexander Larsson's avatar
      Remove deprecated symbols we kept for one release. · cb3a49ca
      Alexander Larsson authored
      2008-03-04  Alexander Larsson  <alexl@redhat.com>
      
              * gfile.c:
      	Remove deprecated symbols we kept for one release.
      
      2008-03-04  Alexander Larsson  <alexl@redhat.com>
      
              * glib/gurifuncs.c:
      	Remove deprecated symbols we kept for one release.
      	
      
      svn path=/trunk/; revision=6621
      cb3a49ca
  12. 03 Mar, 2008 2 commits
  13. 01 Mar, 2008 1 commit
    • Benjamin Otte's avatar
      fix last commit. · 4c909358
      Benjamin Otte authored
      2008-03-01  Benjamin Otte  <otte@gnome.org>
      
      	* glib/glist.c:
      	fix last commit.
      
      
      svn path=/trunk/; revision=6609
      4c909358
  14. 29 Feb, 2008 1 commit
  15. 28 Feb, 2008 2 commits
  16. 26 Feb, 2008 1 commit
    • Tor Lillqvist's avatar
      Further patch by Vlad Grecescu: Drop the code path that called · d01acfe8
      Tor Lillqvist authored
      2008-02-26  Tor Lillqvist  <tml@novell.com>
      
      	* glib/gmain.c (g_poll): Further patch by Vlad Grecescu: Drop
      	the code path that called WaitMessage(), as WaitMessage()
      	doesn't offer any chance for APCs to run. Instead just use the
      	code path with MsgWaitForMultipleObjectsEx() even for the
      	wait-only-for-messages case. (#517484)
      
      
      svn path=/trunk/; revision=6597
      d01acfe8
  17. 25 Feb, 2008 4 commits
  18. 24 Feb, 2008 5 commits
    • Tor Lillqvist's avatar
      Guard against _glib_get_installation_directory() returning NULL. In that · 96c7abe7
      Tor Lillqvist authored
      2008-02-24  Tor Lillqvist  <tml@novell.com>
      
      	* glib/gspawn-win32.c: Guard against
      	_glib_get_installation_directory() returning NULL. In that
      	case, just use the name of the helper process executable
      	without path.
      
      
      svn path=/trunk/; revision=6576
      96c7abe7
    • 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
      Use alertable wait functions so that I/O completion routines or user-mode · 6eb2b427
      Tor Lillqvist authored
      2008-02-24  Tor Lillqvist  <tml@novell.com>
      
      	* glib/gmain.c (g_poll) [Win32]: Use alertable wait functions so
      	that I/O completion routines or user-mode Asynchronous Procedure
      	Calls can be run. (#517484, Vlad Grecescu)
      
      
      svn path=/trunk/; revision=6571
      6eb2b427
    • 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
    • Tor Lillqvist's avatar
      New function. Supersedes g_win32_get_package_installation_directory() and · 3af00194
      Tor Lillqvist authored
      2008-02-24  Tor Lillqvist  <tml@novell.com>
      
      	* glib/gwin32.c
      	(g_win32_get_package_installation_directory_of_module): New
      	function. Supersedes g_win32_get_package_installation_directory()
      	and g_win32_get_package_installation_directory().
      
      	It makes more sense to have the function for this functionality
      	take a HMODULE as parameter instead of DLL name. The typical use
      	scenario has been to have a DllMain() function that retrieves the
      	full pathname for the DLL in question, and saves just the basename
      	of that. Then later code passes that saved dll basename to
      	g_win32_get_package_installation_directory(), which retrieves the
      	corresponding DLL handle, and then retrieves up its full
      	pathname. (Which DLlMain() already had.) It is less convoluted to
      	have a DllMain() that just saves the DLL handle, and then when
      	needed call this function to get the corresponding installation
      	folder.
      
      	(get_package_directory_from_module): Use
      	g_win32_get_package_installation_directory_of_module().
      
      	(g_win32_get_package_installation_directory)
      	(g_win32_get_package_installation_subdirectory): Mention these
      	functions will be deprecated and recommend using
      	g_win32_get_package_installation_directory_of_module() instead.
      	
      	* glib/gwin32.h: Declare
      	g_win32_get_package_installation_directory_of_module().
      
      	* glib/glib.symbols: Add it.
      
      
      svn path=/trunk/; revision=6569
      3af00194
  19. 23 Feb, 2008 2 commits
  20. 21 Feb, 2008 1 commit
  21. 19 Feb, 2008 1 commit
    • Tor Lillqvist's avatar
      Change the g_error() to g_message() to avoid stopping on warnings. At · 87d23f18
      Tor Lillqvist authored
      2008-02-20  Tor Lillqvist  <tml@novell.com>
      
      	* glib/gtestutils.c (g_test_trap_fork) [Win32]: Change the
      	g_error() to g_message() to avoid stopping on warnings. At least
      	now testglib runs to completion and the old tests in it get
      	exercised even if the newfangled ones don't.
      	(g_test_trap_assertions) [Win32]: Bypass on Windows.
      
      
      svn path=/trunk/; revision=6542
      87d23f18
  22. 17 Feb, 2008 2 commits