Commit Graph

3154 Commits

Author SHA1 Message Date
Tor Lillqvist
30942cba28 Not used on Windows. (unalias_lang): Don't do anything on Windows, there
2005-04-08  Tor Lillqvist  <tml@novell.com>

	* glib/gutils.c (read_aliases): Not used on Windows.
	(unalias_lang): Don't do anything on Windows, there is no
	/usr/share/locale/locale.alias file..
2005-04-08 06:48:17 +00:00
Tor Lillqvist
53b26858c8 Cosmetics. 2005-04-08 06:37:50 +00:00
5
224e0b76f6 Declare glib_top_share_dir and exe_top_share_dir only in G_OS_WIN32.
Thu Apr  7 22:51:15 2005  <yosh@gimp.org>

        * glib/gutils.c (g_get_system_data_dirs): Declare glib_top_share_dir
        and exe_top_share_dir only in G_OS_WIN32.
2005-04-08 05:52:20 +00:00
Gareth Owen
ee8a538538 Updated British English translation 2005-04-08 01:01:56 +00:00
Tor Lillqvist
93fc6a6c1f After investigating more closely the actual use cases of this function, I
2005-04-08  Tor Lillqvist  <tml@novell.com>

	* glib/gutils.c (g_get_system_data_dirs): After investigating more
	closely the actual use cases of this function, I understand better
	what it should do. In addition to the Windows COMMON_APPDATA and
	COMMON_DOCUMENTS folders, also return the "share" subfolders of
	GLib's installation location and the application .exe's
	installation location, hoping that either matches what the
	function's caller is looking for.
2005-04-08 00:40:02 +00:00
Tor Lillqvist
153215759c Use wide char API if available, and store dll name in UTF-8.
2005-04-08  Tor Lillqvist  <tml@novell.com>

	* glib/gutils.h (G_WIN32_DLLMAIN_FOR_DLL_NAME): Use wide char API
	if available, and store dll name in UTF-8.
2005-04-07 23:46:38 +00:00
Matthias Clasen
4fe1315d5e Avoid memory leaks in borderline cases. (#172612, Morten Welinder)
2005-04-05  Matthias Clasen  <mclasen@redhat.com>

	* glib/gfileutils.c (get_contents_stdio): Avoid memory
	leaks in borderline cases.  (#172612, Morten Welinder)
2005-04-05 04:09:49 +00:00
Matthias Clasen
112be25742 Clarify docs in some places. (#172404, Morten Welinder)
2005-04-04  Matthias Clasen  <mclasen@redhat.com>

	* glib/gconvert.c: Clarify docs in some places. (#172404,
	Morten Welinder)
2005-04-05 03:56:40 +00:00
Tor Lillqvist
77d03e79dd Mention related bug number. 2005-04-05 00:55:03 +00:00
Matthias Clasen
b73f494fab Undef G_CAN_INLINE if G_IMPLEMENT_INLINES is defined. This was the pre-2.6
2005-04-03  Matthias Clasen  <mclasen@redhat.com>

	* glib/gutils.h: Undef G_CAN_INLINE if G_IMPLEMENT_INLINES is
	defined. This was the pre-2.6 behaviour, and without it,
	G_IMPLEMENT_INLINES cannot be used in multiple .c files
	at all.  (#165852, Dave Benson)
2005-04-04 03:45:13 +00:00
Matthias Clasen
0914ea84e3 Add a note regarding waitpid(-1).
2005-04-01  Matthias Clasen  <mclasen@redhat.com>

	* glib/gmain.c (g_child_watch_source_new): Add a note regarding
	waitpid(-1).
	(g_child_watch_source_init_multi_threaded):
	(g_child_watch_source_init_single): Don't use SA_RESTART,
	since it causes problems on at least one platform. (#168352)
2005-04-01 21:40:43 +00:00
Miloslav Trmac
4d3aaff67c Updated Czech translation.
2005-03-31  Miloslav Trmac  <mitr@volny.cz>

	* cs.po: Updated Czech translation.
2005-03-31 09:08:15 +00:00
Steven Michael Murphy
b838e1c303 Added new Language, Kinyarwanda (rw), to this package 2005-03-31 06:22:19 +00:00
Estêvão Samuel Procópio
242c4bf763 Updated Brazilian Portuguese Translation. 2005-03-30 22:40:46 +00:00
Sven Neumann
ec2d35edc3 handle the unlikely case that no bytes are read from the file and allocate
2005-03-30  Sven Neumann  <sven@gimp.org>

	* glib/gfileutils.c (get_contents_stdio): handle the unlikely case
	that no bytes are read from the file and allocate an empty string.
2005-03-30 21:59:40 +00:00
Tor Lillqvist
0f88e05d5b Typo. 2005-03-30 12:03:39 +00:00
Tor Lillqvist
3e78c3c95d Always claim file descriptors open to devices are readable, since we can't
2005-03-30  Tor Lillqvist  <tml@novell.com>

	* glib/giowin32.c (g_io_win32_fd_get_flags_internal): Always claim
	file descriptors open to devices are readable, since we can't
	know. fstat() doesn't gve any useful information.
2005-03-30 12:01:27 +00:00
Matthias Clasen
ce1509b6ae Clarify the docs for g_ptr_array_free and g_ptr_array_remove_range.
2005-03-29  Matthias Clasen  <mclasen@redhat.com>

	* glib/tmpl/arrays_pointer.sgml: Clarify the docs for
	g_ptr_array_free and g_ptr_array_remove_range.  (#170148,
	#170149, Jared Lash)
2005-03-29 13:51:34 +00:00
Matthias Clasen
46fda0cf41 Clarify the docs for g_ptr_array_free. (#170149, Jared Lash)
2005-03-29  Matthias Clasen  <mclasen@redhat.com>

	* glib/tmpl/arrays_pointer.sgml: Clarify the docs for
	g_ptr_array_free.  (#170149, Jared Lash)
2005-03-29 13:47:23 +00:00
Tor Lillqvist
dfb8990512 Add Win32 warnings regarding the child setup function.
2005-03-29  Tor Lillqvist  <tml@novell.com>

	* glib/tmpl/spawn.sgml: Add Win32 warnings regarding the child
	setup function.
2005-03-29 08:27:02 +00:00
Tor Lillqvist
8ced6d2478 [Win32] Use GetSystemTimeAsFileTime() instead of time() and
2005-03-29  Tor Lillqvist  <tml@novell.com>

	* glib/gmain.c (g_get_current_time): [Win32] Use
	GetSystemTimeAsFileTime() instead of time() and
	GetTickCount(). Much simpler.
2005-03-29 08:24:48 +00:00
Tor Lillqvist
52013430a4 If the event fired, assign f->revents=f->events. We can't know whether the
2005-03-29  Tor Lillqvist  <tml@novell.com>

	* glib/gmain.c (g_poll): If the event fired, assign
	f->revents=f->events. We can't know whether the upper layer using
	the event actually is readable, writeable or what, so say that all
	the conditions hold. Remove the ResetEvent() call that has been
	ifdeffed out anyway for a long time. Remove an "#ifdef 1" and
	#endif pair of lines, that code is not optional.
2005-03-29 08:00:53 +00:00
Matthias Clasen
8e9a4d50df Add tests for g_date_get_iso8601_week_of_year().
2005-03-28  Matthias Clasen  <mclasen@redhat.com>

	* tests/date-test.c:
	* tests/testgdate.c: Add tests for
	g_date_get_iso8601_week_of_year().

	* glib/gdate.c (g_date_get_iso8601_week_of_year):
	Fix the calculation.  (#169858, Jon-Kare Hellan)
2005-03-28 05:22:56 +00:00
Tor Lillqvist
acd35e1044 Apparently AC_LIBTOOL_WIN32_DLL isn't deprecated after all, and in fact
2005-03-27  Tor Lillqvist  <tml@novell.com>

	* configure.in: Apparently AC_LIBTOOL_WIN32_DLL isn't deprecated
	after all, and in fact necessary with HEAD libtool.
2005-03-27 19:14:14 +00:00
Matthias Clasen
45dc8b5c9a Don't do the second lookup if the name was already canonical. (#171502,
2005-03-25  Matthias Clasen  <mclasen@redhat.com>

	* gparam.c (param_spec_ht_lookup): Don't do the second
	lookup if the name was already canonical.  (#171502, Morten
	Welinder)
2005-03-26 03:00:44 +00:00
Tor Lillqvist
6e51f47e13 [Win32] Fix corner case bug when environment variable value is exactly one
2005-03-23  Tor Lillqvist  <tml@novell.com>

	* glib/gutils.c (g_getenv): [Win32] Fix corner case bug when
	environment variable value is exactly one character.
2005-03-23 14:53:35 +00:00
Manish Singh
4635159309 cast away any constness on assignment.
Tue Mar 22 14:15:23 2005  Manish Singh <yosh@gimp.org>

        * gparam.c (g_param_spec_internal): cast away any constness on
        assignment.
2005-03-22 22:16:10 +00:00
Matthias Clasen
1fc2daa443 Add g_try_malloc0
2005-03-21  Matthias Clasen  <mclasen@redhat.com>

	* glib/glib.symbols: Add g_try_malloc0
2005-03-22 04:11:56 +00:00
Matthias Clasen
213e90aa18 Add g_try_new, g_try_new0, g_try_renew and g_try_malloc0. (#169611, Stefan
2005-03-21  Matthias Clasen  <mclasen@redhat.com>

	* glib/gmem.h: Add g_try_new, g_try_new0, g_try_renew and
	g_try_malloc0.  (#169611, Stefan Kost)

	* glib/gmem.c: Implement g_try_malloc0.
2005-03-22 04:09:17 +00:00
Matthias Clasen
103fe49b8e Add g_try_new, g_try_new0 and g_try_renew. (#169611, Stefan Kost)
2005-03-21  Matthias Clasen  <mclasen@redhat.com>

	* glib/gmem.h: Add g_try_new, g_try_new0 and
	g_try_renew.  (#169611, Stefan Kost)
2005-03-22 04:02:13 +00:00
Matthias Clasen
169da6ebcb forgotten log entry 2005-03-22 03:49:01 +00:00
Matthias Clasen
39f7b0680c Avoid forcing extra newlines when using template files. (#171005)
2005-03-21  Matthias Clasen  <mclasen@redhat.com>

	* glib-mkenums.in: Avoid forcing extra newlines when using
	template files.  (#171005)
2005-03-22 03:48:05 +00:00
Matthias Clasen
4bd613efc4 Don't copy strings which are marked as static. Don't allow non-canonical
2005-03-20  Matthias Clasen  <mclasen@redhat.com>

	* gparam.c (g_param_spec_internal): Don't copy strings
	which are marked as static. Don't allow non-canonical static
	names.

	* gparam.h (GParamFlags): Add G_PARAM_STATIC_{NAME,NICK,BLURB}
	flags.  (#160655, Ben Maurer)
2005-03-21 04:55:26 +00:00
Tor Lillqvist
446c1f1aa8 Minor printout change, now identical as in glib-2-6 branch. 2005-03-20 20:08:23 +00:00
Tor Lillqvist
dc58f526d8 Typo. 2005-03-20 11:52:09 +00:00
Tor Lillqvist
c8237ec1cd Close the process handle if the called doesn't want it also in the case
2005-03-20  Tor Lillqvist  <tml@novell.com>

	* glib/gspawn-win32.c (do_spawn_with_pipes): Close the process
	handle if the called doesn't want it also in the case without a
	helper process.
	(g_spawn_sync): Don't ask for a child pid which we don't need.
2005-03-20 11:46:27 +00:00
Tor Lillqvist
86a32e7dc0 On Win32, use GetSystemTimeAsFileTime() instead of GetTickCount().
2005-03-20  Tor Lillqvist  <tml@novell.com>

	* glib/gtimer.c: On Win32, use GetSystemTimeAsFileTime() instead
	of GetTickCount(). (#159507)
2005-03-20 11:35:48 +00:00
Tor Lillqvist
398008dac5 glib/gmessages.c (g_log_default_handler) Move the Win32 code that asks the
2005-03-20  Tor Lillqvist  <tml@novell.com>

	* glib/gmessages.c (g_log_default_handler)
	* glib/gutils.c (g_get_prgname): Move the Win32 code that asks the
	program name from the system to g_get_prgname(). Do output the pid
	also on Win32 (useful in case there are several instances of the
	same program running).
2005-03-20 10:52:38 +00:00
Tor Lillqvist
20378332ae Print more detailled output from the timer tests. Don't print home
2005-03-20  Tor Lillqvist  <tml@novell.com>

	* tests/testglib.c (main): Print more detailled output from the
	timer tests. Don't print home directory twice. Test
	g_win32_error_message().

	* tests/spawn-test.c (run_tests): On Win32, run netstat instead of
	ipconfig. On Windows XP collecting output from ipconfig doesn't
	seem to work for some reason.
2005-03-20 10:43:38 +00:00
Hans Breuer
6b55164587 handle galiasdef.c (although completely useless for msvc build)
2005-03-18  Hans Breuer  <hans@breuer.org>

	* glib/makefile.msc.in : handle galiasdef.c (although completely
	useless for msvc build)

	* glib/gbacktrace.c glib/gmessage.c : need at least _WIN_VER 0x0401
	for IsDebuggerPresent()

	* gobject/makefile.msc.in : handle gobjectaliasdef.c
2005-03-18 17:44:51 +00:00
Matthias Clasen
ae98c7d6c5 Update the documentation, reflecting the fact that the special case for
2005-03-17  Matthias Clasen  <mclasen@redhat.com>

	* glib/gkeyfile.c: Update the documentation, reflecting the
	fact that the special case for !group_name --> start_group
	got removed.  (#170566, Tim-Philipp Müller)
2005-03-17 19:28:15 +00:00
Manish Singh
096502464e Shut up CVS 2005-03-17 04:02:27 +00:00
Adam Weinberger
62ff63dad1 Updated Canadian English translation.
* en_CA.po: Updated Canadian English translation.
2005-03-16 04:51:00 +00:00
Matthias Clasen
4faa0650e5 Warn if there already is a main group. (#170445, Jeff Franks)
2005-03-15  Matthias Clasen  <mclasen@redhat.com>

	* glib/goption.c (g_option_context_set_main_group): Warn
	if there already is a main group.  (#170445, Jeff Franks)
2005-03-15 13:24:22 +00:00
Matthias Clasen
3448a27829 Make work again.
2005-03-14  Matthias Clasen  <mclasen@redhat.com>

	* abicheck.sh: Make work again.

	* gsourceclosure.c: Fix a typo.

	Make PLT-reduction work with gcc4, and don't include
	everything in gobjectalias.h:

	* gobject.symbols: Group symbols by header and source
	file.
	* makegobjectalias.pl: Protect definitions by the same
	preprocessor symbols used to guard the headers. Move
	the alias declarations to a separate file which is
	produced when calling makegalias.pl -def
	* Makefile.am (gobjectaliasdef.c): Add a rule to
	build this file.
	* *.c: Include gobjectalias.h after the other i
        GLib headers, include gobjectaliasdef.c at the bottom.
2005-03-14 06:47:51 +00:00
Manish Singh
a145c9ed09 delete a bunch of dead code.
Sun Mar 13 22:01:17 2005  Manish Singh  <yosh@gimp.org>

        * tests/array-test.c: delete a bunch of dead code.
2005-03-14 06:01:51 +00:00
Manish Singh
dc232b4900 remove spurious IA prefix from g_quark_try_string.
Sun Mar 13 21:28:47 2005  Manish Singh  <yosh@gimp.org>

        * glib/gdataset.c: remove spurious IA prefix from g_quark_try_string.
2005-03-14 05:30:08 +00:00
Manish Singh
f3db853476 Shut up CVS 2005-03-14 05:07:52 +00:00
Matthias Clasen
f1c70360e5 Some fixes 2005-03-14 05:06:17 +00:00
Matthias Clasen
48d6188aaf Still need to include glibconfig.h 2005-03-14 04:30:25 +00:00