13611 Commits

Author SHA1 Message Date
Chun-wei Fan
1f8026f8f8 Update Visual Studio Projects
Make all projects settings use the MultiByte character set when building
GLib to improve consistency.
2013-06-20 15:49:55 +08:00
A S Alam
20c630bde6 update Punjabi Translation 2013-06-14 10:05:56 -05:00
Matej Urbančič
aeafbc8a22 Updated Slovenian translation 2013-06-13 21:23:22 +02:00
Daniel Mustieles
0729dac231 Updated Spanish translation 2013-06-13 13:06:53 +02:00
Aurimas Černius
9c4d284061 Updated Lithuanian translation 2013-06-12 23:14:03 +03:00
Shankar Prasad
1f00f3d740 updated kn translations 2013-06-11 11:54:17 +05:30
Marek Černocký
5d41dd9a1f Updated Czech translation 2013-06-10 21:31:00 +02:00
Piotr Drąg
6238fb8db5 Updated Polish translation 2013-06-10 20:32:57 +02:00
Nilamdyuti Goswami
5e987336ee Assamese translation updated 2013-06-10 15:18:23 +05:30
Fran Diéguez
c2525c4508 Updated Galician translations 2013-06-10 10:18:02 +02:00
Matthias Clasen
8bd53990e1 Bump version 2013-06-09 20:15:13 -04:00
Matthias Clasen
5cd352c132 2.36.3 2.36.3 2013-06-09 18:53:15 -04:00
Matthias Clasen
cbb8446c1d Update link to documentation 2013-06-09 18:17:16 -04:00
Colin Walters
f269f51ed3 GFileEnumerator: Add some documentation about ordering
Kind of a gratuitious gaping hole in the docs...

https://bugzilla.gnome.org/show_bug.cgi?id=701680
2013-06-09 18:17:05 -04:00
Dan Winship
c2ad7d1aa5 ginetaddress: fix addr/string conversions on windows
When parsing an address, we need to re-set "len" between IPv4 and
IPv6, since WSAStringToAddress() might set it to sizeof(struct sin_addr)
when trying to parse the string as IPv4, even if it fails. Also, we
need to make sure to not pass strings to WSAStringToAddress() that it
will accept but that we don't want it to.

When stringifying an address, we need to clear the sockaddr before
filling it in, so we don't accidentally end up with an unwanted
scope_id or the like.

https://bugzilla.gnome.org/show_bug.cgi?id=701401
2013-06-09 18:16:48 -04:00
Colin Walters
ffddb55ab3 Ensure g_file_copy() does not temporarily expose private files
Previously, g_file_copy() would (on Unix) create files with the
default mode of 644.  For applications which might at user request
copy arbitrary private files such as ~/.ssh or /etc/shadow, a
world-readable copy would be temporarily exposed.

This patch is suboptimal in that it *only* fixes g_file_copy()
for the case where both source and destination are instances of
GLocalFile on Unix.

The reason for this is that the public GFile APIs for creating files
allow very limited control over the access permissions for the created
file; one can either say a file is "private" or not.  Fixing
this by adding e.g. g_file_create_with_attributes() would make sense,
except this would entail 8 new API calls for all the variants of
_create(), _create_async(), _replace(), _replace_async(),
_create_readwrite(), _create_readwrite_async(), _replace_readwrite(),
_replace_readwrite_async().  That can be done as a separate patch
later.

https://bugzilla.gnome.org/show_bug.cgi?id=699959
2013-06-09 18:16:31 -04:00
Colin Walters
ae82af8da0 g_file_copy(): Clean up logic for info query
Previously, we called g_file_query_info() *again* on the source at the
very end of the copy.  This has the lame semantics that if the source
happened to be deleted, we would fail to apply attributes to the
destination.  This could even be a security flaw.

This commit changes things so that we query info from the source
*stream* after opening - i.e. on Unix we use the proper fstat() and
friends.  That way we operate more atomically.

https://bugzilla.gnome.org/show_bug.cgi?id=699959
2013-06-09 18:16:24 -04:00
Ryan Lortie
cf1922965a g_file_set_contents(): don't fsync on ext3/4
ext3 and ext4 (for quite some time) with default mount options don't
need fsync() to ensure safety of replace-by-rename.  Stop doing that for
these filesystems.

Note: this patch also impacts ext2, which is probably not safe, but I
don't know of any way to check ext2. vs the others because they all have
the same magic numbers (short of opening /proc/mount).

This patch assumes that if BTRFS_SUPER_MAGIC is defined then so will be
EXT3_SUPER_MAGIC.

https://bugzilla.gnome.org/show_bug.cgi?id=701560
2013-06-09 18:15:54 -04:00
Ryan Lortie
ee8d3333dd g_file_set_contents: change {posix_ => }fallocate
Use fallocate() instead of posix_fallocate() so that we just fail
instead of getting the emulated version from the libc.

https://bugzilla.gnome.org/show_bug.cgi?id=701560
2013-06-09 18:15:46 -04:00
Ryan Lortie
c244222d65 g_file_set_contents(): fix simple logic error
CI FTW.
2013-06-09 18:15:34 -04:00
Ryan Lortie
dad3cb55cf 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
2013-06-09 18:15:26 -04:00
Ryan Lortie
75c0593a26 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
2013-06-09 18:15:15 -04:00
Ryan Lortie
2d827a25af 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
2013-06-09 18:15:07 -04:00
William Jon McCann
5d1969c8cb Fix property example in gobject tutorial
https://bugzilla.gnome.org/show_bug.cgi?id=692848
2013-06-09 18:13:28 -04:00
Matthias Clasen
a2f1b4b60e Trivial doc typo fix 2013-06-09 18:13:00 -04:00
Matthias Clasen
6e4b7a4ab8 Trivial documentation typos 2013-06-09 18:12:53 -04:00
Matthias Clasen
baed05fbea 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.
2013-06-09 18:11:59 -04:00
Simon Kågedal Reimer
b14e899b5e 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
2013-06-09 18:11:44 -04:00
Jason L. Quinn
bc9470f3c8 spelling fixes of 'runtine' and 'adresses' in cross.xml and running.xml, respectively
https://bugzilla.gnome.org/show_bug.cgi?id=697849
2013-06-09 18:11:32 -04:00
Giovanni Campagna
03d3a53876 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
2013-06-09 18:07:09 -04:00
Chun-wei Fan
36284c5d59 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.
2013-05-27 15:57:54 +08:00
Chun-wei Fan
f3b1bab8ad 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"
2013-05-27 13:24:58 +08:00
Shankar Prasad
e7ba0c489a updated kn translations 2013-05-14 15:27:33 +05:30
Matthias Clasen
ced0cea5bb Bump versin 2013-05-13 09:59:47 -04:00
Matthias Clasen
469d4ac68a 2.36.2 2.36.2 2013-05-13 08:26:41 -04:00
Kjartan Maraas
9ba55166dc Updated Norwegian bokmål translation 2013-05-13 11:14:48 +02:00
Мирослав Николић
22f3503414 Updated Serbian translation 2013-05-13 10:30:05 +02:00
Matthias Clasen
ca3dba9be2 Clarify GValueArray docs
Don't refer to Quicksort in the documentation of
g_value_array_sort, but just to qsort().
2013-05-09 16:05:20 -04:00
Matthias Clasen
a1a621785f Document all gtester-report options
The --subunit option was missing from the man page.
2013-05-04 21:13:30 -04:00
Matthias Clasen
3fbcf027ce Document all glib-mkenums placeholders
The @ENUMPREFIX@ placeholder was missing in the man page.
2013-05-04 21:13:24 -04:00
Matthias Clasen
3dbde50835 Document all glib-genmarshal options
The --stdinc option was missing from the man page.
2013-05-04 21:13:18 -04:00
Matthias Clasen
059f5a7e12 Fix a typo 2013-05-04 21:13:09 -04:00
Matthias Clasen
20b349ccc5 Document all gdbus-codegen options
The --help and --xml-files options were missing from the man page.
2013-05-04 21:13:02 -04:00
Dan Winship
879692b287 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
2013-05-04 21:12:54 -04:00
Matthias Clasen
91179be5a8 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.
2013-05-04 21:12:48 -04:00
Colin Walters
03086e0b0f tests/mappedfile: Also handle ENOMEM
The RHEL6.4 kernel gives me that instead of EINVAL.

https://bugzilla.gnome.org/show_bug.cgi?id=699485
2013-05-04 21:12:42 -04:00
Simon McVittie
0ba982e058 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
2013-05-02 18:37:59 +01:00
Aurimas Černius
a70f7cd043 Updated Lithuanian translation 2013-04-27 22:45:15 +03:00
Matej Urbančič
a73a14b4f9 Updated Slovenian translation 2013-04-27 21:29:11 +02:00
Andika Triwidada
eb1bbb2d66 Updated Indonesian translation 2013-04-27 09:20:08 +07:00