Ryan Lortie [Mon, 3 Jun 2013 21:49:06 +0000 (17:49 -0400)]
g_file_set_contents(): use unistd instead of stdio
Use a normal write() system call instead of fdopen() and fwrite().
This will definitely work on UNIX system and should work on Windows as
well...
As an added bonus, we can use g_close() now as well.
https://bugzilla.gnome.org/show_bug.cgi?id=701560
Ryan Lortie [Mon, 3 Jun 2013 20:16:25 +0000 (16:16 -0400)]
g_file_set_contents(): don't allocate display name
g_file_set_contents() sets a GError in the event of various failures
that count occur. It uses g_filename_display_name() in order to get the
filename to include in the messages.
Factor out the error handling to make it easier to allocate the display
name only when we need it (instead of allocating it every time).
https://bugzilla.gnome.org/show_bug.cgi?id=701560
Ryan Lortie [Mon, 3 Jun 2013 19:43:01 +0000 (15:43 -0400)]
g_file_set_contents(): use posix_fallocate()
Extents-based filesystems like knowing in advance how much data will be
written to a file in order to prevent fragmentation. If we have it, use
posix_fallocate() before writing data in g_file_set_contents().
https://bugzilla.gnome.org/show_bug.cgi?id=701560
William Jon McCann [Tue, 29 Jan 2013 23:46:43 +0000 (00:46 +0100)]
Fix property example in gobject tutorial
https://bugzilla.gnome.org/show_bug.cgi?id=692848
Matthias Clasen [Wed, 29 May 2013 02:23:58 +0000 (22:23 -0400)]
Trivial doc typo fix
Matthias Clasen [Wed, 29 May 2013 04:07:26 +0000 (00:07 -0400)]
Trivial documentation typos
Matthias Clasen [Sun, 26 May 2013 03:07:03 +0000 (23:07 -0400)]
Avoid a segfault in gdbus tool
When the interface name is invalid, we don't get an error
back from g_dbus_connection_call_sync.
Simon Kågedal Reimer [Mon, 6 May 2013 20:04:32 +0000 (22:04 +0200)]
G_GNUC_FORMAT: documentation error
Attribute should be placed just before the semicolon, not after.
As can be seen in the example.
https://bugzilla.gnome.org/show_bug.cgi?id=699779
Jason L. Quinn [Fri, 12 Apr 2013 03:43:17 +0000 (23:43 -0400)]
spelling fixes of 'runtine' and 'adresses' in cross.xml and running.xml, respectively
https://bugzilla.gnome.org/show_bug.cgi?id=697849
Giovanni Campagna [Fri, 29 Mar 2013 14:39:26 +0000 (15:39 +0100)]
GThreadedResolver: set an error if no records could be found
It is possible that the upstream servers return something, but
we then filter all results because they are of the wrong type.
In that case the API and subsequent GTask calls expect a GError
to be set.
https://bugzilla.gnome.org/show_bug.cgi?id=696857
Chun-wei Fan [Mon, 27 May 2013 07:57:54 +0000 (15:57 +0800)]
Fix the GObject Visual Studio Projects
Update G_LOG_DOMAIN to be "GLib-GObject" so that we are consistent with
the autotools builds, and that tests expecting the log domain to be
"GLib-GObject" would not fail.
Chun-wei Fan [Mon, 27 May 2013 05:23:58 +0000 (13:23 +0800)]
Fix the GLib Visual Studio Projects
Define the G_LOG_DOMAIN of the GLib DLL as "GLib", because:
-This makes it consistent with the autotools builds
-Some tests expect the log domain to be "GLib"
Shankar Prasad [Tue, 14 May 2013 09:57:33 +0000 (15:27 +0530)]
updated kn translations
Matthias Clasen [Mon, 13 May 2013 13:59:47 +0000 (09:59 -0400)]
Bump versin
Matthias Clasen [Mon, 13 May 2013 12:26:41 +0000 (08:26 -0400)]
2.36.2
Kjartan Maraas [Mon, 13 May 2013 09:14:48 +0000 (11:14 +0200)]
Updated Norwegian bokmål translation
Мирослав Николић [Mon, 13 May 2013 08:30:05 +0000 (10:30 +0200)]
Updated Serbian translation
Matthias Clasen [Thu, 9 May 2013 20:02:52 +0000 (16:02 -0400)]
Clarify GValueArray docs
Don't refer to Quicksort in the documentation of
g_value_array_sort, but just to qsort().
Matthias Clasen [Sun, 5 May 2013 01:10:43 +0000 (21:10 -0400)]
Document all gtester-report options
The --subunit option was missing from the man page.
Matthias Clasen [Sun, 5 May 2013 01:08:18 +0000 (21:08 -0400)]
Document all glib-mkenums placeholders
The @ENUMPREFIX@ placeholder was missing in the man page.
Matthias Clasen [Sun, 5 May 2013 01:05:24 +0000 (21:05 -0400)]
Document all glib-genmarshal options
The --stdinc option was missing from the man page.
Matthias Clasen [Sun, 5 May 2013 01:03:00 +0000 (21:03 -0400)]
Fix a typo
Matthias Clasen [Sun, 5 May 2013 01:01:35 +0000 (21:01 -0400)]
Document all gdbus-codegen options
The --help and --xml-files options were missing from the man page.
Dan Winship [Thu, 2 May 2013 14:14:57 +0000 (10:14 -0400)]
gbitlock: fix this to not unconditionally use futex emulation
Ryan accidentally committed some debugging code a long time ago,
causing this file to always use futex emulation even when real futex
support was available. I noticed this a while later and pointed it out
to him, and assumed he was going to fix it, but I guess he assumed I
was going to fix it, and then neither of us did...
https://bugzilla.gnome.org/show_bug.cgi?id=699500
Matthias Clasen [Fri, 3 May 2013 01:00:57 +0000 (21:00 -0400)]
Silently handle icon being NULL
While an emblemed icon without a base icon is not very
useful, no need to crash here.
This was crashing the object finalization test in gtk.
Colin Walters [Thu, 2 May 2013 15:39:11 +0000 (11:39 -0400)]
tests/mappedfile: Also handle ENOMEM
The RHEL6.4 kernel gives me that instead of EINVAL.
https://bugzilla.gnome.org/show_bug.cgi?id=699485
Simon McVittie [Thu, 2 May 2013 15:50:01 +0000 (16:50 +0100)]
GSocks5Proxy: don't crash if parsing negotiation reply fails
The GError should be initialized to NULL, otherwise we'll
"pile up" errors, then try to free an uninitialized pointer.
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Dan Winship <danw@gnome.org>
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=699493
Aurimas Černius [Sat, 27 Apr 2013 19:45:15 +0000 (22:45 +0300)]
Updated Lithuanian translation
Matej Urbančič [Sat, 27 Apr 2013 19:29:11 +0000 (21:29 +0200)]
Updated Slovenian translation
Andika Triwidada [Sat, 27 Apr 2013 02:20:08 +0000 (09:20 +0700)]
Updated Indonesian translation
Milo Casagrande [Thu, 25 Apr 2013 07:01:11 +0000 (09:01 +0200)]
[l10n] Updated Italian translation.
Piotr Drąg [Tue, 23 Apr 2013 22:01:48 +0000 (00:01 +0200)]
Updated Polish translation
Ryan Lortie [Tue, 23 Apr 2013 17:26:48 +0000 (13:26 -0400)]
Partially revert "Merge waitpid() from g_spawn_sync into gmain()"
This partially reverts commit
ce0022933c255313e010b27f977f4ae02aad1e7e.
It used to be safe to use g_spawn_sync() from processes that had their
own SIGCHLD handler because it simply called wait(). When it was
changed to depend on the GLib child watching infrastructure this meant
that GLib had to own the SIGCHLD handler.
This caused hangs in at least Pidgin.
The patch contained two other improvements to the child watch code which
we want to keep, so only revert the changes to gspawn itself.
https://bugzilla.gnome.org/show_bug.cgi?id=698081
Giovanni Campagna [Fri, 12 Apr 2013 15:25:15 +0000 (17:25 +0200)]
GVariant: fix transfer annotation
g_variant_new_from_bytes() returns a floating reference, so it
must be annotated (transfer none)
https://bugzilla.gnome.org/show_bug.cgi?id=697887
Ryan Lortie [Mon, 15 Apr 2013 21:58:15 +0000 (23:58 +0200)]
One more NEWS
Marc-André Lureau [Mon, 15 Apr 2013 16:12:50 +0000 (18:12 +0200)]
win32: add back missing _utf8 symbols on x64 builds
The _utf8 functions have been wrongly removed from GLib on x64.
https://bugzilla.gnome.org/show_bug.cgi?id=697879
Matthias Clasen [Mon, 15 Apr 2013 14:18:40 +0000 (10:18 -0400)]
2.36.1
Marek Kasik [Wed, 10 Apr 2013 11:48:49 +0000 (13:48 +0200)]
tests: Add test for disabled help options
Test whether help options are hidden when they are disabled
by g_option_context_set_help_enabled(.., FALSE).
https://bugzilla.gnome.org/show_bug.cgi?id=697652
Marek Kasik [Tue, 9 Apr 2013 16:03:53 +0000 (18:03 +0200)]
Don't show help options when help is disabled
Check whether help is enabled when creating help text
in g_option_context_get_help().
https://bugzilla.gnome.org/show_bug.cgi?id=697652
Shankar Prasad [Fri, 5 Apr 2013 11:52:26 +0000 (17:22 +0530)]
Updated kn translations
Shankar Prasad [Fri, 5 Apr 2013 10:50:05 +0000 (16:20 +0530)]
Updated kn translations
Shankar Prasad [Fri, 5 Apr 2013 10:49:01 +0000 (16:19 +0530)]
Updated kn translations
Shankar Prasad [Fri, 5 Apr 2013 07:08:53 +0000 (12:38 +0530)]
Updated kn translations
Ryan Lortie [Thu, 4 Apr 2013 15:12:42 +0000 (11:12 -0400)]
gtype: interface-after-init exception for gtk#
gtk# also has a problem with the new interface-after-init restriction
that nobody noticed until now. Add an exception for them as well so
that they have a cycle or so to sort things out.
https://bugzilla.gnome.org/show_bug.cgi?id=687659
Ryan Lortie [Thu, 4 Apr 2013 13:31:11 +0000 (09:31 -0400)]
gtype: interface-after-init exception for glibmm
glibmm has a pretty difficult-to-solve problem caused by our recent
change to deny addition of interfaces to classes after initialisation.
They're looking for a long-term workaround for the problem, but in the
meantime we can allow the registration to succeed (with warning) if the
class looks like it's being defined by gtkmm.
https://bugzilla.gnome.org/show_bug.cgi?id=697229
Hib Eris [Sun, 31 Mar 2013 14:40:34 +0000 (16:40 +0200)]
Fix compile error in gdbusmessage.c for win64
https://bugzilla.gnome.org/show_bug.cgi?id=696973
Andika Triwidada [Fri, 29 Mar 2013 06:02:18 +0000 (13:02 +0700)]
Updated Indonesian translation
Ryan Lortie [Mon, 25 Mar 2013 21:39:21 +0000 (17:39 -0400)]
GLib 2.36.0
Colin Walters [Sun, 17 Mar 2013 22:33:59 +0000 (18:33 -0400)]
g_file_copy(): Ensure G_FILE_COPY_OVERWRITE preserves permissions
We need to close the stream *before* applying the file modes, because
g_file_replace() allocates a temporary file. At the moment we're
applying the modes to the extant file, then immediately rename()ing
over it with the default perms.
This regressed with commit
166766a89fcd173dcd6ffda11f902029928f7f28.
The real fix here is to have g_file_create_with_info() so that we can
atomically create a file with the permissions we want.
https://bugzilla.gnome.org/show_bug.cgi?id=696014
Ani Peter [Mon, 25 Mar 2013 17:38:52 +0000 (23:08 +0530)]
Completed for Malayalam
A S Alam [Mon, 25 Mar 2013 17:20:00 +0000 (22:50 +0530)]
Punjabi: Translation updated (aalam)
Krishnababu Krothapalli [Mon, 25 Mar 2013 09:56:55 +0000 (15:26 +0530)]
Updated Telugu Translations
Krishnababu Krothapalli [Wed, 28 Nov 2012 10:36:58 +0000 (16:06 +0530)]
Updated Telugu Translations
Murray Cumming [Mon, 25 Mar 2013 09:16:49 +0000 (10:16 +0100)]
Corrected some GLIB_AVAILABLE_IN_*
Petr Kovar [Sun, 24 Mar 2013 19:20:55 +0000 (20:20 +0100)]
Update Czech translation
Guido Günther [Sat, 23 Mar 2013 11:41:15 +0000 (12:41 +0100)]
Init padding to NULL to avoid a missing initializer warning
like
sessionmanager-presence-generated.c:920:1: warning: missing initializer [-Wmissing-field-initializers]
sessionmanager-presence-generated.c:920:1: warning: (near initialization for ‘_org_gnome_session_manager_presence_skeleton_vtable.padding’) [-Wmissing-field-initializers]
https://bugzilla.gnome.org/review?bug=696108
Yuri Myasoedov [Sat, 23 Mar 2013 17:12:04 +0000 (21:12 +0400)]
Updated Russian translation
Jiro Matsuzawa [Sat, 23 Mar 2013 10:10:01 +0000 (19:10 +0900)]
[l10n] Update Japanese translation
ManojKumar Giri [Fri, 22 Mar 2013 12:56:42 +0000 (18:26 +0530)]
Updated Odia Language along with FUEL implementation
ManojKumar Giri [Fri, 22 Mar 2013 12:52:51 +0000 (18:22 +0530)]
Updated Odia Language along with FUEL implementation
ManojKumar Giri [Fri, 22 Mar 2013 12:41:16 +0000 (18:11 +0530)]
Updated Odia Language along with FUEL implementation
Sweta Kothari [Fri, 22 Mar 2013 10:56:24 +0000 (16:26 +0530)]
Updated gujarati file
Sandeep Sheshrao Shedmake [Fri, 22 Mar 2013 10:16:01 +0000 (15:46 +0530)]
Updated Marathi Translations
Shantha kumar [Fri, 22 Mar 2013 09:47:35 +0000 (15:17 +0530)]
Tamil Translations Updated
Murray Cumming [Thu, 21 Mar 2013 12:10:36 +0000 (13:10 +0100)]
Corrected a GLIB_AVAILABLE_IN_*
Rajesh Ranjan [Thu, 21 Mar 2013 09:28:09 +0000 (14:58 +0530)]
hindi translation
Tristan Van Berkom [Wed, 16 Jan 2013 07:26:08 +0000 (16:26 +0900)]
Added examples to GTestDBus documentation
Gabor Kelemen [Wed, 20 Mar 2013 23:22:58 +0000 (00:22 +0100)]
Updated Hungarian translation
Inaki Larranaga Murgoitio [Wed, 20 Mar 2013 08:35:28 +0000 (09:35 +0100)]
Updated Basque language
Victor Ibragimov [Tue, 19 Mar 2013 21:30:07 +0000 (22:30 +0100)]
[l10n] Added Tadjik translation
Ryan Lortie [Tue, 19 Mar 2013 03:28:27 +0000 (23:28 -0400)]
More clean up for Unicode corrigendum #9
Fix some more testcases.
Ryan Lortie [Tue, 19 Mar 2013 03:01:08 +0000 (23:01 -0400)]
Small NEWS change
Ryan Lortie [Tue, 19 Mar 2013 02:57:55 +0000 (22:57 -0400)]
tests: remove a pair of testcases that fail in en_CA
These testcases don't work with the Canadian date format, so remove
them.
Ján Kyselica [Mon, 18 Mar 2013 20:22:18 +0000 (21:22 +0100)]
Updated slovak translation
Matthias Clasen [Mon, 18 Mar 2013 19:23:07 +0000 (15:23 -0400)]
Another update
Christian Persch [Mon, 18 Mar 2013 13:01:28 +0000 (14:01 +0100)]
goption: g_option_context_new allows NULL for parameter_string
Chun-wei Fan [Mon, 18 Mar 2013 08:52:36 +0000 (16:52 +0800)]
Update Visual Studio property sheets
"Install" gtask.h... it's needed.
Matthias Clasen [Mon, 18 Mar 2013 03:30:34 +0000 (23:30 -0400)]
g_hash_table_get_keys: Improve docs slightly
https://bugzilla.gnome.org/show_bug.cgi?id=630284
Matthias Clasen [Mon, 18 Mar 2013 03:01:21 +0000 (23:01 -0400)]
Small cleanup to tutorial headings
This makes all the subsection headers consistent.
https://bugzilla.gnome.org/show_bug.cgi?id=659428
David King [Fri, 17 Feb 2012 14:54:31 +0000 (14:54 +0000)]
docs: Elaborate replacement for g_strncasecmp
https://bugzilla.gnome.org/show_bug.cgi?id=568405
David Schleef [Sun, 17 Mar 2013 22:56:17 +0000 (15:56 -0700)]
Add warning to g_base64_decode()
https://bugzilla.gnome.org/show_bug.cgi?id=696015
Patrick Ohly [Thu, 7 Mar 2013 17:44:44 +0000 (18:44 +0100)]
GDBusMethodInvocation: leak and potential crash
_g_dbus_method_invocation_new is said to allow method_info == NULL,
but will crash inside g_dbus_method_info_ref when the method_info
really is NULL, because g_dbus_method_info_ref does not allow NULL as
parameter. Fixed by checking for NULL in _g_dbus_method_invocation_new
itself.
The leak itself happens because _g_dbus_method_invocation_new stores a
new reference to the method_info without also unreferencing it. Fixed
by adding the missing unref, protected by an if because the pointer
may be NULL.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=695376
Rūdolfs Mazurs [Sun, 17 Mar 2013 18:08:27 +0000 (20:08 +0200)]
Updated Latvian translation
Ihar Hrachyshka [Sun, 17 Mar 2013 13:40:46 +0000 (16:40 +0300)]
Updated Belarusian translation.
Gheyret Kenji [Sun, 17 Mar 2013 04:54:19 +0000 (13:54 +0900)]
Updated Uyghur translation
Signed-off-by: Gheyret Kenji <gheyret@gmail.com>
Stephan Bergmann [Fri, 15 Mar 2013 16:30:24 +0000 (17:30 +0100)]
gmacros: Ensure GUINT32/64_SWAP_LE_BE macros parenthesize arguments
Like all macros, we need to parenthesize arguments to ensure the order
of operations is correct.
See the mail thread starting at
<http://lists.fedoraproject.org/pipermail/devel/2013-March/180302.html>
"GCC produced wrong code in gvfs-1.14.2-3.fc18.x86_64" for how this
caused trouble with GVFS (which in turn caused trouble with
LibreOffice, where running "soffice sftp://.../.../test.odt" to access
an .odt file via GVFS failed to properly type-detect that file as a
Writer document and produced bogus error messages about the file being
broken).
https://bugzilla.gnome.org/show_bug.cgi?id=695925
Duarte Loreto [Fri, 15 Mar 2013 12:55:57 +0000 (12:55 +0000)]
Updated Portuguese translation and converted to New Spelling (Novo AO)
Sébastien Wilmet [Thu, 14 Mar 2013 22:24:18 +0000 (23:24 +0100)]
Doc: clarify set_property() vfunc
Implementations "don't need to ...". It was not clear what happen
if they do it all the same.
https://bugzilla.gnome.org/show_bug.cgi?id=695887
Sébastien Wilmet [Thu, 14 Mar 2013 21:56:54 +0000 (22:56 +0100)]
Doc: clarify a bit g_signal_connect_object()
"the object" can be a bit confusing for a beginner, he can think it is
the @instance.
https://bugzilla.gnome.org/show_bug.cgi?id=695887
Martin Srebotnjak [Thu, 14 Mar 2013 22:17:33 +0000 (23:17 +0100)]
Updated Slovenian translation
Sweta Kothari [Thu, 14 Mar 2013 10:58:11 +0000 (16:28 +0530)]
Updated gujarati file
Sweta Kothari [Thu, 14 Mar 2013 09:54:20 +0000 (15:24 +0530)]
Updated gujarati file
Emilio Pozuelo Monfort [Mon, 4 Mar 2013 19:03:26 +0000 (20:03 +0100)]
live-g-file: test hidden files
We test for traditional Unix dot-leading files as well as
for files listed in the .hidden file.
https://bugzilla.gnome.org/show_bug.cgi?id=695147
Ryan Lortie [Tue, 12 Mar 2013 16:53:42 +0000 (12:53 -0400)]
glocalfileinfo: Stop using PATH_MAX for .hidden
We were using PATH_MAX to size a static array for reading lines from
the .hidden file. Some platforms (Hurd) don't declare a PATH_MAX.
Switch to using g_file_get_contents() and g_str_split('\n') instead.
Also take the time to clean up a bit with a switch to using a 'set mode'
GHashTable (since this code was originally written before we had those).
This patch is largely based on a patch from Emilio Pozuelo Monfort (who
also reported the bug).
https://bugzilla.gnome.org/show_bug.cgi?id=695147
Gheyret Kenji [Wed, 13 Mar 2013 11:48:15 +0000 (20:48 +0900)]
Updated Uyghur translation
Signed-off-by: Gheyret Kenji <gheyret@gmail.com>
Gheyret Kenji [Wed, 13 Mar 2013 11:39:02 +0000 (20:39 +0900)]
Updated Uyghur translation
Signed-off-by: Gheyret Kenji <gheyret@gmail.com>
Joe Hansen [Tue, 12 Mar 2013 22:14:39 +0000 (23:14 +0100)]
Updated Danish translation
Carles Ferrando [Tue, 12 Mar 2013 22:02:33 +0000 (23:02 +0100)]
[l10n] Updated Catalan (Valencian) translation
Gil Forcada [Tue, 12 Mar 2013 22:02:24 +0000 (23:02 +0100)]
[l10n] Updated Catalan translation
Claude Paroz [Tue, 12 Mar 2013 17:17:12 +0000 (18:17 +0100)]
Updated French translation