Ryan Lortie
10907cafc3
add internal g_settings_schema_get_name()
2011-11-17 14:03:38 +00:00
Ryan Lortie
e6b4074e41
rename GSettingsKeyInfo to GSettingsSchemaKey
2011-11-17 14:03:38 +00:00
Ryan Lortie
426b146e5f
GSettingsKeyInfo: rename field 'key' to 'name'
2011-11-17 14:03:38 +00:00
Ryan Lortie
ca2004fe73
remove GSettings* from GSettingsKeyInfo
...
This way GSettingsKeyInfo depends strictly on the information in the
schema. Pass the GSettings* around separately where we need it.
2011-11-17 14:03:38 +00:00
Ryan Lortie
d6c3c2f3c2
store some extra info in GSettingsKeyInfo
2011-11-17 14:03:38 +00:00
Ryan Lortie
f60e0e7242
GSettingsKeyInfo: drop unused variable
2011-11-17 14:03:38 +00:00
Ryan Lortie
11ef4d7981
rename gsettingsschema.h to -internal.h
2011-11-17 14:03:38 +00:00
Ryan Lortie
577faeae5b
unGObjectify GSettingsSchema
2011-11-17 14:03:38 +00:00
Christian Persch
eaaf18960f
Fix the fix for G*_TO_POINTER casts on 32 bits
...
The 'fix' from commit 16292dd753
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
2011-11-17 14:24:09 +01:00
Jorge González
affbdd8206
Updated Spanish translation
2011-11-17 14:21:12 +01:00
Daniel Mustieles
6d405f81c2
Updated Spanish translation
2011-11-17 12:36:54 +01:00
Matthias Clasen
9e19b6fe0f
Fix doc formatting
2011-11-17 00:01:18 -05:00
Matthias Clasen
1a08591c3a
Deal gracefully with NULL log domains
2011-11-16 21:42:28 -05:00
Ryan Lortie
877c0ad5b8
[notify] remove some rather bogus 'inline' use
2011-11-16 17:50:13 +00:00
Ryan Lortie
9253f38a90
[notify] add warning to gobjectnotifyqueue.c
...
Mention that this file gets installed, so people should probably not
modify it.
2011-11-16 17:50:13 +00:00
Ryan Lortie
ac0ddcf23f
[notify] dispatch 'notify' directly if not frozen
...
Avoid the notify queue in the case that we're not already frozen.
2011-11-16 17:50:13 +00:00
Ryan Lortie
39458748dd
[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.
2011-11-16 17:50:13 +00:00
Ryan Lortie
393d4c28b4
[notify] Remove GObjectNotifyContext indirection
...
This silly abstraction is causing more trouble than it's worth -- just
use the relevant bits directly.
2011-11-16 17:50:13 +00:00
Ryan Lortie
8215fc5f25
[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().
2011-11-16 17:50:12 +00:00
Ryan Lortie
760037ec46
[notify] remove an obviously false comment
2011-11-16 17:50:12 +00:00
Ryan Lortie
45d80cf9bd
[notify] lift some code outside of critical region
2011-11-16 17:50:12 +00:00
Ryan Lortie
1d98f93194
[notify] drop some unused code
2011-11-16 17:50:12 +00:00
Ryan Lortie
128862eafe
[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.
2011-11-16 17:50:12 +00:00
Ryan Lortie
688059cb94
[notify] remove some useless forward declarations
...
These cause trouble in the next commit.
2011-11-16 17:50:12 +00:00
Benjamin Otte
3c66ada435
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.
2011-11-16 17:22:17 +01:00
Benjamin Otte
93aea49bd7
localfileinfo: Split out attributes that don't need a stat
...
This will be used in the next commit.
2011-11-16 17:22:10 +01:00
Benjamin Otte
8863071b9d
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.
2011-11-16 17:22:03 +01:00
Benjamin Otte
6fe9791f24
gio: Add tests for g_file_attribute_matcher_subtract()
2011-11-16 17:21:21 +01:00
Benjamin Otte
1985d54bb2
fileinfo: Add g_file_attribute_matcher_subtract()
...
Added as public API so I can write tests, the use case is local.
2011-11-16 17:19:02 +01:00
Benjamin Otte
60c42f6648
tests: Add tests for fileattributematchers
2011-11-16 17:18:58 +01:00
Benjamin Otte
b400127b3e
fileinfo: Add g_file_attribute_matcher_to_string()
...
This is to be mainly used for debugging and tests.
2011-11-16 17:18:13 +01:00
Benjamin Otte
86d29e4e73
fileinfo: Store namespace::* as 0th attribute
...
This way, we can get_attribute() namespaces. This will be important in
the next commit.
2011-11-16 17:11:52 +01:00
Benjamin Otte
128e0cb787
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.
2011-11-16 17:11:52 +01:00
Benjamin Otte
1850d23f52
fileinfo: Remove optimization for GFileAttributeMatcher
...
It makes code more complicated, in particular the code I'm about to add.
2011-11-16 17:11:52 +01:00
Lucas De Marchi
16292dd753
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
2011-11-16 10:47:21 -05:00
Alexander Larsson
3a7960f757
win32: Make g_get_monotonic_clock lockless
2011-11-16 09:10:46 +01:00
Alexander Larsson
8d023c2706
win32: Use timeGetTime as monotonic base
...
This allows apps that need it to increase timer accuracy
using timeBeginPeriod
2011-11-16 09:10:46 +01:00
Alexander Larsson
64dec8ad9f
win32: Add a monotonic timer
2011-11-16 09:10:45 +01:00
Piotr Drąg
2056906bb7
Updated POTFILES.in
2011-11-15 20:46:17 +01:00
Daniel Mustieles
8d4a141b14
Updated Spanish translation
2011-11-15 17:37:39 +01:00
Javier Jardón
f08a1d126c
docs: Remove tmpl directory
...
We use inline comments now
2011-11-15 12:11:55 +00:00
Sjoerd Simons
469e1a15a0
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)
2011-11-15 09:27:00 +01:00
Matthias Clasen
65eb65b777
Avoid unused variable warnings in g_ascii_strtod
2011-11-14 23:30:18 -05:00
Matthias Clasen
7c0ee79e34
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
2011-11-14 22:18:13 -05:00
Matthias Clasen
375015018b
Switch to using template-free docs build
...
All docs are finally inline, so we can do this switch.
2011-11-14 21:22:46 -05:00
Matthias Clasen
3f0d275295
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.
2011-11-14 21:22:46 -05:00
Matthias Clasen
127df9bd83
Move GModule docs inline
2011-11-14 21:22:46 -05:00
Matthias Clasen
2195e20dce
Move GDate docs inline
2011-11-14 21:22:46 -05:00
Matthias Clasen
18da6e6be9
Move i18n docs inline
2011-11-14 21:22:46 -05:00
Matthias Clasen
c8b0617a2b
Move slice and hook docs inline
2011-11-14 21:22:37 -05:00