platform/upstream/glib.git
13 years agoDocument that g_list_sort is a stable sort.
Josselin Mouette [Sun, 20 Nov 2011 15:53:36 +0000 (16:53 +0100)]
Document that g_list_sort is a stable sort.

This is a guarantee for the future so that applications can rely on it.

https://bugzilla.gnome.org/show_bug.cgi?id=531973

13 years agoUpdated Spanish translation
Jorge González [Sun, 20 Nov 2011 09:10:13 +0000 (10:10 +0100)]
Updated Spanish translation

13 years agoGApplication: unregister bus name
Matthias Clasen [Fri, 18 Nov 2011 04:30:32 +0000 (23:30 -0500)]
GApplication: unregister bus name

https://bugzilla.gnome.org/show_bug.cgi?id=647987

13 years agoTrivial doc typo fix
Matthias Clasen [Sat, 19 Nov 2011 21:23:33 +0000 (16:23 -0500)]
Trivial doc typo fix

13 years agoUpdated Norwegian bokmål translation
Kjartan Maraas [Sat, 19 Nov 2011 11:02:08 +0000 (12:02 +0100)]
Updated Norwegian bokmål translation

13 years agoGTlsCertificate: support unencrypted PKCS#8 private keys
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

13 years ago[gio] Terminate connect call when application proxy is used
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.

13 years agoGMain: allow NULL context to g_source_attach
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

13 years agoGPollable*Stream: expose source methods to introspection
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

13 years agogsignal.h: Remove trailing comma
Murray Cumming [Fri, 18 Nov 2011 09:46:35 +0000 (10:46 +0100)]
gsignal.h: Remove trailing comma

13 years agoWe need <locale.h> in gsettingsschema.c now
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).

13 years agoClear proxy address upon retry
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

13 years agoSilence compiler warnings
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

13 years agoGKeyFile: Accept empty files
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

13 years agoDocument exactly what g_time_val_to_iso8601() produces
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>
13 years ago_g_dbus_get_machine_id(): check /etc/machine-id too
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

13 years agoRemove redefinition of typedef 'GSettingsSchemaSource'
Rico Tzschichholz [Thu, 17 Nov 2011 18:46:54 +0000 (19:46 +0100)]
Remove redefinition of typedef 'GSettingsSchemaSource'

13 years agostart on the NEWS
Ryan Lortie [Thu, 17 Nov 2011 17:40:36 +0000 (17:40 +0000)]
start on the NEWS

13 years agog_settings_new_full(): more docs
Ryan Lortie [Thu, 17 Nov 2011 17:33:19 +0000 (17:33 +0000)]
g_settings_new_full(): more docs

13 years agoadd plugin example for GSettingsSchemaSource
Ryan Lortie [Thu, 17 Nov 2011 14:02:39 +0000 (14:02 +0000)]
add plugin example for GSettingsSchemaSource

13 years agoAdd gtk-doc for gsettingsschema{,source}
Ryan Lortie [Thu, 17 Nov 2011 10:06:49 +0000 (10:06 +0000)]
Add gtk-doc for gsettingsschema{,source}

13 years ago'make dist' fixes
Matthias Clasen [Thu, 17 Nov 2011 04:24:46 +0000 (23:24 -0500)]
'make dist' fixes

13 years agosettings-source test: Check returned error as well
Matthias Clasen [Thu, 17 Nov 2011 03:25:16 +0000 (22:25 -0500)]
settings-source test: Check returned error as well

13 years agoTrivial typo fix
Matthias Clasen [Thu, 17 Nov 2011 03:12:21 +0000 (22:12 -0500)]
Trivial typo fix

13 years agogsettings: add annotations for _new_full()
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.

13 years agoschema source: avoid introspection confusion
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.

13 years agogsettingsschema: Use the trusted parameter
Jasper St. Pierre [Wed, 16 Nov 2011 19:51:27 +0000 (14:51 -0500)]
gsettingsschema: Use the trusted parameter

13 years agoAdd test case and fix some bugs
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.

13 years agoAdd g_settings_schema_source_new_from_directory()
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.

13 years agoClarify docs/params for 'schema' vs 'schema id'
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.

13 years agoAdd g_settings_new_full() taking GSettingsSchema
Ryan Lortie [Tue, 15 Nov 2011 12:38:01 +0000 (12:38 +0000)]
Add g_settings_new_full() taking GSettingsSchema

13 years agoGSettings: add 'settings-schema' property
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.

13 years agoadd boxed types for GSettingSchema{,Source}
Ryan Lortie [Tue, 15 Nov 2011 12:28:28 +0000 (12:28 +0000)]
add boxed types for GSettingSchema{,Source}

13 years agoDrop the 'schema_name' field of GSettings
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.

13 years agospeak of 'schema id' rather than 'schema name'
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.

13 years agoGSettings: deprecate 'schema' property
Ryan Lortie [Tue, 15 Nov 2011 11:31:58 +0000 (11:31 +0000)]
GSettings: deprecate 'schema' property

This should have been called 'schema-name'.

13 years agodrop the now-trivial g_settings_schema_new
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()

13 years agonew public header: gsettingsschema.h
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...

13 years agoAdd non-aborting g_settings_schema_source_lookup()
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

13 years agoGSettingSchemaSource: add refcounting
Ryan Lortie [Tue, 15 Nov 2011 07:31:20 +0000 (07:31 +0000)]
GSettingSchemaSource: add refcounting

13 years agoGSettingsSchema: use our own linked lists
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.

13 years agoGSettingsSchema: alter our 'reverse' technology
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).

13 years agomove GSettingsSchemaKey to gsettingsschema.c
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.

13 years agoGSettingsSchemaKey: store the GSettingsSchema*
Ryan Lortie [Mon, 14 Nov 2011 16:08:31 +0000 (17:08 +0100)]
GSettingsSchemaKey: store the GSettingsSchema*

13 years agog_settings_schema_key_init: take 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 *

13 years agoadd internal g_settings_schema_get_name()
Ryan Lortie [Mon, 14 Nov 2011 16:02:04 +0000 (17:02 +0100)]
add internal g_settings_schema_get_name()

13 years agorename GSettingsKeyInfo to GSettingsSchemaKey
Ryan Lortie [Sun, 13 Nov 2011 22:47:49 +0000 (23:47 +0100)]
rename GSettingsKeyInfo to GSettingsSchemaKey

13 years agoGSettingsKeyInfo: rename field 'key' to 'name'
Ryan Lortie [Sun, 13 Nov 2011 22:38:47 +0000 (23:38 +0100)]
GSettingsKeyInfo: rename field 'key' to 'name'

13 years agoremove GSettings* from GSettingsKeyInfo
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.

13 years agostore some extra info in GSettingsKeyInfo
Ryan Lortie [Sun, 13 Nov 2011 22:31:39 +0000 (23:31 +0100)]
store some extra info in GSettingsKeyInfo

13 years agoGSettingsKeyInfo: drop unused variable
Ryan Lortie [Sun, 13 Nov 2011 22:24:24 +0000 (23:24 +0100)]
GSettingsKeyInfo: drop unused variable

13 years agorename gsettingsschema.h to -internal.h
Ryan Lortie [Sun, 13 Nov 2011 20:41:01 +0000 (21:41 +0100)]
rename gsettingsschema.h to -internal.h

13 years agounGObjectify GSettingsSchema
Ryan Lortie [Sun, 13 Nov 2011 20:38:31 +0000 (21:38 +0100)]
unGObjectify GSettingsSchema

13 years agoFix the fix for G*_TO_POINTER casts on 32 bits
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

13 years agoUpdated Spanish translation
Jorge González [Thu, 17 Nov 2011 13:21:12 +0000 (14:21 +0100)]
Updated Spanish translation

13 years agoUpdated Spanish translation
Daniel Mustieles [Thu, 17 Nov 2011 11:36:54 +0000 (12:36 +0100)]
Updated Spanish translation

13 years agoFix doc formatting
Matthias Clasen [Thu, 17 Nov 2011 05:01:18 +0000 (00:01 -0500)]
Fix doc formatting

13 years agoDeal gracefully with NULL log domains
Matthias Clasen [Thu, 17 Nov 2011 02:42:28 +0000 (21:42 -0500)]
Deal gracefully with NULL log domains

13 years ago[notify] remove some rather bogus 'inline' use
Ryan Lortie [Wed, 16 Nov 2011 15:46:19 +0000 (15:46 +0000)]
[notify] remove some rather bogus 'inline' use

13 years ago[notify] add warning to gobjectnotifyqueue.c
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.

13 years ago[notify] dispatch 'notify' directly if not frozen
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.

13 years ago[notify] add 'conditional' to _notify_queue_freeze
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.

13 years ago[notify] Remove GObjectNotifyContext indirection
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.

13 years ago[notify] lift some logic out of _notify_queue_add
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().

13 years ago[notify] remove an obviously false comment
Ryan Lortie [Wed, 16 Nov 2011 15:37:17 +0000 (15:37 +0000)]
[notify] remove an obviously false comment

13 years ago[notify] lift some code outside of critical region
Ryan Lortie [Wed, 16 Nov 2011 15:36:57 +0000 (15:36 +0000)]
[notify] lift some code outside of critical region

13 years ago[notify] drop some unused code
Ryan Lortie [Wed, 16 Nov 2011 15:35:58 +0000 (15:35 +0000)]
[notify] drop some unused code

13 years ago[notify] merge gobjectnotifyqueue.c into gobject.c
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.

13 years ago[notify] remove some useless forward declarations
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.

13 years agolocalfileenumerator: Improve non-stat'ing code
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.

13 years agolocalfileinfo: Split out attributes that don't need a stat
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.

13 years agolocalfileenumerator: Take the type from the readdir() call
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.

13 years agogio: Add tests for g_file_attribute_matcher_subtract()
Benjamin Otte [Tue, 1 Nov 2011 19:12:27 +0000 (20:12 +0100)]
gio: Add tests for g_file_attribute_matcher_subtract()

13 years agofileinfo: Add 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.

13 years agotests: Add tests for fileattributematchers
Benjamin Otte [Tue, 1 Nov 2011 18:12:17 +0000 (19:12 +0100)]
tests: Add tests for fileattributematchers

13 years agofileinfo: Add g_file_attribute_matcher_to_string()
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.

13 years agofileinfo: Store namespace::* as 0th attribute
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.

13 years agofileinfo: Change the way attribute matchers are created
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.

13 years agofileinfo: Remove optimization for GFileAttributeMatcher
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.

13 years agoFix G*_TO_POINTER casts on 32 bits
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

13 years agowin32: Make g_get_monotonic_clock lockless
Alexander Larsson [Fri, 4 Nov 2011 15:45:41 +0000 (16:45 +0100)]
win32: Make g_get_monotonic_clock lockless

13 years agowin32: Use timeGetTime as monotonic base
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

13 years agowin32: Add a monotonic timer
Alexander Larsson [Fri, 4 Nov 2011 10:27:00 +0000 (11:27 +0100)]
win32: Add a monotonic timer

13 years agoUpdated POTFILES.in
Piotr Drąg [Tue, 15 Nov 2011 19:46:17 +0000 (20:46 +0100)]
Updated POTFILES.in

13 years agoUpdated Spanish translation
Daniel Mustieles [Tue, 15 Nov 2011 16:37:39 +0000 (17:37 +0100)]
Updated Spanish translation

13 years agodocs: Remove tmpl directory
Javier Jardón [Tue, 15 Nov 2011 12:11:55 +0000 (12:11 +0000)]
docs: Remove tmpl directory

We use inline comments now

13 years agoFix 1bit mutex test on platforms with 32 bit aligned pointers
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)

13 years agoAvoid unused variable warnings in g_ascii_strtod
Matthias Clasen [Tue, 15 Nov 2011 04:30:18 +0000 (23:30 -0500)]
Avoid unused variable warnings in g_ascii_strtod

13 years agoGThread: handle thread names safely
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

13 years agoSwitch to using template-free docs build
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.

13 years agoMove remaining docs inline
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.

13 years agoMove GModule docs inline
Matthias Clasen [Tue, 15 Nov 2011 02:06:30 +0000 (21:06 -0500)]
Move GModule docs inline

13 years agoMove GDate docs inline
Matthias Clasen [Sun, 13 Nov 2011 20:37:56 +0000 (15:37 -0500)]
Move GDate docs inline

13 years agoMove i18n docs inline
Matthias Clasen [Sun, 13 Nov 2011 05:43:50 +0000 (00:43 -0500)]
Move i18n docs inline

13 years agoMove slice and hook docs inline
Matthias Clasen [Sun, 13 Nov 2011 05:26:57 +0000 (00:26 -0500)]
Move slice and hook docs inline

13 years agoGSocketClient: improve error messages on connection failure
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

13 years agoGUnixInput/OutputStream: fix blocking methods to always block
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

13 years agoFix glib/tests/utils for g_parse_debug_string() changes
Dan Winship [Mon, 14 Nov 2011 18:55:14 +0000 (13:55 -0500)]
Fix glib/tests/utils for g_parse_debug_string() changes

13 years agoadd GNetworkMonitor, for... monitoring the network
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

13 years agoGInetAddressMask: new type for internet address range matching
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