12610 Commits

Author SHA1 Message Date
Ryan Lortie
2630b719fc GSettingsSchema: add API for introspecting keys
So far only supporting getting key summary/description.

https://bugzilla.gnome.org/show_bug.cgi?id=668232
2012-07-29 10:40:16 +02:00
Ryan Lortie
b6a06b2c95 GSettings: add child add/remove APIs 2012-07-29 10:40:16 +02:00
Ryan Lortie
6897234cd9 GSettingsBackend: add list support vfuncs
Implement it for GMemorySettingsBackend.
2012-07-29 10:40:16 +02:00
Ryan Lortie
55005057d2 GSettingsBackend: drop the concept of 'origin_tag'
This was only used by the (now removed) delayed settings backend.
2012-07-29 10:40:16 +02:00
Ryan Lortie
3ea81c6adb GSettingsBackend: remove 'write_tree' vfunc
This was only used by the (now removed) delayed settings backend.
2012-07-29 10:40:16 +02:00
Ryan Lortie
fec18bb76a drop GDelayedSettingsBackend
This breaks the tests, but will be added back in another form soon.
2012-07-29 10:40:16 +02:00
Ryan Lortie
c16ab82d7b GSettingsBackend: add 'delay' vfunc
This vfunc gets a delayed settings backend appropriate for use with this
type of GSettingsBackend.
2012-07-29 10:40:16 +02:00
Ryan Lortie
fecac16dcf GSettingsBackend: add vfuncs 'apply' and 'revert'
Remove this API from GDelayedSettingsBackend.
2012-07-29 10:40:16 +02:00
Ryan Lortie
6681e7bf9c GSettingsBackend: turn 'event' into a proper signal
Now that signals connected to GObjects are threadsafe, it is far easier
for us to do it this way.
2012-07-29 10:40:16 +02:00
Ryan Lortie
56b569a2ac GSettings: change API of writable-change-event
This is an API break.  It modifies the writable-change-event signal and
vfunc to be more like the change-event signal.

I don't think anyone is implementing or connected to this.

Also, remove a lie from the documentation for the same signal.
2012-07-29 10:40:16 +02:00
Ryan Lortie
ddc12323d1 GSettingsBackend: move 'has-unapplied' logic here
Add GSettingsBackend API to allow any backend to have a 'has-unapplied'
property.  Remove the 'owner' hackery that was used for notifying of
changes to 'has-unapplied' and just use normal GObject notify (and wire
into that from the frontend).
2012-07-29 10:40:16 +02:00
Ryan Lortie
05479beac9 GSettings: remove main context logic from backend
The main context dispatching logic substantially complicates the backend
and is only needed for the GSettings frontend.  Move it there instead.
2012-07-29 10:40:15 +02:00
Ryan Lortie
acd4439e6f GSettingsBackend: simplify event handling
Drop the 'vtable' business and switch to a single callback that takes a
new GSettingsEvent structure.

This patch temporarily regresses delayed settings: if a key set within a
delayed settings backend becomes non-writable, it is no longer removed
from the changeset.
2012-07-29 10:40:15 +02:00
Мирослав Николић
3339a395c2 Updated Serbian translation 2012-07-25 10:33:27 +02:00
Yaron Shahrabani
72824f2af2 Updated Hebrew translation. 2012-07-24 22:39:15 +03:00
Tobias Endrigkeit
3bb53b1453 [l10n] Updated German translation 2012-07-23 22:11:53 +02:00
Kjartan Maraas
0830e10e6f Updated Norwegian bokmål translation 2012-07-23 11:42:22 +02:00
Colin Walters
003e7a70e8 Revert unintential IAPI break for g_key_file_load_from_data()
The old (length) annotation actually wasn't being read.  Changing
it to an array was telling g-i that it was an array of utf8, which
is clearly not true.

We *could* add (element-type guint8), but that would change it to a
byte array, as opposed to the original utf8 version.

Just removing the annotation should bring us back to where we
were, which was fine.

https://bugzilla.gnome.org/show_bug.cgi?id=680310
2012-07-20 14:07:39 -04:00
Chun-wei Fan
1ae7c7d982 gio/Makefile.am: Filter out gcontenttype.c for MSVC builds
gcontenttype.c was split into gcontenttype.c and gcontenttype-win32.c
in commit 32192ee9 ("Split gcontenttype.c"), so we don't want to include
gcontenttype.c in the Visual C++ build as it is no longer a source file
meant for Windows.

Thanks to Thomas H.P. Anderson for pointing this out.
2012-07-19 23:15:59 +08:00
Matthias Clasen
23a2136fb5 Check for PR_SET_NAME
Bug 680148 claims that PR_SET_NAME may not be defined when
using an old kernel. Deal with it.
2012-07-19 06:37:59 -04:00
Matthias Clasen
4c255d4602 Be more careful when using xlocale
Bug 680074 shows that we may end up in situations where only
some of the xlocale functions we need are available. Rather than
trying to find the minimal set of required functions for each
use, define a global USE_XLOCALE and only use any xlocale functions
if we have a full set.
2012-07-19 06:32:29 -04:00
Matthias Clasen
dd098405ad Cosmetic: Fix up line endings
Somehow a few ^M sneaked in here.
2012-07-19 06:20:41 -04:00
Dan Winship
2357f67b1b gmain: handle child sources being destroyed before parent
Fix a crash when a child source is destroyed before its parent. Also,
add a test case for this and the previous fix.
2012-07-18 15:08:44 -04:00
Dan Winship
ee6e66cb44 g_source_add_child_source: sync blocked state
Child sources are supposed to be blocked when their parents are, so
when adding a source to a blocked source, block the child too. Fixes a
warning when unblocking the parent.
2012-07-18 14:19:36 -04:00
Dan Winship
2855b827da gio/tests/converter-stream: add a new test, rename an old one
Add a test that the decompressor input streams handle truncated data
correctly. (They do; I wrote the test thinking there was a bug there,
but there isn't.)

Also, rename the "corruption" tests to "roundtrip", since "corruption"
makes it sound like we're testing how the converters deal with
corrupted data, as opposed to merely testing that they don't corrupt
data themselves. And fix the bug reference.
2012-07-17 16:21:03 -04:00
Dan Winship
09c18537f4 g_cancellable_source_new: don't use a file descriptor
Rather than implementing GCancellableSource by polling on its fd,
implement it by just waking its GMainContext up from the "cancelled"
signal handler, thereby helping to reduce file descriptor usage.
Suggested by Ryan Lortie.

https://bugzilla.gnome.org/show_bug.cgi?id=680121
2012-07-17 15:32:48 -04:00
Matthias Clasen
0e37822e10 Bump version 2012-07-17 14:23:08 -04:00
Matthias Clasen
ffefa544d6 More updates 2.33.6 2012-07-17 13:50:58 -04:00
Stef Walter
a0b71839ee GIOScheduler: Fix access after free in "cancelled" handler
* GCancellable can be "cancelled" more than once if
   g_cancellable_reset() is called.
 * Don't assume that because the "cancelled" signal fired
   it won't fire again.

https://bugzilla.gnome.org/show_bug.cgi?id=680111
2012-07-17 13:47:26 -04:00
Matthias Clasen
e97a4c7e5e 2.33.6
https://bugzilla.gnome.org/show_bug.cgi?id=680111
2012-07-17 13:47:26 -04:00
Dan Winship
d90ad18055 GAsyncInitable: partially revert the init_finish changes
g_async_initable_real_init_finish() was previously handling all
GSimpleAsyncResults, even if they weren't created by
g_async_initable_real_init_async(), and libnm-glib accidentally relied
on that behavior. So remove the g_simple_async_result_is_valid()
check.
2012-07-17 09:15:44 -04:00
Krzesimir Nowak
cd8ec3359b GVariantType: Add (constructor) annotation for some constructors.
This are mistaken by g-ir-scanner as GVariantType's methods, because
they take a GVariantType* as a first parameter.

https://bugzilla.gnome.org/show_bug.cgi?id=679968
2012-07-16 17:58:22 +02:00
Daniel Mustieles
1b3578ec0b Updated Spanish translation 2012-07-16 16:42:49 +02:00
Marc-André Lureau
bfbfbec91e win32: g_getenv() should return "" if variable exists and empty
On Windows, GetEnvironmentVariable() returns 0 for empty variables.
Checking GetLastError() == ERROR_ENVVAR_NOT_FOUND helps make a
difference between a variable that does not exist or an empty one
which should return "".

https://bugzilla.gnome.org/show_bug.cgi?id=679617
2012-07-16 12:49:25 +02:00
Marc-André Lureau
6007a4b0b1 win32: fix g_get_environ()
The current code create the strv array incorrectly, it is too big and
leaves invalid holes. This may result in crashes when freeing the
returned value.

https://bugzilla.gnome.org/show_bug.cgi?id=679617
2012-07-16 12:49:24 +02:00
Matthias Clasen
11819933e2 Bump version 2012-07-16 06:01:55 -04:00
Matthias Clasen
d48bd70853 More updates 2.33.4 2012-07-15 20:36:10 -04:00
Ihar Hrachyshka
f81c2c753a Updated Belarusian translation. 2012-07-15 12:27:03 +03:00
Piotr Drąg
ef4bbecce7 Updated Polish translation 2012-07-15 01:26:12 +02:00
Chao-Hsiung Liao
160da82e39 Updated Traditional Chinese translation(Hong Kong and Taiwan) 2012-07-14 13:51:12 +08:00
Matthias Clasen
c182ee1f71 Fix GModule documentation a bit
The documentation for g_module_make_resident was for some reason
in the doc comment for g_module_name.

https://bugzilla.gnome.org/show_bug.cgi?id=679813
2012-07-13 17:37:37 -04:00
Matthias Clasen
34b2125edf Fix doc build 2012-07-13 17:37:12 -04:00
Nilamdyuti Goswami
3201bcd1b2 Assamese translation updated 2012-07-13 17:54:20 +05:30
Matthias Clasen
97676046f2 Update NEWS 2012-07-12 23:51:08 -04:00
Marc-André Lureau
d9af4259f7 win32: fix build g_spawn_check_exit_status() with mingw
With mingw, only gspawn-win32.c is compiled, but it is missing some
new symbols.

https://bugzilla.gnome.org/show_bug.cgi?id=679691
2012-07-12 23:19:52 -04:00
Krzesimir Nowak
ce1b50bf2a GRegex, GConvert: Add some missing annotations.
Also, removed pointless (allow-none) return annotation.

https://bugzilla.gnome.org/show_bug.cgi?id=679762
2012-07-12 16:09:57 +02:00
Cosimo Cecchi
99f26ab08f mount-operation: add a Since tag to the show-unmount-progress signal 2012-07-11 20:26:16 -04:00
Cosimo Cecchi
44375ad7c5 mount-operation: add show-unmount-progress signal
The actual implementation will be in gvfs.

https://bugzilla.gnome.org/show_bug.cgi?id=676111
2012-07-11 19:57:42 -04:00
Tom Tryfonidis
37fbd702d5 Updated Greek translation 2012-07-12 02:38:20 +03:00
Rui Matos
eda1735029 GDBusNodeInfo: remove a spurious for loop
https://bugzilla.gnome.org/show_bug.cgi?id=679671
2012-07-11 03:27:29 +02:00