Commit Graph

3015 Commits

Author SHA1 Message Date
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
Matthias Clasen
7c7cd785f5 Documentation updates
svn path=/trunk/; revision=6561
2008-02-23 05:06:18 +00:00
Tor Lillqvist
b60f5cf11b glib/gutf8.c (g_get_charset) glib/gconvert.c (g_locale_from_utf8) Clarify
2008-02-21  Tor Lillqvist  <tml@novell.com>
	
	* glib/gutf8.c (g_get_charset)
	* glib/gconvert.c (g_locale_from_utf8)
	* docs/reference/glib/running.sgml: Clarify character set
	issues on Windows.


svn path=/trunk/; revision=6551
2008-02-21 13:07:49 +00:00
Tor Lillqvist
87d23f18ec Change the g_error() to g_message() to avoid stopping on warnings. At
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
2008-02-19 22:53:58 +00:00
Sven Neumann
becae8108c moved ChangeLog entries to their proper location in docs/reference
svn path=/trunk/; revision=6537
2008-02-19 13:30:26 +00:00
Marco Barisione
a74c1a1a7c Avoid some useless casts from const gchar * to gchar *. (#516597, patch by
2008-02-17  Marco Barisione  <marco@barisione.org>

	* glib/gregex.c: (translate_compile_error), (g_regex_new): Avoid some
	useless casts from const gchar * to gchar *.  (#516597, patch by
	Yevgen Muntyan)

svn path=/trunk/; revision=6528
2008-02-17 14:26:30 +00:00
Marco Barisione
7e0677b076 Don't return duplicate matches when matching empty strings. (#515944) Add
2008-02-17  Marco Barisione  <marco@barisione.org>

	* glib/gregex.c: (match_info_new), (g_match_info_next): Don't return
	duplicate matches when matching empty strings.  (#515944)
	* tests/regex-test.c: Add tests.

svn path=/trunk/; revision=6527
2008-02-17 14:07:32 +00:00
Hans Breuer
521e741d56 define CSIDL_MYPICTURES if not available use G_STRFUNC instead of compiler
2008-02-17  Hans Breuer  <hans@breuer.org>

	* glib/gutils.c : define CSIDL_MYPICTURES if not available
	* gthread/gthread-win32.c : use G_STRFUNC instead of compiler 
	specific __FUNCTION__


svn path=/trunk/; revision=6526
2008-02-17 12:49:12 +00:00
Ryan Lortie
8cb3db68f0 add G_FILE_ATTRIBUTE_TRASH_ITEM_COUNT
2008-02-13  Ryan Lortie  <desrt@desrt.ca>

        * docs/reference/gio/gio-sections.txt: add
        G_FILE_ATTRIBUTE_TRASH_ITEM_COUNT

2008-02-13  Ryan Lortie  <desrt@desrt.ca>

        * gfileinfo.h: add G_FILE_ATTRIBUTE_TRASH_ITEM_COUNT


svn path=/trunk/; revision=6511
2008-02-13 20:27:18 +00:00
Tor Lillqvist
81e37c3d41 Doc change: Deprecate passing anything but NULL for the "package"
2008-02-13  Tor Lillqvist  <tml@novell.com>

	* glib/gwin32.c: Doc change: Deprecate passing anything but NULL
	for the "package" parameter to
	g_win32_get_package_installation_directory() and
	g_win32_get_package_installation_subdirectory().


svn path=/trunk/; revision=6508
2008-02-13 11:59:14 +00:00
Matthias Clasen
fa206b48be Bump version
svn path=/trunk/; revision=6505
2008-02-11 22:33:02 +00:00
Matthias Clasen
69cb5eda41 2.15.5
svn path=/trunk/; revision=6503
2008-02-11 22:30:35 +00:00
Matthias Clasen
05752f1d81 Updates
svn path=/trunk/; revision=6502
2008-02-11 21:51:23 +00:00
Matthias Clasen
f5542c90e3 Make the g_test_add macro work with gcc 4.3
2008-02-10  Matthias Clasen <mclasen@redhat.com>

        * glib/gtestutils.h: Make the g_test_add macro work with
        gcc 4.3

        * tests/gobject/paramspec-test.c: Adapt to recent changes in
        GParamGType initialization.


svn path=/trunk/; revision=6500
2008-02-11 18:28:42 +00:00
Matthias Clasen
92aaf63ec0 Fix a typo
svn path=/trunk/; revision=6499
2008-02-11 17:35:44 +00:00