Ryan Lortie [Mon, 5 Sep 2011 23:41:16 +0000 (19:41 -0400)]
GDBus object manager example: update -sections.txt
Ryan Lortie [Mon, 5 Sep 2011 23:35:16 +0000 (19:35 -0400)]
gio docs: ignore private .h files
Ryan Lortie [Mon, 5 Sep 2011 23:10:04 +0000 (19:10 -0400)]
gio docs: don't scan subdirectories
This clears up >50% of the huge warning spew from building GIO docs.
Ryan Lortie [Mon, 5 Sep 2011 23:00:11 +0000 (19:00 -0400)]
docs fixups for glib/
Ryan Lortie [Mon, 5 Sep 2011 22:46:59 +0000 (18:46 -0400)]
GObject docs: resolve broken links
Some links were broken due to typos, because functionality was removed
in GLib 2.0 or for various other reasons. Fix up as many of them as is
reasonable.
Ryan Lortie [Mon, 5 Sep 2011 22:05:05 +0000 (18:05 -0400)]
gobject docs: add symbols from GMainLoop boxing
Ryan Lortie [Mon, 5 Sep 2011 21:54:52 +0000 (17:54 -0400)]
Back out some changes to docs Makefiles
Commit
ab0e9dbfa76e056f875e969c0d7b6e133ec75431 introduced some changes
to the documentation Makefiles designed to clean-up the process of
deciding which headers get scanned for the docs.
Unfortunately, the gtk-doc Makefile doesn't use HFILE_GLOB for actually
generating the docs -- only for knowing when it needs to redo the
generation. Because of this, we need to use IGNORE_HFILES or otherwise
we get hundreds of symbols in the *-unused.txt files.
Revert the changes that that commit made to the docs Makefiles (but
leave the generation of the *-public-headers.txt files in place).
Duarte Loreto [Mon, 5 Sep 2011 21:30:09 +0000 (22:30 +0100)]
Updated Portuguese translation
Ryan Lortie [Mon, 5 Sep 2011 15:39:04 +0000 (11:39 -0400)]
one missed docs fix
Ryan Lortie [Mon, 5 Sep 2011 15:36:48 +0000 (11:36 -0400)]
include 'hmac' in the docs
It wasn't added to glib-docs.sgml, so it wasn't being included in the html.
Ryan Lortie [Mon, 5 Sep 2011 15:30:58 +0000 (11:30 -0400)]
gtk-doc fixups for glib/
Ryan Lortie [Mon, 5 Sep 2011 14:29:09 +0000 (10:29 -0400)]
doc: Remove reference to non-existent #GChildWatch
The g_spawn_ documentation was talking about #GChildWatch, which doesn't
exist. Refer to g_child_watch_add() instead.
Alexandre Franke [Mon, 5 Sep 2011 11:22:37 +0000 (13:22 +0200)]
Fix missing semi-colon after struct definition
Fran Dieguez [Mon, 5 Sep 2011 09:55:50 +0000 (11:55 +0200)]
Updated galician translations
Jorge González [Mon, 5 Sep 2011 06:24:30 +0000 (08:24 +0200)]
Updated Spanish translation
Ryan Lortie [Mon, 5 Sep 2011 04:38:14 +0000 (00:38 -0400)]
pa.po: prefer pa_IN date/time formats
It's clear that the other GDateTime formats in this file correspond with
those in pa_IN, not pa_PK, so prefer those for the newly-added strings
as well.
Ryan Lortie [Mon, 5 Sep 2011 04:03:39 +0000 (00:03 -0400)]
Populate missing GDateTime format strings
Use the glibc locale database to add GDateTime strings only for those locales
that had not specifically added them for themselves.
Some locales have different translations from what is in the C library and we
leave those alone with this commit.
Ryan Lortie [Mon, 5 Sep 2011 04:01:02 +0000 (00:01 -0400)]
po/: update all .po files with 'make update-po'
This should get the proper Report-Msgid-Bugs-To: into each file.
Ryan Lortie [Sun, 4 Sep 2011 22:01:55 +0000 (18:01 -0400)]
g_date_time_format: honour T_FMT_AMPM for '%r'
We had the 12 hour time format hard-coded to "%02d:%02d:%02d %s" but it
actually changes depending on the locale. Just with the other formats,
use nl_langinfo() if we have it, otherwise fall back on gettext().
Ryan Lortie [Mon, 5 Sep 2011 00:35:31 +0000 (20:35 -0400)]
GDateTime: translate "AM"/"PM", not "am"/"pm"
"AM" and "PM" are the POSIX locale values.
Modify the 14 translations that have been updated since then to save a
headache to those translators.
Ryan Lortie [Mon, 5 Sep 2011 01:00:54 +0000 (21:00 -0400)]
Update en_CA.po (Canadian English translation)
Ryan Lortie [Mon, 5 Sep 2011 01:31:13 +0000 (21:31 -0400)]
po/Makefile.in.in: intltool compatibility fixes
Our infrastructure for updating the glib20.pot file was incompatible
with intltool in a couple of ways:
- we didn't set the Report-Msgid-Bugs-To to
- we used paths relative to the $(top_srcdir), rather than po/
This resulted in spamming of pointless changes to the .po files whenever
'make update-po' was run (since all of the translators are using
intltool-based tools).
Matthias Clasen [Mon, 5 Sep 2011 00:06:53 +0000 (20:06 -0400)]
Only use gcc-specific options when the compiler is gcc
The -Wstrict-aliasing option that we use to compile atomic
tests does not exist with compilers other than gcc, so
don't pass it to those.
https://bugzilla.gnome.org/show_bug.cgi?id=652272
https://bugzilla.gnome.org/show_bug.cgi?id=656152
Dan Winship [Sun, 4 Sep 2011 21:33:21 +0000 (17:33 -0400)]
update .gitignore
Dan Winship [Sun, 4 Sep 2011 21:17:11 +0000 (17:17 -0400)]
fix a few warnings on non-Linux
mostly #ifdeffing functions that are only called by #ifdeffed code
Patrick Welche [Thu, 1 Sep 2011 09:10:38 +0000 (10:10 +0100)]
Avoid getmntinfo
- getmntinfo can take struct statfs or statvfs depending on the
OS. Use getvfsstat and if not found getfsstat instead. Idea from
Dan Winship.
- g_local_file_query_filesystem_info(): use statvfs.f_fstypename
if available
https://bugzilla.gnome.org/show_bug.cgi?id=617949
Fran Dieguez [Sun, 4 Sep 2011 16:37:11 +0000 (18:37 +0200)]
Updated galician translations
Ihar Hrachyshka [Sun, 4 Sep 2011 15:52:29 +0000 (18:52 +0300)]
Updated Belarusian translation.
Aurimas Černius [Sun, 4 Sep 2011 15:31:33 +0000 (18:31 +0300)]
Updated Lithuanian translation
Dan Winship [Sun, 4 Sep 2011 14:33:37 +0000 (10:33 -0400)]
gio/tests/tls-interaction: fix two sporadic errors
The threaded tests are using the default main context in the worker
thread, but were not g_main_context_acquire()ing it first, which meant
that g_tls_interaction_invoke_ask_password() in the main thread would
sometimes succeed in acquiring it itself and thus performing the
operation in the wrong thread. Fix that.
Also, we can't unref the loop from the worker thread, because the main
thread isn't holding a reference on it, and so it might end up being
destroyed while that thread is still inside g_main_loop_quit().
Dan Winship [Sun, 4 Sep 2011 12:42:31 +0000 (08:42 -0400)]
gsocket: fix win32 build
https://bugzilla.gnome.org/show_bug.cgi?id=658157
Dan Winship [Sun, 4 Sep 2011 12:42:03 +0000 (08:42 -0400)]
configure: fix win32 build
Only require -lresolv on unix, like before
https://bugzilla.gnome.org/show_bug.cgi?id=645336
Ryan Lortie [Sun, 4 Sep 2011 00:12:53 +0000 (20:12 -0400)]
g_date_time_format: improve support for alt digits
Improve a few situations where g_date_time_format() was getting the
padding wrong when displaying alt digits (eg: Arabic numerals) for
formatting time.
We now depend on nl_langinfo (_NL_CTYPE_OUTDIGITn_WC) to do the
conversion, which is very likely glibc-specific, but our previous method
relied on a glibc-specific printf() feature, so no harm done there.
Add a configure check for nl_langinfo (_NL_CTYPE_OUTDIGITn_WC).
Uncomment a few testcases that were failing previously.
https://bugzilla.gnome.org/show_bug.cgi?id=658107
Dan Winship [Sat, 3 Sep 2011 23:49:19 +0000 (19:49 -0400)]
g_network_address_parse: deprecate symbolic port names
(which shouldn't ever have been part of the API. Grr.)
Solaris /etc/services doesn't even have "http", which was causing
tests/network-address to fail...
Dan Winship [Sat, 3 Sep 2011 23:14:16 +0000 (19:14 -0400)]
gsocket: fix g_socket_details_from_fd() on Solaris
On Solaris, getsockname() on an unconnected socket gives an addrlen of
0 and doesn't set the sockaddr. So use the SO_DOMAIN sockopt to find
the socket family in that case. (SO_DOMAIN doesn't exist everywhere,
so we can't use it unconditionally. Also, we have to only use it if
getsockname() fails, since SO_DOMAIN returns a bogus value for
accept()ed sockets on both Linux and Solaris...)
Dan Winship [Sat, 3 Sep 2011 22:37:43 +0000 (18:37 -0400)]
configure: check if -lsocket is needed (for Solaris)
Also, link libgio to -lresolv explicitly, rather than depending on
getting it implicitly via the libasyncns build (which should
eventually be going away).
https://bugzilla.gnome.org/show_bug.cgi?id=645336
Ryan Lortie [Sat, 3 Sep 2011 23:44:13 +0000 (19:44 -0400)]
Revert "g_date_time_format: support %D"
This reverts commit
46ce7907720074089040275280bb20208bafeb6a.
git-bz mishap (I think?)
Og B. Maciel [Sat, 3 Sep 2011 22:39:01 +0000 (18:39 -0400)]
Merged improvements from 2-28 branch Brazilian Translations from Adorilson Bezerra <adorilson@gmail.com>.
Og B. Maciel [Sat, 3 Sep 2011 21:50:36 +0000 (17:50 -0400)]
Updated Brazilian Portuguese translation.
Changwoo Ryu [Sat, 3 Sep 2011 12:15:43 +0000 (21:15 +0900)]
Update Korean translation
Kjartan Maraas [Sat, 3 Sep 2011 11:47:44 +0000 (13:47 +0200)]
Added Norwegian bokmål translation
Jorge González [Sat, 3 Sep 2011 11:38:38 +0000 (13:38 +0200)]
Updated Spanish translation
Matthias Clasen [Sat, 3 Sep 2011 03:36:03 +0000 (23:36 -0400)]
gdatetime: Fix locale-changing code
As pointed out by Ryan Lortie, the code didn't actually ever
switch back to the old locale.
https://bugzilla.gnome.org/show_bug.cgi?id=658104
Ryan Lortie [Sat, 3 Sep 2011 01:12:16 +0000 (21:12 -0400)]
g_date_time_format: add standards notes to the doc
Explicitly mention C99's strftime() in the documentation for
g_date_time_format() as the one that we aim for compatibility with.
Specifically list the formats we do not support as well as the extra
ones that we borrow from glibc.
Ryan Lortie [Sat, 3 Sep 2011 01:04:02 +0000 (21:04 -0400)]
GDateTime: test _format against strftime()
Test g_date_time_format() against strftime(). This test found quite a
few cases of incorrect behaviour on our part (fixes already committed
for those).
Ryan Lortie [Sat, 3 Sep 2011 01:03:33 +0000 (21:03 -0400)]
GDateTime test: plug a couple of leaks
Ryan Lortie [Sat, 3 Sep 2011 00:54:51 +0000 (20:54 -0400)]
g_date_time_format: rip out non-working %W format
Our implementation of %W is incorrect. Nobody should want to use this
format anyway and the implementation is non-trivial, so rip it out
rather than fixing it.
Remove the testcase for %W as well.
Ryan Lortie [Sat, 3 Sep 2011 00:53:02 +0000 (20:53 -0400)]
g_date_time_format: clarify documentation
Add some clarification to the documentation for %g, %G, %V and %u
formats (which all concern themselves with ISO 8601 week dates).
Ryan Lortie [Fri, 2 Sep 2011 23:38:45 +0000 (19:38 -0400)]
g_date_time_format: support %D
%D represents the date in mm/dd/yy format.
https://bugzilla.gnome.org/show_bug.cgi?id=658061
Ryan Lortie [Fri, 2 Sep 2011 23:34:33 +0000 (19:34 -0400)]
g_date_time_format: small fixups
Add missing 'break;' from the case: block for %c. Reorder the cases so
that %F comes before %g/%G and %n comes in its correct alphabetical
order.
Ryan Lortie [Fri, 2 Sep 2011 23:33:32 +0000 (19:33 -0400)]
g_date_time_format: fix padding for some formats
%e is supposed to be space-padded and %W is supposed to be 0-padded
Adjust the testcase accordingly since it expects the wrong behaviour.
Ryan Lortie [Sat, 3 Sep 2011 01:02:27 +0000 (21:02 -0400)]
GDateTime test: don't test removed %N
Ryan Lortie [Fri, 2 Sep 2011 18:53:21 +0000 (14:53 -0400)]
g_date_time_format: support %g and %G
These are the 2-digit and 4-digit ISO week-numbering years.
https://bugzilla.gnome.org/show_bug.cgi?id=658061
Ryan Lortie [Fri, 2 Sep 2011 17:38:03 +0000 (13:38 -0400)]
g_date_time_format: drop %N format
%N is not specified in any standards document, but we use it to display
the number of microseconds.
The fact that our our current implementation of it is nearly useless
(since it does not zero-pad) coupled with the high chance that a future
version of the C standard may specify it with another meaning means that
we should drop it.
https://bugzilla.gnome.org/show_bug.cgi?id=658061
Javier Jardón [Fri, 2 Sep 2011 16:22:14 +0000 (17:22 +0100)]
g_date_time_format: support %w
%w represents the day of the week as a decimal, range 0 to 6,
Sunday being 0.
https://bugzilla.gnome.org/show_bug.cgi?id=658061
Javier Jardón [Fri, 2 Sep 2011 16:09:07 +0000 (17:09 +0100)]
g_date_time_format: support %C
%C represents the century number (year/100) as a 2-digit integer
https://bugzilla.gnome.org/show_bug.cgi?id=658061
Javier Jardón [Fri, 2 Sep 2011 15:32:21 +0000 (16:32 +0100)]
g_date_time_format: support %c
%c represents the preferred date and time representation for the
current locale.
https://bugzilla.gnome.org/show_bug.cgi?id=658061
Javier Jardón [Fri, 2 Sep 2011 13:52:37 +0000 (14:52 +0100)]
g_date_time_format: support %V
%V represents the ISO 8601 week number of the current year as a
decimal number, range 01 to 53, where week 1 is the first week
that has at least 4 days in the new year
https://bugzilla.gnome.org/show_bug.cgi?id=658061
Ihar Hrachyshka [Fri, 2 Sep 2011 17:56:39 +0000 (20:56 +0300)]
Updated Belarusian translation.
Chun-wei Fan [Fri, 2 Sep 2011 00:39:54 +0000 (08:39 +0800)]
Update Visual C++ README.txt's a bit
LibFFI 3.0.10 is now out officially...
Daniel Nylander [Thu, 1 Sep 2011 20:24:07 +0000 (22:24 +0200)]
Updated Swedish translation
Daniel Nylander [Thu, 1 Sep 2011 20:22:32 +0000 (22:22 +0200)]
Updated Swedish translation
Will Thompson [Thu, 1 Sep 2011 18:28:57 +0000 (14:28 -0400)]
gdbus-codegen: post-process all interfaces when parsing >1 file
This also fixes a crash when you run gdbus-codegen with no arguments.
https://bugzilla.gnome.org/show_bug.cgi?id=656323
Signed-off-by: David Zeuthen <davidz@redhat.com>
Kjartan Maraas [Wed, 31 Aug 2011 19:17:10 +0000 (21:17 +0200)]
Updated Norwegian bokmål translation
Ryan Lortie [Wed, 31 Aug 2011 01:31:40 +0000 (21:31 -0400)]
Revert "gdatetime: Add g_date_time_source_new()"
This reverts three commits:
-
1feb752996b404965a2f58b29a569a273d4374fa
-
5763c631473539746646697e6a775f6eacaa08e2
-
21a538934091e1449e0479daf066fa20df2dc2ef
https://bugzilla.gnome.org/show_bug.cgi?id=655129
Pavel Holejsovsky [Tue, 30 Aug 2011 14:20:55 +0000 (16:20 +0200)]
Make GMainLoop, GMainContext and GSource boxed types
Also add some annotations for better usage of these types in bindings.
https://bugzilla.gnome.org/show_bug.cgi?id=657725
Chun-wei Fan [Wed, 31 Aug 2011 05:01:04 +0000 (13:01 +0800)]
Update Win32 and VS Readme files
Tell people about the GNOME Live! page that outlines building
GLib and its dependencies with Visual C++.
Ryan Lortie [Wed, 31 Aug 2011 01:13:08 +0000 (21:13 -0400)]
es.po: stop translating "kB" to "KiB", etc.
"kB" is used by GLib to mean 1000 bytes exactly -- not 1024. It is
therefore incorrect to translate this to KiB. Same for the other units.
The original commit
ef3e5917ca1239b39db2cb433c4306d0152f18f5 fixing this
problem was reverted, so I'm applying it again.
See http://mail.gnome.org/archives/gnome-i18n/2011-July/msg00078.html
for more information.
Dan Winship [Tue, 16 Aug 2011 23:12:59 +0000 (19:12 -0400)]
g_get_monotonic_time: fix race condition
Since there was nothing guaranteeing synchronization of the
assignments to checked and clockid, it would be possible for one
thread to set clockid = CLOCK_MONOTONIC, and for another thread to see
checked = TRUE but still clockid = CLOCK_REALTIME.
https://bugzilla.gnome.org/show_bug.cgi?id=655129
Ryan Lortie [Tue, 30 Aug 2011 13:45:52 +0000 (09:45 -0400)]
unix signal watch: make API match other sources
Change the unix signal watch API to match other sources in both
available functions, names of those functions and order of the
parameters to the _full function.
https://bugzilla.gnome.org/show_bug.cgi?id=657705
Javier Jardón [Tue, 30 Aug 2011 21:52:59 +0000 (22:52 +0100)]
glib.doap: Add glib to "platform" category
Jorge González [Tue, 30 Aug 2011 17:14:04 +0000 (19:14 +0200)]
Updated Spanish translation
Jorge González [Tue, 30 Aug 2011 17:00:15 +0000 (19:00 +0200)]
Updated Spanish translation
Stef Walter [Sun, 28 Aug 2011 18:24:56 +0000 (20:24 +0200)]
gio: Add GTlsInteraction interaction method invocation guarantees
* Add 'invoke' style method, which can be used to call an interaction
from any thread. The interaction will be run in the appropriate
#GMainContext
* Sync methods can be called whether main loop is running or not.
* Derived classes can choose to implement only sync or async
interaction method, and the invoke method will fill in the blanks.
* Documentation for the above.
* Tests for the above.
https://bugzilla.gnome.org/show_bug.cgi?id=657567
Tomas Bzatek [Tue, 30 Aug 2011 16:00:49 +0000 (18:00 +0200)]
glocalfile: Fix the grammar
Matthias Clasen [Tue, 30 Aug 2011 15:44:57 +0000 (11:44 -0400)]
Post-release version bump
Matthias Clasen [Tue, 30 Aug 2011 15:10:40 +0000 (11:10 -0400)]
2.29.18
Bastien Nocera [Fri, 26 Aug 2011 15:36:12 +0000 (16:36 +0100)]
gio: Error out when we cannot modify a GAppInfo
g_desktop_app_info_set_as_default_for_type() and
g_desktop_app_info_set_as_last_used_for_type () require the
application's ID, but depending on how the GAppInfo was created,
we might not be have one, and would thus silently fail to set
the default application, or last used application.
https://bugzilla.gnome.org/show_bug.cgi?id=657445
Matthias Clasen [Tue, 30 Aug 2011 14:25:42 +0000 (10:25 -0400)]
More updates
Dan Winship [Sat, 27 Aug 2011 15:33:43 +0000 (11:33 -0400)]
gio/tests/gdbus-peer: make this work on non-Linux unixes
The test was using a socket in a temporary directory, but not actually
creating that temporary directory. This worked fine on Linux since it
actually ended up using an abstract socket instead, but failed on
unixes without abstract sockets.
https://bugzilla.gnome.org/show_bug.cgi?id=657517
Matthias Clasen [Tue, 30 Aug 2011 04:00:37 +0000 (00:00 -0400)]
Add a forgotten section
Matthias Clasen [Tue, 30 Aug 2011 04:00:21 +0000 (00:00 -0400)]
More doc additions
Matthias Clasen [Tue, 30 Aug 2011 03:55:48 +0000 (23:55 -0400)]
Fix a doc comment
Matthias Clasen [Tue, 30 Aug 2011 03:42:24 +0000 (23:42 -0400)]
Clean up gobject docs
Matthias Clasen [Tue, 30 Aug 2011 03:36:27 +0000 (23:36 -0400)]
Correct a doc typo
Matthias Clasen [Tue, 30 Aug 2011 03:33:48 +0000 (23:33 -0400)]
Remove no-longer existing api
Dan Winship [Sat, 27 Aug 2011 23:46:51 +0000 (19:46 -0400)]
GSocketAddress: create IPv4 addresses for IPv6 mapped-IPv4 addresses
IPv6-mapped-IPv4 addresses are annoying. Just translate them to real
IPv4 addresses.
based on a patch from Jonny Lamb
https://bugzilla.gnome.org/show_bug.cgi?id=646082
Matthias Clasen [Tue, 30 Aug 2011 01:43:50 +0000 (21:43 -0400)]
Add a 'since 2.30' index to gobject docs
Matthias Clasen [Mon, 29 Aug 2011 23:02:33 +0000 (19:02 -0400)]
Don't distribute MAINTAINERS
...it does not exist anymore.
Matthias Clasen [Mon, 29 Aug 2011 22:29:16 +0000 (18:29 -0400)]
First round of NEWS updates for 2.29.18
David Zeuthen [Mon, 29 Aug 2011 20:46:45 +0000 (16:46 -0400)]
GDBusObjectManagerServer: Add locking
Signed-off-by: David Zeuthen <davidz@redhat.com>
David Zeuthen [Mon, 29 Aug 2011 20:20:50 +0000 (16:20 -0400)]
GDBusObjectManagerClient: Add locking
Signed-off-by: David Zeuthen <davidz@redhat.com>
David Zeuthen [Mon, 29 Aug 2011 19:29:27 +0000 (15:29 -0400)]
GDBusObjectProxy: Add locking
Signed-off-by: David Zeuthen <davidz@redhat.com>
Matthias Clasen [Mon, 29 Aug 2011 19:18:29 +0000 (15:18 -0400)]
Don't call close on invalid fds
If an fd is -1, don't call close() on it, since that leads to
EBDAF and complaints from valgrind.
https://bugzilla.gnome.org/show_bug.cgi?id=657593
David Zeuthen [Mon, 29 Aug 2011 19:19:42 +0000 (15:19 -0400)]
GDBusObjectSkeleton: Add locking
Signed-off-by: David Zeuthen <davidz@redhat.com>
David Zeuthen [Mon, 29 Aug 2011 18:23:02 +0000 (14:23 -0400)]
GDBusInterfaceSkeleton: Add locking
Signed-off-by: David Zeuthen <davidz@redhat.com>
Stef Walter [Sun, 28 Aug 2011 04:58:29 +0000 (06:58 +0200)]
Print out URL to HTML coverage report after 'make lcov'
* For easy clicking
https://bugzilla.gnome.org/show_bug.cgi?id=657540
Colin Walters [Mon, 29 Aug 2011 19:05:34 +0000 (15:05 -0400)]
gdatetime: Tweak g_date_time_source_new() documentation
Matthias Clasen [Mon, 29 Aug 2011 18:49:32 +0000 (14:49 -0400)]
Spelling fixes
Spelling fixes in comments and docs, provided by
Kjartan Maraas in bug 657336.
Colin Walters [Wed, 17 Aug 2011 17:09:27 +0000 (13:09 -0400)]
Add Linux timerfd_create() backend for g_date_time_source_new()
This makes the source efficient on Linux.
Tested on Fedora 15 x86_64 + updates, kernel-2.6.40-4.fc15.x86_64
Also tested fallback code for unsupported flag TFD_TIMER_CANCEL_ON_SET
on kernel 2.6.38.
https://bugzilla.gnome.org/show_bug.cgi?id=655129