Commit Graph

13631 Commits

Author SHA1 Message Date
Cédric Valmary
9ee83d88a3 Update Occitan translation 2016-10-12 08:18:41 +00:00
Wylmer Wang
879ef0b516 Updated Chinese (China) translation 2014-03-10 12:36:52 +00:00
Shankar Prasad
98cf1c18cf updated kn.po 2014-02-05 15:18:44 +05:30
Shantha kumar
07661c74f8 Tamil Translations Updated 2014-01-30 15:09:53 +05:30
Milo Casagrande
3b7331f1cb [l10n] Updated Italian translation. 2013-09-10 22:01:14 +02:00
Balázs Úr
2b8484e143 Updated Hungarian translation 2013-08-26 19:40:37 +02:00
Chun-wei Fan
85b4abfaf8 gio/gdbusaddress.c: Silence RunDLL errors
The RunDLL command call during get_session_address_dbus_launch() was
expecting _g_win32_run_session_bus@16 and g_win32_run_session_bus
on Win32 and Win64 respectively at least when GLib is compiled with MSVC,
not g_win32_run_session_bus@16, which caused annoying RunDLL error dialogue
boxes to show up during the use of GtkApplication (such as when running
gtk3-demo-application on Windows), prevented GtkApplication items from
being run for more than one time during the lifespan of the program,
and this also interfered with some GTK+ tests, causing them to fail.

Update accordingly to address the issue.
2013-08-21 20:30:28 +08:00
Dimitris Spingos
6bb365fae8 Updated Greek translation 2013-08-18 09:38:51 +03:00
Ryan Lortie
1d6cd4b1b3 GLib 2.36.4 2.36.4 2013-08-07 16:41:40 +02:00
Chun-wei Fan
f5163fea0d Visual Studio Builds: "Install" gdbus-codegen 2013-08-05 14:32:05 +08:00
Yuri Myasoedov
f4fb40a0f5 Updated Russian translation 2013-08-04 09:26:42 +04:00
Dan Winship
2d3837563f gnetworkmonitornetlink: handle default route via device
If the default route is via a device rather than a particular IP
address, then neither RTA_DST nor RTA_GATEWAY will be present in the
RTM_NEWROUTE message, and so GNetworkMonitorNetlink would ignore it,
and then think there was no default route. (This could happen with
certain kinds of VPNs, if they were set to route all traffic through
the VPN.)

Fix this by recognizing routes that specify RTA_OIF ("output
interface") instead of RTA_GATEWAY.

https://bugzilla.gnome.org/show_bug.cgi?id=701609
(cherry picked from commit c08ef6c165)
2013-08-01 16:50:55 +01:00
Sandeep Sheshrao Shedmake
6d8ee5ef40 Updated Marathi localization 2013-07-23 10:34:27 +05:30
Christian Kirbach
e1c950bda7 Updated German translation 2013-07-14 12:22:18 +02:00
Gil Forcada
5518ee2d5a [l10n] Update Catalan translation 2013-07-05 02:27:05 +02:00
Andika Triwidada
27fc015cb9 Updated Indonesian translation 2013-07-02 20:18:49 +07:00
Rafael Ferreira
baf4f9d43f Updated Brazilian Portuguese translation 2013-06-28 17:24:50 -03:00
Мирослав Николић
81590baa2a Updated Serbian translation 2013-06-25 23:25:32 +02:00
Colin Walters
05d430065d Revert "g_file_set_contents(): don't fsync on ext3/4"
We didn't actually do any real-world testing of this, and
unsurprisingly it turns out to break in at least one widely-used
configuration (Fedora 19 x86_64, ext4 on LVM).

This reverts commit 9d0c17b501.

https://bugzilla.gnome.org/show_bug.cgi?id=701560
2013-06-20 16:47:33 -04:00
Chun-wei Fan
5747064ecb Add MSVC Projects for Utility Programs
Build and "install" the gio-querymodules and gdbus utility programs so that
the Visual Studio builds of GLib is more comprehensive.  The Python scripts
for the GDBus codegen will be added to "installation" later.
2013-06-20 15:51:12 +08:00
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