Commit Graph

3129 Commits

Author SHA1 Message Date
Tor Lillqvist
fa60c1ecdf #define HELPER_CONSOLE in gspawn-win32-helper-console.c
2008-05-19  Tor Lillqvist  <tml@novell.com>

	* glib/Makefile.am: #define HELPER_CONSOLE in
	gspawn-win32-helper-console.c

	* glib/gspawn-win32-helper.c: Compile a main() instead of
	WinMain() if HELPER_CONSOLE is defined.


svn path=/trunk/; revision=6909
2008-05-18 21:38:50 +00:00
Tor Lillqvist
78bdc9397b Remove leftover svn conflict indicator.
svn path=/trunk/; revision=6908
2008-05-18 19:46:49 +00:00
Matthias Clasen
4b06cf6ce9 Bug 527214 – g_timer_elapsed() returns random values.
* glib/gtimer.c (g_timer_new()):
        Print warning if g_thread_init() has not been called yet.
        Patch by Mathias Hasselmann


svn path=/trunk/; revision=6907
2008-05-18 19:15:32 +00:00
Jeffrey Stedfast
d238669ef0 New function to reset the state of a GChecksum. (g_checksum_new): Call
2008-05-12  Jeffrey Stedfast  <fejj@novell.com>

	* glib/gchecksum.c (g_checksum_reset): New function to reset the
	state of a GChecksum.
	(g_checksum_new): Call g_checksum_reset() instead of duplicating
	code.


svn path=/trunk/; revision=6903
2008-05-17 16:53:54 +00:00
Matthias Clasen
ce40942306 Bug 528667 – Typos in testing module documentation
* glib/gtestutils.c: Fix typos in the documentation.


svn path=/trunk/; revision=6899
2008-05-17 05:52:36 +00:00
Tor Lillqvist
b8eefbc99d Make debugging printout more compact and add more information to it. No
2008-05-17  Tor Lillqvist  <tml@novell.com>

	* glib/giowin32.c: Make debugging printout more compact and add
	more information to it. No changes to actual functionality.


svn path=/trunk/; revision=6898
2008-05-17 02:34:17 +00:00
Tor Lillqvist
2ded70ee94 Improve debugging printouts. When G_MAIN_POLL_DEBUG is defined, we check
2008-05-17  Tor Lillqvist  <tml@novell.com>

	* glib/gmain.c: Improve debugging printouts. When
	G_MAIN_POLL_DEBUG is defined, we check for an environment variable
	of the same name to decide whether to print out debugging
	information or not. G_MAIN_POLL_DEBUG is always defined on Windows
	as there is more often a need to debug this stuff there. On Unix
	the definition has to be uncommented (or done on the compile
	command line).


svn path=/trunk/; revision=6897
2008-05-17 02:25:59 +00:00
Tor Lillqvist
b9cf431b95 externals. The relevant directories and files have been svn add'ed to GLib
2008-05-17  Tor Lillqvist  <tml@novell.com>

	* "build" is no longer include into GLib through
	svn:externals. The relevant directories and files have been svn
	add'ed to GLib (trunk) instead.


svn path=/trunk/; revision=6895
2008-05-17 01:36:40 +00:00
Yair Hershkovitz
49734ebc7f Added g_disable_setlocale().
2008-05-17  Yair Hershkovitz  <yairhr@gmail.com>

	* glib/glib.symbols:
	* glib/gi18n.h: Added g_disable_setlocale().

	* glib/gi18n.c: Added g_disable_setlocale() API to disable setting
	the locale in g_i18n_init(). Dont disable translations if textdomain
	was not set before calling g_i18n_init(). Dont disable translations if
	the locale is "C".

svn path=/trunk/; revision=6894
2008-05-16 22:52:42 +00:00
Tor Lillqvist
e3127daf4e Update to match the configure-produced one.
2008-05-16  Tor Lillqvist  <tml@novell.com>

	* config.h.win32.in: Update to match the configure-produced one.


svn path=/trunk/; revision=6892
2008-05-16 16:42:52 +00:00
Michael Natterer
198b4b9770 #include "config.h" before using G_ATOMIC_ARM.
2008-05-14  Michael Natterer  <mitch@imendio.com>

	* glib/gatomic.c: #include "config.h" before using G_ATOMIC_ARM.


svn path=/trunk/; revision=6889
2008-05-14 12:05:24 +00:00
Kjartan Maraas
3be6b6e4f9 #include <locale.h> to fix the build.
2008-05-13  Kjartan Maraas  <kmaraas@gnome.org>

	* glib/gi18n.c: #include <locale.h> to fix the build.

svn path=/trunk/; revision=6888
2008-05-13 15:33:09 +00:00
Yair Hershkovitz
6ff895239a Coding convention fix. Space between a function name and its opening
2008-05-12  Yair Hershkovitz  <yairhr@gmail.com>

        * glib/gi18n.c (g_i18n_init): Coding convention fix. Space between
        a function name and its opening parenthesis.


svn path=/trunk/; revision=6885
2008-05-12 10:04:21 +00:00
Tor Lillqvist
5e96ad041f Add g_i18n_init.
2008-05-12  Tor Lillqvist  <tml@novell.com>

	* glib/glib.symbols: Add g_i18n_init.


svn path=/trunk/; revision=6884
2008-05-12 07:57:21 +00:00
Tor Lillqvist
e9f4abe46c Bug 530457 - G_USER_DIRECTORY_DOWNLOAD folder improperly mapped
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
2008-05-12 06:58:50 +00:00
Yair Hershkovitz
7ab77ec9cd Bug 503071 - Application direction changes to right to left even if theres
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
2008-05-11 09:34:29 +00:00
Michael Natterer
e0aa9d8a61 #define __GLIB_H_INSIDE__ around including everything.
2008-05-05  Michael Natterer  <mitch@imendio.com>

	* glib/glib.h: #define __GLIB_H_INSIDE__ around including
	everything.

	* glib/*.h: check for that define instead of __G_LIB_H__ if
	G_DISABLE_SINGLE_INCLUDES is defined.

	* glib/gdatasetprivate.h: #include <glib.h> instead of
	<glib/gdataset.h>


svn path=/trunk/; revision=6875
2008-05-05 15:02:15 +00:00
13:24:13 Tim Janik
02e2b95393 renamed GMainDispatch.dispatching_sources to be more descriptive and
2008-05-02 13:24:13  Tim Janik  <timj@imendio.com>

        * glib/gmain.c: renamed GMainDispatch.dispatching_sources to be more
        descriptive and distinguishable within the source file.


svn path=/trunk/; revision=6874
2008-05-02 11:22:10 +00:00
Tor Lillqvist
cca1c88ea1 Bug 528752 - Win32 build and SSL not working
2008-04-21  Tor Lillqvist  <tml@novell.com>

	Bug 528752 - Win32 build and SSL not working

	This bug report against libsoup points out an issue with the use
	of bitfields in the GIOChannel struct that should really be taken
	care of here in GLib.

	* configure.in: Add Autoconf variable GLIB_EXTRA_CFLAGS which will
	contain the -mms-bitfields flag on Windows.
	
	* glib-2.0.pc.in: Add it to Cflags.


svn path=/trunk/; revision=6868
2008-04-21 12:24:49 +00:00
Tor Lillqvist
336cc8436b configure.in More work on enabling static building on Windows. When
2008-04-21  Tor Lillqvist  <tml@novell.com>

	* configure.in
	* */Makefile.am: More work on enabling static building on
	Windows. When building statically: Also define
	GOBJECT_STATIC_COMPILATION in glibconfig.h so that also the
	variables in gparamspecs.h get declared without any
	dllimport/dllexport decorations. Don't install .def files which
	obviously have no meaning for static libraries. Don't create MS
	import libraries. Don't do any resource object files.


svn path=/trunk/; revision=6866
2008-04-21 08:38:36 +00:00
17:40:58 Tim Janik
d6682a1f2d fixed gstdio.h include.
2008-04-18 17:40:58  Tim Janik  <timj@imendio.com>

        * tests/testglib.c: fixed gstdio.h include.

        * tests/Makefile.am: properly list testglib.c SOURCES.



svn path=/trunk/; revision=6862
2008-04-18 15:40:38 +00:00
Emmanuele Bassi
62b18e67b7 Use the macro GLib provides for byte-swapping as it can be optimized.
2008-04-17  Emmanuele Bassi  <ebassi@gnome.org>

	* glib/gchecksum.c:
	(sha_byte_reverse): Use the macro GLib provides for byte-swapping
	as it can be optimized.
	
	(g_checksum_update): Fix a compiler warning.

svn path=/trunk/; revision=6861
2008-04-17 11:29:26 +00:00
Mukund Sivaraman
414075c64c Fixed typos in gtk-doc comments.
2008-04-15  Mukund Sivaraman  <muks@mukund.org>

        * gio/gfile.c: Fixed typos in gtk-doc comments.


svn path=/trunk/; revision=6850
2008-04-15 14:32:58 +00:00
Mathias Hasselmann
74487a8805 Bug 519137 – g_slice_dup macro needs cast for 64-bit platform
* glib/gslice.h (g_slice_copy): Apply type casts needed
  for proper compilation on 64-bit platforms.

svn path=/trunk/; revision=6848
2008-04-10 21:40:48 +00:00
Federico Mena Quintero
0c153b46e2 Don't leak apps_by_name in GBookmarkFile metadata items
2008-04-09  Federico Mena Quintero  <federico@novell.com>

	* glib/gbookmarkfile.c (bookmark_metadata_free): Don't leak
	the apps_by_name hash table if the applications list is empty.

Signed-off-by: Federico Mena Quintero <federico@gnu.org>

svn path=/trunk/; revision=6846
2008-04-09 20:20:19 +00:00
Behdad Esfahbod
34d6446ec9 Add ISO 15924 code comments for new scripts.
2008-04-08  Behdad Esfahbod  <behdad@gnome.org>

        * glib/gunicode.h: Add ISO 15924 code comments for new scripts.


svn path=/trunk/; revision=6843
2008-04-08 21:31:25 +00:00
Matthias Clasen
db1594e164 Bug 491554 – Update to Unicode 5.1.0
* glib/gunichartables.h:
        * glib/gunicode.h:
        * glib/gunibreak.h:
        * glib/gmirroringtable.h:
        * glib/gscripttable.h:
        * glib/gen-script-table.pl: Update to Unicode 5.1.0. Patch by
        Behdad Esfahbod


svn path=/trunk/; revision=6834
2008-04-08 02:59:05 +00:00
Matthias Clasen
a5aadf0914 Bug 526619 – make test-report crash
* glib/gtester.c: Allocate enough space for argv. Patch by
         Hiroyuki Ikezoe


svn path=/trunk/; revision=6832
2008-04-08 02:22:37 +00:00
Stanislav Brabec
755460aea9 Credits update according to #522335#c6.
svn path=/trunk/; revision=6828
2008-04-07 08:37:16 +00:00
Matthias Clasen
ccd3ec90bf Make the fix for bug 448943 work.
2008-04-04  Matthias Clasen  <mclasen@redhat.com>

        * glib/gmain.c: Make the fix for bug 448943 work.



svn path=/trunk/; revision=6826
2008-04-04 13:06:14 +00:00
Tor Lillqvist
e2bcb1d1a6 Define GLIB_STATIC_COMPILATION here also, if needed.
2008-04-04  Tor Lillqvist  <tml@novell.com>

	* glibconfig.h.win32.in: Define GLIB_STATIC_COMPILATION here also,
	if needed.


svn path=/trunk/; revision=6822
2008-04-03 22:43:31 +00:00
Tor Lillqvist
b79b3be6df Clarification.
svn path=/trunk/; revision=6821
2008-04-03 22:09:39 +00:00
Tor Lillqvist
47d61b50f8 Make sure we don't build both shared and static at the same time on
2008-04-04  Tor Lillqvist  <tml@novell.com>

	* configure.in: Make sure we don't build both shared and static at
	the same time on Windows. Put a #define for
	GLIB_STATIC_COMPILATION into glibconfig.h in the static case, so
	that the use of variables from libglib gets the dllimport stuff in
	the GLIB_VAR macro as defined in gtypes.h automatically
	correct. This means that a shared and static build of GLib can't
	be installed in the same prefix on Windows, which sucks a bit. But
	with variables in the GLib API, there isn't much we can do
	otherwise. The alternative would be to force the developer who
	compiles against a statically built GLib to use
	-DGLIB_STATIC_COMPILATION.


svn path=/trunk/; revision=6820
2008-04-03 22:03:32 +00:00
Tor Lillqvist
285b31e7a5 Don't enforce shared library build only on Windows. It might well make
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
2008-04-03 20:17:15 +00:00
Tor Lillqvist
fd54a90954 Bug 525972 - UCS-4 not in the new win_iconv implementation
2008-04-03  Tor Lillqvist  <tml@novell.com>

	Bug 525972 - UCS-4 not in the new win_iconv implementation

	* glib/win_iconv.c: Add UCS-4. Also add spelling of UCS-2 without
	the hyphen.


svn path=/trunk/; revision=6816
2008-04-03 14:59:39 +00:00
Matthias Clasen
7f82bb3196 Bug 448943 – g_timeout_add_seconds() problems
2008-04-03  Matthias Clasen  <mclasen@redhat.com>

        Bug 448943 – g_timeout_add_seconds() problems

        * glib/gmain.c (g_timeout_set_expiration): Prevent expiration
        time going negative. Reported by Cody Russell, analyzed by
        Olivier Crete, patch by Sjoerd Simons.


svn path=/trunk/; revision=6814
2008-04-03 04:51:16 +00:00
Matthias Clasen
b28e9afd69 Fix the docs
svn path=/trunk/; revision=6811
2008-04-03 04:11:13 +00:00
Matthias Clasen
28003050e2 Fix the docs
svn path=/trunk/; revision=6810
2008-04-03 04:07:44 +00:00
Tor Lillqvist
a6bdf9a1af Bug 524314 - g_convert() on Win32 implicitly converts full width
2008-04-02  Tor Lillqvist  <tml@novell.com>

	Bug 524314 - g_convert() on Win32 implicitly converts full width
	alphanumerics into half width
	
	* glib/win_iconv.c: Update from Yukihiro Nakadaira. Use
	WC_NO_BEST_FIT_CHARS flag for WideCharToMultiByte() unless the
	//translit flag was suffixed to the codeset name.

	* glib/gconvert.c: Include win_iconv.c earlier so that its
	definition of WINVER before it includes <windows.h> is used.


svn path=/trunk/; revision=6808
2008-04-02 02:43:45 +00:00
Tor Lillqvist
d8fa7b34d2 Improve fix for #525192 below: Use SleepEx() so that the sleep is
2008-03-31  Tor Lillqvist  <tml@novell.com>

	* glib/gmain.c (g_poll): Improve fix for #525192 below: Use
	SleepEx() so that the sleep is alertable. Thanks to John
	Ehresman.


svn path=/trunk/; revision=6794
2008-03-31 18:05:47 +00:00
Tor Lillqvist
8d5927996d Fix Cygwin breakage. Patch by Lieven van der Heide.
2008-03-31  Tor Lillqvist  <tml@novell.com>

	* glib/gwin32.c
	(g_win32_get_package_installation_directory_of_module): Fix Cygwin
	breakage. Patch by Lieven van der Heide.


svn path=/trunk/; revision=6790
2008-03-31 13:41:03 +00:00
10:39:17 Tim Janik
e4b7751f44 reapply inlining fix from r6333 to fix: Bug 522292 - Gives warnings in
2008-03-31 10:39:17  Tim Janik  <timj@imendio.com>

        * glib/gutils.h: reapply inlining fix from r6333 to fix:
        Bug 522292 - Gives warnings in glib/gutils.h with GCC in C99 mode
        and again:
        Bug 315437 - extern inline -> static inline



svn path=/trunk/; revision=6789
2008-03-31 08:52:23 +00:00
Tor Lillqvist
3e877f984e Bug 525192 - 100% CPU if run main loop with no IO sources
2008-03-31  Tor Lillqvist  <tml@novell.com>

	Bug 525192 - 100% CPU if run main loop with no IO sources

	* glib/gmain.c (g_poll) [Win32]: Patch by Neil Roberts.


svn path=/trunk/; revision=6787
2008-03-31 07:37:17 +00:00
Matthias Clasen
6bbef67ad6 Don't use ARG_MAX. (#522335, patch by Sebastian Dröge)
2008-03-30  Matthias Clasen  <mclasen@redhat.com>

        * glib/gtester.c: Don't use ARG_MAX.  (#522335, patch by
        Sebastian Dröge)



svn path=/trunk/; revision=6782
2008-03-31 04:22:55 +00:00
Matthias Clasen
2af49e60a1 Add macros wrapping the gcc alloc_size function attribute. (#523019,
2008-03-30  Matthias Clasen  <mclasen@redhat.com>

        * glib/gmacros.h: Add macros wrapping the gcc alloc_size
        function attribute.  (#523019, Rodrigo Moya)

        * glib/gmem.h:
        * glib/gslice.h:
        * glib/gstrfuncs.h: Use the new attribute where appropriate.



svn path=/trunk/; revision=6781
2008-03-31 04:17:22 +00:00
Matthias Clasen
f0c679e3bf Simple fixes to help building GLib on embedded systems without NLS.
2008-03-30  Matthias Clasen  <mclasen@redhat.com>

        * glib/glibintl.h:
        * glib/gstrfuncs.c:
        * glib/gutils.c: Simple fixes to help building GLib on
        embedded systems without NLS.  (#524350, Peter Kjellerstedt)

svn path=/trunk/; revision=6779
2008-03-31 03:52:57 +00:00
Matthias Clasen
7250e1dafd Fix the build with -DG_DISABLE_ASSERT. (#525060, Arfrever Frehtes
2008-03-30  Matthias Clasen  <mclasen@redhat.com>

        * glib/ghash.c: Fix the build with -DG_DISABLE_ASSERT.
        (#525060, Arfrever Frehtes Taifersar Arahesis)



svn path=/trunk/; revision=6777
2008-03-31 03:45:28 +00:00
Matthias Clasen
b9cc70aaa8 Replace occurrances of G_GNUC_PRETTY_FUNCTION by G_STRFUNC. (#524344,
2008-03-30  Matthias Clasen  <mclasen@redhat.com>

        * glib/gthread.h: Replace occurrances of G_GNUC_PRETTY_FUNCTION
        by G_STRFUNC.  (#524344, Peter, Kjellerstedt)



svn path=/trunk/; revision=6775
2008-03-31 03:39:00 +00:00
Matthias Clasen
ba16f88961 Fix a doc typo. (#524742, Hiroyuki Ikezoe)
2008-03-30  Matthias Clasen  <mclasen@redhat.com>

        * glib/gtestutils.c: Fix a doc typo. (#524742, Hiroyuki Ikezoe)



svn path=/trunk/; revision=6771
2008-03-31 03:17:54 +00:00
Claudio Saavedra
05b1004080 Bug 523877 – gbookmarkfile: avoid using g_string_append_printf() and
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
2008-03-22 23:52:39 +00:00
Emmanuele Bassi
c14b3842f2 Bug 518160 - replace two g_strdup_printf calls in GBookmarkFile
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
2008-03-22 17:01:52 +00:00
Alexander Larsson
6d1e6c60d0 Final fixes for struct statfs.f_fstypename checks (OpenBSD). (#521045)
2008-03-20  Alexander Larsson  <alexl@redhat.com>

        * configure.in:
	Final fixes for struct statfs.f_fstypename checks (OpenBSD). (#521045)
	Patch from ephraim_owns@hotmail.com


svn path=/trunk/; revision=6746
2008-03-20 11:44:12 +00:00
Tor Lillqvist
908d3ef0d4 Bug 523298 - win_iconv can't convert from UTF-8 to GB18030 (or vice versa)
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
2008-03-20 02:40:23 +00:00
Sebastian Dröge
16484fd175 Bug 522292 - Gives warnings in glib/gutils.h with GCC in C99 mode
* 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
2008-03-18 20:06:04 +00:00
Tor Lillqvist
e2ee29dd2c Don't bother defining Autoconf variables for glib.def, gmodule.def,
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
2008-03-16 10:16:57 +00:00
Michael Natterer
f4bb21aa1d make it possible to disable single-file includes by defining
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
2008-03-14 19:30:38 +00:00
Alexander Larsson
7437486b36 Use right define name for f_fstypename member check
2008-03-14  Alexander Larsson  <alexl@redhat.com>

        * glocalfile.c:
        (g_local_file_query_filesystem_info):
	Use right define name for f_fstypename member check

2008-03-14  Alexander Larsson  <alexl@redhat.com>

        * configure.in:
	Add required includes for f_fstypename member check.
	

svn path=/trunk/; revision=6703
2008-03-14 09:19:09 +00:00
Alexander Larsson
7dc75d707c Added. Added. Added. Added. Added. Added. Added. Added. Added. Added.
2008-03-14  Alexander Larsson  <alexl@redhat.com>

        * Makefile.am:
        * fen/Makefile.am: Added.
        * fen/fen-data.[ch]: Added.
        * fen/fen-dump.[ch]: Added.
        * fen/fen-helper.[ch]: Added.
        * fen/fen-kernel.[ch]: Added.
        * fen/fen-missing.[ch]: Added.
        * fen/fen-node.[ch]: Added.
        * fen/fen-sub.[ch]: Added.
        * fen/gfendirectorymonitor.[ch]: Added.
        * fen/gfenfilemonitor.[ch]: Added.
        * giomodule.c:
	Added Solaris FEN file notification backend.
	Patch from Lin Ma <Lin.Ma@Sun.COM>


svn path=/trunk/; revision=6702
2008-03-14 08:58:24 +00:00
Tor Lillqvist
553b3b613b Add lib/gio-2.0.lib and lib/gio-2.0.def.
2008-03-13  Tor Lillqvist  <tml@novell.com>

	* glib-zip.in: Add lib/gio-2.0.lib and lib/gio-2.0.def.


svn path=/trunk/; revision=6701
2008-03-13 17:12:03 +00:00
Tor Lillqvist
367d77233b Expand gio/win32/Makefile.
2008-03-12  Tor Lillqvist  <tml@novell.com>

	* configure.in: Expand gio/win32/Makefile.

2008-03-12  Tor Lillqvist  <tml@novell.com>

	Bug 517419 - gio win32 directory monitor
	Implementation by Vlad Grecescu.
	
	* win32/Makefile.am
	* win32/gwin32directorymonitor.h
	* win32/gwin32directorymonitor.c: New files.

	* giomodule.c: Set up the GWin32DirectoryMonitor plumbing.

	* Makefile.am: Add the win32 subdirectory.


svn path=/trunk/; revision=6698
2008-03-12 19:09:11 +00:00
Matthias Clasen
ed26bc056a Bump version
svn path=/trunk/; revision=6694
2008-03-12 16:19:10 +00:00
Matthias Clasen
7172ecf099 Rotate ChangeLog
svn path=/trunk/; revision=6693
2008-03-12 16:13:54 +00:00
Sebastian Dröge
0dc34bf29a Bug 316221 - G_LOCK warns about breaking strict-aliasing rules
* configure.in:
* glib/gthread.h: Prevent the compiler from warning about breaking
strict-aliasing rules when using gcc 4.3 and G_LOCK on C sources.

svn path=/trunk/; revision=6691
2008-03-12 15:36:38 +00:00
Tor Lillqvist
fb72653abc Bug 520914 - win_iconv doesn't support UCS-2
2008-03-12  Tor Lillqvist  <tml@novell.com>

	Bug 520914 - win_iconv doesn't support UCS-2
	
	* glib/win_iconv.c: Make UCS-2 just an alias for
	UTF-16. Technically this is wrong of course, but shouldn't matter
	an awful lot in practice.


svn path=/trunk/; revision=6686
2008-03-12 00:04:52 +00:00
Murray Cumming
0ae78c829d Bug 521591 – g_markup_parse_context_parse() creates GError message that
2008-03-11  Murray Cumming  <murrayc@murrayc.com>

Bug 521591 – g_markup_parse_context_parse() creates GError message that 
is invalid UTF8.

* glib/gmarkup.c (set_error): Make sure that the GError::message is 
valid UTF-8 even if it is complaining about invalid UTF-8 in the 
markup text, using _g_utf8_make_valid().

svn path=/trunk/; revision=6680
2008-03-11 15:43:25 +00:00
Matthias Clasen
7cff233d6e 2.16.1
svn path=/trunk/; revision=6671
2008-03-11 02:18:18 +00:00
Matthias Clasen
b6ab5c133d Bump version
svn path=/trunk/; revision=6668
2008-03-11 00:40:10 +00:00
Matthias Clasen
9299286b76 Updates
svn path=/trunk/; revision=6667
2008-03-11 00:39:13 +00:00
Matthias Clasen
e2a4ed3287 2.16.0
svn path=/trunk/; revision=6661
2008-03-10 18:09:06 +00:00
Matthias Clasen
53e4dfb50f Updates
svn path=/trunk/; revision=6660
2008-03-10 17:49:20 +00:00
Matthias Clasen
536278adfd Bump version to 2.16.0
svn path=/trunk/; revision=6658
2008-03-10 16:53:25 +00:00
Matthias Clasen
a416c3c0f6 Fix a typo
svn path=/trunk/; revision=6657
2008-03-10 16:50:13 +00:00
Matthias Clasen
b85f7190da Fix confusing error message. (#521028, Peter Kjellerstedt)
2008-03-10  Matthias Clasen  <mclasen@redhat.com>

        * glib/giochannel.c (g_io_channle_set_encoding): Fix confusing
        error message.  (#521028, Peter Kjellerstedt)


svn path=/trunk/; revision=6654
2008-03-10 15:55:16 +00:00
Matthias Clasen
fe751b255f Small test fixup
svn path=/trunk/; revision=6652
2008-03-10 15:13:29 +00:00
Alexander Larsson
3cacbe8178 Use struct statfs.f_fstypename if availible (e.g. on OpenBSD) Patch from
2008-03-07  Alexander Larsson  <alexl@redhat.com>

        * glocalfile.c:
        (g_local_file_query_filesystem_info):
	Use struct statfs.f_fstypename if availible (e.g. on OpenBSD)
	Patch from Jasper Lievisse Adriaanse


svn path=/trunk/; revision=6638
2008-03-07 14:36:15 +00:00
Tor Lillqvist
57eb322704 Updates.
2008-03-07  Tor Lillqvist  <tml@novell.com>

	* README.win32: Updates.


svn path=/trunk/; revision=6636
2008-03-07 01:47:26 +00:00
Tor Lillqvist
795d8733ec Remove g_uri_get_scheme.
2008-03-05  Tor Lillqvist  <tml@novell.com>

	* glib/glib.symbols: Remove g_uri_get_scheme.


svn path=/trunk/; revision=6626
2008-03-05 01:56:24 +00:00
Alexander Larsson
cb3a49ca15 Remove deprecated symbols we kept for one release.
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
2008-03-04 14:51:34 +00:00
Matthias Clasen
f3a2e2143f Add a version of G_INLINE_FUNC for __GNUC__ && __GNUC_STDC_INLINE__, patch
2008-03-03  Matthias Clasen  <mclasen@redhat.com>

        * glib/gutils.h: Add a version of G_INLINE_FUNC for
        __GNUC__ && __GNUC_STDC_INLINE__, patch by Jakub Jelinek


svn path=/trunk/; revision=6616
2008-03-03 14:42:32 +00:00
Tor Lillqvist
5ec93805fb Must set the GError also in the unexpected EOF case.
2008-03-03  Tor Lillqvist  <tml@novell.com>

	* glib/gspawn-win32.c (read_helper_report): Must set the GError
	also in the unexpected EOF case.
	(do_spawn_with_pipes): Must protect also new_argv[0].


svn path=/trunk/; revision=6612
2008-03-03 04:23:16 +00:00
Benjamin Otte
4c909358fd fix last commit.
2008-03-01  Benjamin Otte  <otte@gnome.org>

	* glib/glist.c:
	fix last commit.


svn path=/trunk/; revision=6609
2008-03-01 16:27:50 +00:00
Matthias Clasen
66c0f54221 Move docs inline
svn path=/trunk/; revision=6607
2008-02-29 21:16:21 +00:00
Tor Lillqvist
7d48fb3c81 Add some GNU libiconv compatibility: Recognize "" and "char" as aliases
2008-02-29  Tor Lillqvist  <tml@novell.com>

	* glib/win_iconv.c (name_to_codepage): Add some GNU libiconv
	compatibility: Recognize "" and "char" as aliases for the current
	locale's charset. (We use the system ANSI codepage as returned by
	GetACP().) Recognize "wchar_t" as an alias for UTF-16LE.


svn path=/trunk/; revision=6604
2008-02-28 22:59:39 +00:00
Tor Lillqvist
138c2826f0 Typo.
svn path=/trunk/; revision=6603
2008-02-28 17:54:46 +00:00
Matthew Barnes
154ebf8e78 Make 'length' parameter signed to accomodate passing negative lengths.
2008-02-27  Matthew Barnes  <mbarnes@redhat.com>

	* glib/gchecksum.[ch] (g_checksum_update),
	(g_compute_checksum_for_string): Make 'length' parameter
	signed to accomodate passing negative lengths. (#510855)


svn path=/trunk/; revision=6600
2008-02-28 01:48:00 +00:00
Tor Lillqvist
d01acfe811 Further patch by Vlad Grecescu: Drop the code path that called
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
2008-02-26 17:26:28 +00:00
Matthias Clasen
49308058d0 bump version
svn path=/trunk/; revision=6595
2008-02-25 19:38:54 +00:00
Matthias Clasen
36de18e662 2.15.6
svn path=/trunk/; revision=6593
2008-02-25 19:32:42 +00:00
Matthias Clasen
0d77163892 Add Since: markers to docs. (#518556, Jerry Yu)
2008-02-25  Matthias Clasen  <mclasen@redhat.com>

        * glib/gtestfuncs.c: Add Since: markers to docs.  (#518556,
        Jerry Yu)

svn path=/trunk/; revision=6592
2008-02-25 18:24:30 +00:00
Alexander Larsson
637fa6e325 Rename g_uri_get_scheme to g_uri_parse_scheme. Keep g_uri_get_scheme()
2008-02-25  Alexander Larsson  <alexl@redhat.com>

	* glib/glib.symbols:
        * glib/gurifuncs.[ch]:
        Rename g_uri_get_scheme to g_uri_parse_scheme.
	Keep g_uri_get_scheme() symbol for this
	unstable release to avoid breaking to many apps.


svn path=/trunk/; revision=6588
2008-02-25 13:32:04 +00:00
Alexander Larsson
8f44427912 Rename g_uri_get_scheme to g_uri_parse_scheme. Keep g_uri_get_scheme()
2008-02-25  Alexander Larsson  <alexl@redhat.com>

        * glib/gurifuncs.[ch]:
        Rename g_uri_get_scheme to g_uri_parse_scheme.
	Keep g_uri_get_scheme() symbol for this
	unstable release to avoid breaking to many apps.



svn path=/trunk/; revision=6587
2008-02-25 13:28:44 +00:00
Tor Lillqvist
1f3dac3c63 Grammar.
svn path=/trunk/; revision=6583
2008-02-25 12:33:30 +00:00
Tor Lillqvist
81419b53de Mention that the recent fix to the gspawn helper process
synchronization on Windows fixes #510664.
  

svn path=/trunk/; revision=6577
2008-02-24 22:53:52 +00:00
Tor Lillqvist
17640e78d3 New internal function.
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
2008-02-24 21:15:47 +00:00
Tor Lillqvist
6eb2b42715 Use alertable wait functions so that I/O completion routines or user-mode
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
2008-02-24 01:46:42 +00:00
Tor Lillqvist
811b86fa56 Mention G_WIN32_DLLMAIN_FOR_DLL_NAME() will be deprecated in the future.
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
2008-02-24 01:07:41 +00:00
Tor Lillqvist
3af00194ea New function. Supersedes g_win32_get_package_installation_directory() and
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
2008-02-24 00:38:01 +00:00
Matthias Clasen
28c2d53e1d Updates
svn path=/trunk/; revision=6566
2008-02-23 06:59:06 +00:00
Matthias Clasen
a24587ad09 Return NULL when the key is not found. (#513171, Дилян
2008-02-23  Matthias Clasen  <mclasen@redhat.com> 

        * glib/gkeyfile.c (g_key_file_get_string_list): Return
        NULL when the key is not found.  (#513171, Дилян Палаузов)



svn path=/trunk/; revision=6563
2008-02-23 05:25:27 +00:00
Matthias Clasen
11d7305d5a Don't test user directories for being non-null. (#517084, Yevgen Muntyan)
2008-02-23  Matthias Clasen  <mclasen@redhat.com>

        * tests/testglib.c: Don't test user directories for being
        non-null.  (#517084, Yevgen Muntyan)

svn path=/trunk/; revision=6562
2008-02-23 05:14:34 +00:00