Dan Winship [Fri, 18 Nov 2011 20:05:34 +0000 (15:05 -0500)]
GTlsCertificate: support unencrypted PKCS#8 private keys
PKCS#8 is the "right" way to encode private keys. Although the APIs do
not currently support encrypted keys, we should at least support
unencrypted PKCS#8 keys.
https://bugzilla.gnome.org/show_bug.cgi?id=664321
Nicolas Dufresne [Thu, 17 Nov 2011 18:04:04 +0000 (13:04 -0500)]
[gio] Terminate connect call when application proxy is used
The connect_async() calls would never terminated when an application side
proxy was being used. Note we also skip over TLS handshake in this case,
as the application may have to do some proxy handshake before.
Giovanni Campagna [Thu, 17 Nov 2011 21:30:29 +0000 (22:30 +0100)]
GMain: allow NULL context to g_source_attach
Documentation says it's fine and means default context, but the annotations
are missing (and thus bindings would complain).
https://bugzilla.gnome.org/show_bug.cgi?id=664302
Giovanni Campagna [Thu, 17 Nov 2011 21:29:18 +0000 (22:29 +0100)]
GPollable*Stream: expose source methods to introspection
GSource has been introspectable for a while, so can stop skipping
methods of GPollableInputStream/OutputStream that return it.
https://bugzilla.gnome.org/show_bug.cgi?id=664302
Murray Cumming [Fri, 18 Nov 2011 09:46:35 +0000 (10:46 +0100)]
gsignal.h: Remove trailing comma
Ryan Lortie [Fri, 18 Nov 2011 09:41:07 +0000 (09:41 +0000)]
We need <locale.h> in gsettingsschema.c now
for LC_TIME (since we moved a bunch of code over from gsettings.c).
Nicolas Dufresne [Thu, 17 Nov 2011 18:01:05 +0000 (13:01 -0500)]
Clear proxy address upon retry
The proxy address was not cleared between each attempt. That would lead
to leak or worse, trying to do the proxy handshake on the final
destination address. To make all this safer, I have regroup all the cleanup
where the iterations starts.
https://bugzilla.gnome.org/show_bug.cgi?id=664141
Sjoerd Simons [Mon, 14 Nov 2011 21:06:07 +0000 (22:06 +0100)]
Silence compiler warnings
Fix several warnings for format strings (-Werror=format-security) and
set but unused variables (-Wunused-but-set-variable)
https://bugzilla.gnome.org/show_bug.cgi?id=664144
Jürg Billeter [Fri, 4 Nov 2011 21:48:56 +0000 (22:48 +0100)]
GKeyFile: Accept empty files
It already accepts files consisting solely of whitespace.
https://bugzilla.gnome.org/show_bug.cgi?id=663432
Simon McVittie [Tue, 18 Oct 2011 10:14:20 +0000 (11:14 +0100)]
Document exactly what g_time_val_to_iso8601() produces
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=537637
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Alexandre Rostovtsev [Wed, 16 Nov 2011 15:05:46 +0000 (15:05 +0000)]
_g_dbus_get_machine_id(): check /etc/machine-id too
machine-id can be in /etc or in /var/lib/dbus.
[amended with slightly revised error handling -smcv]
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=663928
Rico Tzschichholz [Thu, 17 Nov 2011 18:46:54 +0000 (19:46 +0100)]
Remove redefinition of typedef 'GSettingsSchemaSource'
Ryan Lortie [Thu, 17 Nov 2011 17:40:36 +0000 (17:40 +0000)]
start on the NEWS
Ryan Lortie [Thu, 17 Nov 2011 17:33:19 +0000 (17:33 +0000)]
g_settings_new_full(): more docs
Ryan Lortie [Thu, 17 Nov 2011 14:02:39 +0000 (14:02 +0000)]
add plugin example for GSettingsSchemaSource
Ryan Lortie [Thu, 17 Nov 2011 10:06:49 +0000 (10:06 +0000)]
Add gtk-doc for gsettingsschema{,source}
Matthias Clasen [Thu, 17 Nov 2011 04:24:46 +0000 (23:24 -0500)]
'make dist' fixes
Matthias Clasen [Thu, 17 Nov 2011 03:25:16 +0000 (22:25 -0500)]
settings-source test: Check returned error as well
Matthias Clasen [Thu, 17 Nov 2011 03:12:21 +0000 (22:12 -0500)]
Trivial typo fix
Jasper St. Pierre [Wed, 16 Nov 2011 19:51:45 +0000 (14:51 -0500)]
gsettings: add annotations for _new_full()
The path and backend arguments to g_settings_new_full are optional.
Jasper St. Pierre [Wed, 16 Nov 2011 19:53:03 +0000 (14:53 -0500)]
schema source: avoid introspection confusion
Any method that has its prefix'd argument as its first parameter will be
interpreted by introspection as a method. We don't want this, so we need
to swap the first two parameters.
Jasper St. Pierre [Wed, 16 Nov 2011 19:51:27 +0000 (14:51 -0500)]
gsettingsschema: Use the trusted parameter
Ryan Lortie [Wed, 16 Nov 2011 10:38:04 +0000 (10:38 +0000)]
Add test case and fix some bugs
Add the first test case for the schema source functionality and fix a
couple of bugs that got uncovered by that.
Ryan Lortie [Wed, 16 Nov 2011 10:37:30 +0000 (10:37 +0000)]
Add g_settings_schema_source_new_from_directory()
It is now possible for plugin loading systems to do the right thing.
Ryan Lortie [Tue, 15 Nov 2011 12:42:02 +0000 (12:42 +0000)]
Clarify docs/params for 'schema' vs 'schema id'
Clean up our parameter naming and documentation to draw a clearer line
between a schema and its identifier.
Ryan Lortie [Tue, 15 Nov 2011 12:38:01 +0000 (12:38 +0000)]
Add g_settings_new_full() taking GSettingsSchema
Ryan Lortie [Tue, 15 Nov 2011 12:16:50 +0000 (12:16 +0000)]
GSettings: add 'settings-schema' property
Ideally we'd have called this 'schema', but it is already used.
Ryan Lortie [Tue, 15 Nov 2011 12:28:28 +0000 (12:28 +0000)]
add boxed types for GSettingSchema{,Source}
Ryan Lortie [Tue, 15 Nov 2011 11:56:18 +0000 (11:56 +0000)]
Drop the 'schema_name' field of GSettings
This is strictly redundant now that we can get the ID from the schema
itself. Its only other purpose was to get the schema name from the
set_property() call to the constructed() call and we can avoid that by
doing the schema lookup at the time of the property being set.
Ryan Lortie [Tue, 15 Nov 2011 11:39:12 +0000 (11:39 +0000)]
speak of 'schema id' rather than 'schema name'
Schemas are identified by id='' in the xml file, so we should use the
same language on the C and GObject property APIs.
Ryan Lortie [Tue, 15 Nov 2011 11:31:58 +0000 (11:31 +0000)]
GSettings: deprecate 'schema' property
This should have been called 'schema-name'.
Ryan Lortie [Tue, 15 Nov 2011 08:03:38 +0000 (08:03 +0000)]
drop the now-trivial g_settings_schema_new
Combine it into g_settings_constructed()
Ryan Lortie [Tue, 15 Nov 2011 08:00:16 +0000 (08:00 +0000)]
new public header: gsettingsschema.h
Expose some GSettingsSchemaSource and GSettingsSchema APIs.
These are mostly useless so far...
Ryan Lortie [Tue, 15 Nov 2011 07:47:56 +0000 (07:47 +0000)]
Add non-aborting g_settings_schema_source_lookup()
And rewrite g_settings_schema_new() in terms of it
Ryan Lortie [Tue, 15 Nov 2011 07:31:20 +0000 (07:31 +0000)]
GSettingSchemaSource: add refcounting
Ryan Lortie [Tue, 15 Nov 2011 07:24:48 +0000 (07:24 +0000)]
GSettingsSchema: use our own linked lists
Switch from GSList for the list of schema sources to using our own
linked list type called GSettingsSchemaSource.
Ryan Lortie [Tue, 15 Nov 2011 07:16:48 +0000 (07:16 +0000)]
GSettingsSchema: alter our 'reverse' technology
Instead of building a reversed linked list by prepending in order and
then reversing it at the end, prepend in reverse by iterating backwards
through the directories (to get a list in-order when we're done).
Ryan Lortie [Mon, 14 Nov 2011 16:15:58 +0000 (17:15 +0100)]
move GSettingsSchemaKey to gsettingsschema.c
These functions no longer have anything to do with GSettings itself, so
they should not be in that file anymore.
GSettings still wants direct access to the GSettingsSchemaKey structure,
so put that one in gsettingsschema-internal.h.
Ryan Lortie [Mon, 14 Nov 2011 16:08:31 +0000 (17:08 +0100)]
GSettingsSchemaKey: store the GSettingsSchema*
Ryan Lortie [Mon, 14 Nov 2011 16:03:57 +0000 (17:03 +0100)]
g_settings_schema_key_init: take GSettingsSchema*
instead of of GSettings *
Ryan Lortie [Mon, 14 Nov 2011 16:02:04 +0000 (17:02 +0100)]
add internal g_settings_schema_get_name()
Ryan Lortie [Sun, 13 Nov 2011 22:47:49 +0000 (23:47 +0100)]
rename GSettingsKeyInfo to GSettingsSchemaKey
Ryan Lortie [Sun, 13 Nov 2011 22:38:47 +0000 (23:38 +0100)]
GSettingsKeyInfo: rename field 'key' to 'name'
Ryan Lortie [Sun, 13 Nov 2011 22:35:27 +0000 (23:35 +0100)]
remove GSettings* from GSettingsKeyInfo
This way GSettingsKeyInfo depends strictly on the information in the
schema. Pass the GSettings* around separately where we need it.
Ryan Lortie [Sun, 13 Nov 2011 22:31:39 +0000 (23:31 +0100)]
store some extra info in GSettingsKeyInfo
Ryan Lortie [Sun, 13 Nov 2011 22:24:24 +0000 (23:24 +0100)]
GSettingsKeyInfo: drop unused variable
Ryan Lortie [Sun, 13 Nov 2011 20:41:01 +0000 (21:41 +0100)]
rename gsettingsschema.h to -internal.h
Ryan Lortie [Sun, 13 Nov 2011 20:38:31 +0000 (21:38 +0100)]
unGObjectify GSettingsSchema
Christian Persch [Thu, 17 Nov 2011 13:21:24 +0000 (14:21 +0100)]
Fix the fix for G*_TO_POINTER casts on 32 bits
The 'fix' from commit
16292dd753cb63f8ccb2267644aefbd2632dd52c broke the
build on 32 bit because it was missing the parentheses around "gint" / "guint"
in glib_gp[u]i_cast.
https://bugzilla.gnome.org/show_bug.cgi?id=661546
Jorge González [Thu, 17 Nov 2011 13:21:12 +0000 (14:21 +0100)]
Updated Spanish translation
Daniel Mustieles [Thu, 17 Nov 2011 11:36:54 +0000 (12:36 +0100)]
Updated Spanish translation
Matthias Clasen [Thu, 17 Nov 2011 05:01:18 +0000 (00:01 -0500)]
Fix doc formatting
Matthias Clasen [Thu, 17 Nov 2011 02:42:28 +0000 (21:42 -0500)]
Deal gracefully with NULL log domains
Ryan Lortie [Wed, 16 Nov 2011 15:46:19 +0000 (15:46 +0000)]
[notify] remove some rather bogus 'inline' use
Ryan Lortie [Wed, 16 Nov 2011 15:45:31 +0000 (15:45 +0000)]
[notify] add warning to gobjectnotifyqueue.c
Mention that this file gets installed, so people should probably not
modify it.
Ryan Lortie [Wed, 16 Nov 2011 13:02:23 +0000 (13:02 +0000)]
[notify] dispatch 'notify' directly if not frozen
Avoid the notify queue in the case that we're not already frozen.
Ryan Lortie [Wed, 16 Nov 2011 15:42:36 +0000 (15:42 +0000)]
[notify] add 'conditional' to _notify_queue_freeze
When the 'conditional' parameter is TRUE, the queue will only be frozen
(ie: have its freeze count increase by one) if it is already frozen.
This will allow us to avoid a freeze-notify-thaw in the case that we
just want to notify on a single property.
Another approach may have been to add an is_frozen() type call and avoid
even increasing the freeze count at all in this case. Unfortunately,
I'm not totally sure what is the exact expected semantics of
simultaneous notifications in multiple threads and this may interact
badly with someone freezing or thawing in between our check and
emission.
Ryan Lortie [Wed, 16 Nov 2011 15:41:06 +0000 (15:41 +0000)]
[notify] Remove GObjectNotifyContext indirection
This silly abstraction is causing more trouble than it's worth -- just
use the relevant bits directly.
Ryan Lortie [Wed, 16 Nov 2011 15:38:25 +0000 (15:38 +0000)]
[notify] lift some logic out of _notify_queue_add
Lift the check-if-READABLE and redirect-target logic from out of
g_object_notify_queue_add() into its own function, get_notify_pspec().
Use that function at the site of our two calls to
g_object_notify_queue_add().
Ryan Lortie [Wed, 16 Nov 2011 15:37:17 +0000 (15:37 +0000)]
[notify] remove an obviously false comment
Ryan Lortie [Wed, 16 Nov 2011 15:36:57 +0000 (15:36 +0000)]
[notify] lift some code outside of critical region
Ryan Lortie [Wed, 16 Nov 2011 15:35:58 +0000 (15:35 +0000)]
[notify] drop some unused code
Ryan Lortie [Wed, 16 Nov 2011 15:31:58 +0000 (15:31 +0000)]
[notify] merge gobjectnotifyqueue.c into gobject.c
This was done as a separate file before, and #include brought it into
gobject.c. That's a bit mad, so stop doing that.
Unfortunately, the insanity steps up a level: gobjectnotifyqueue.c is
installed in the public include dir, so we can't just get rid of it
entirely.
Ryan Lortie [Wed, 16 Nov 2011 12:47:40 +0000 (12:47 +0000)]
[notify] remove some useless forward declarations
These cause trouble in the next commit.
Benjamin Otte [Tue, 1 Nov 2011 23:31:50 +0000 (00:31 +0100)]
localfileenumerator: Improve non-stat'ing code
We now avoid the per-enumerated-file stat for type and names. We could
improve this further by moving things to the no_stat function, but this
is what the file chooser needs for autocomplete, so I am happy.
Benjamin Otte [Tue, 1 Nov 2011 22:37:35 +0000 (23:37 +0100)]
localfileinfo: Split out attributes that don't need a stat
This will be used in the next commit.
Benjamin Otte [Tue, 1 Nov 2011 22:21:42 +0000 (23:21 +0100)]
localfileenumerator: Take the type from the readdir() call
That way, we can avoid stat() calls for all enumerated files in various
cases. In particular in the autocompletion code in the GTK filechooser.
Benjamin Otte [Tue, 1 Nov 2011 19:12:27 +0000 (20:12 +0100)]
gio: Add tests for g_file_attribute_matcher_subtract()
Benjamin Otte [Tue, 1 Nov 2011 19:11:47 +0000 (20:11 +0100)]
fileinfo: Add g_file_attribute_matcher_subtract()
Added as public API so I can write tests, the use case is local.
Benjamin Otte [Tue, 1 Nov 2011 18:12:17 +0000 (19:12 +0100)]
tests: Add tests for fileattributematchers
Benjamin Otte [Tue, 1 Nov 2011 18:06:39 +0000 (19:06 +0100)]
fileinfo: Add g_file_attribute_matcher_to_string()
This is to be mainly used for debugging and tests.
Benjamin Otte [Tue, 1 Nov 2011 16:50:22 +0000 (17:50 +0100)]
fileinfo: Store namespace::* as 0th attribute
This way, we can get_attribute() namespaces. This will be important in
the next commit.
Benjamin Otte [Tue, 1 Nov 2011 12:58:09 +0000 (13:58 +0100)]
fileinfo: Change the way attribute matchers are created
We now sort the matchers and remove unnecessary duplicates (like
removing standard:type when we already match standard:*), so that we can
do more complex operations on them easily in later commits.
Benjamin Otte [Tue, 1 Nov 2011 11:47:33 +0000 (12:47 +0100)]
fileinfo: Remove optimization for GFileAttributeMatcher
It makes code more complicated, in particular the code I'm about to add.
Lucas De Marchi [Thu, 6 Oct 2011 14:18:03 +0000 (11:18 -0300)]
Fix G*_TO_POINTER casts on 32 bits
If we don't do the cast to the proper size in 32 bits, things like below
doesn't work:
uint8_t u = 20;
void *p;
p = GUINT_TO_POINTER(u);
Signed-off-by: Colin Walters <walters@verbum.org>
https://bugzilla.gnome.org/show_bug.cgi?id=661546
Alexander Larsson [Fri, 4 Nov 2011 15:45:41 +0000 (16:45 +0100)]
win32: Make g_get_monotonic_clock lockless
Alexander Larsson [Fri, 4 Nov 2011 14:42:38 +0000 (15:42 +0100)]
win32: Use timeGetTime as monotonic base
This allows apps that need it to increase timer accuracy
using timeBeginPeriod
Alexander Larsson [Fri, 4 Nov 2011 10:27:00 +0000 (11:27 +0100)]
win32: Add a monotonic timer
Piotr Drąg [Tue, 15 Nov 2011 19:46:17 +0000 (20:46 +0100)]
Updated POTFILES.in
Daniel Mustieles [Tue, 15 Nov 2011 16:37:39 +0000 (17:37 +0100)]
Updated Spanish translation
Javier Jardón [Tue, 15 Nov 2011 12:11:55 +0000 (12:11 +0000)]
docs: Remove tmpl directory
We use inline comments now
Sjoerd Simons [Sun, 13 Nov 2011 16:49:57 +0000 (17:49 +0100)]
Fix 1bit mutex test on platforms with 32 bit aligned pointers
The 1 bit mutex tests asserts: ((gsize) ptrs) % 8, ==, 0), which fails
when the platform only aligns porters to 32 bits (e.g. S390 and
powerpc).
I'm not sure why this assertion was placed here, but given
that internally g_pointer_bit_trylock uses g_atomic_int_or internally
change the assertion so it only requires the alignment to be a multiple
of sizeof(int)
Matthias Clasen [Tue, 15 Nov 2011 04:30:18 +0000 (23:30 -0500)]
Avoid unused variable warnings in g_ascii_strtod
Matthias Clasen [Tue, 15 Nov 2011 03:18:13 +0000 (22:18 -0500)]
GThread: handle thread names safely
Avoid a race condition where the string may be freed before
the new thread got around to using it. Also add a test for
thread names.
https://bugzilla.gnome.org/show_bug.cgi?id=663381
Matthias Clasen [Tue, 15 Nov 2011 02:18:12 +0000 (21:18 -0500)]
Switch to using template-free docs build
All docs are finally inline, so we can do this switch.
Matthias Clasen [Mon, 14 Nov 2011 12:44:52 +0000 (07:44 -0500)]
Move remaining docs inline
This introduces a fake source file just for holding
docs that have no good place elsewhere. Not great, but
better than templates.
Matthias Clasen [Tue, 15 Nov 2011 02:06:30 +0000 (21:06 -0500)]
Move GModule docs inline
Matthias Clasen [Sun, 13 Nov 2011 20:37:56 +0000 (15:37 -0500)]
Move GDate docs inline
Matthias Clasen [Sun, 13 Nov 2011 05:43:50 +0000 (00:43 -0500)]
Move i18n docs inline
Matthias Clasen [Sun, 13 Nov 2011 05:26:57 +0000 (00:26 -0500)]
Move slice and hook docs inline
Dan Winship [Tue, 15 Nov 2011 00:46:02 +0000 (19:46 -0500)]
GSocketClient: improve error messages on connection failure
Include the hostname (or proxy hostname if it was the connection to
the proxy server that failed) in the GError message when
g_socket_client_connect* fail.
https://bugzilla.gnome.org/show_bug.cgi?id=661266
Dan Winship [Mon, 14 Nov 2011 23:27:34 +0000 (18:27 -0500)]
GUnixInput/OutputStream: fix blocking methods to always block
Previously, if you created a GUnixInputStream or GUnixOutputStream
from a non-blocking file descriptor, it might sometimes return
G_IO_ERROR_WOULD_BLOCK from g_input_stream_read/g_output_stream_write,
which is wrong. Fix that. (Use the GPollableInput/OutputStream methods
if you want non-blocking I/O.)
Also, add a test for this to gio/tests/unix-streams.
Also, fix the GError messages to say "Error reading from file
descriptor", etc instead of "Error reading from unix" (which was
presumably from a bad search and replace job).
https://bugzilla.gnome.org/show_bug.cgi?id=626866
Dan Winship [Mon, 14 Nov 2011 18:55:14 +0000 (13:55 -0500)]
Fix glib/tests/utils for g_parse_debug_string() changes
Dan Winship [Sun, 12 Jun 2011 19:59:36 +0000 (15:59 -0400)]
add GNetworkMonitor, for... monitoring the network
Add GNetworkMonitor and its associated extension point, provide a base
implementation that always claims the network is available, and a
netlink-based implementation built on top of that that actually tracks
the network state.
https://bugzilla.gnome.org/show_bug.cgi?id=620932
Dan Winship [Sat, 1 Oct 2011 12:31:54 +0000 (08:31 -0400)]
GInetAddressMask: new type for internet address range matching
Eg, for matching a GInetAddress to a range like "10.0.0.0/8" or
"fe80::/10"
https://bugzilla.gnome.org/show_bug.cgi?id=620932
Dan Winship [Sun, 13 Nov 2011 21:39:45 +0000 (16:39 -0500)]
gunixinput/outputstream: fix docs
Don't try to link to the docs of undocumented private classes
Dan Winship [Tue, 27 Apr 2010 20:54:18 +0000 (16:54 -0400)]
GUnixInputStream, GUnixOutputStream: support ordinary files better
If the fd is not a pipe or socket, fall back to using threads to do
async I/O rather than poll, since poll doesn't work the way you want
for ordinary files.
https://bugzilla.gnome.org/show_bug.cgi?id=606913
Matthias Clasen [Sun, 13 Nov 2011 03:52:24 +0000 (22:52 -0500)]
Some more docs reshuffling
Matthias Clasen [Sun, 13 Nov 2011 02:54:42 +0000 (21:54 -0500)]
More consistent doc formatting
Move some things around, make capitalization of short descriptions
more consistent.
Matthias Clasen [Sun, 13 Nov 2011 00:13:44 +0000 (19:13 -0500)]
Cleanups to debug env var handling