Matthias Clasen
a6b9db6907
Eliminate some dead code
2011-06-14 21:06:17 -04:00
Matthias Clasen
9b68d9892a
Remove a redundant NULL check
2011-06-14 21:06:17 -04:00
Matthias Clasen
28008138c3
Silence a compiler warning
2011-06-14 21:06:17 -04:00
Matthias Clasen
f966a0af9a
Add some argument checks to filename conversion functions
2011-06-14 21:06:16 -04:00
Colin Walters
c9f883f133
gmain: Close race condition in _g_main_wake_up_all_contexts()
...
Running gthread/tests/spawn-multithreaded in a loop, I very easily hit:
GLib-CRITICAL **: g_main_context_wakeup: assertion `g_atomic_int_get (&context->ref_count) > 0' failed
Testing the refcount still left a window where we would fall into the
assertion. Fix this by just locking the context.
2011-06-14 19:23:36 -04:00
Colin Walters
211d7adf6e
gmain: Only run through signal delivery once per read()
...
This is what I intended to do before.
https://bugzilla.gnome.org/show_bug.cgi?id=652072
2011-06-14 19:23:36 -04:00
Colin Walters
ed827deb77
gmain: Use sigset_t for keeping track of installed signals
...
Minor code cleanup.
https://bugzilla.gnome.org/show_bug.cgi?id=652072
2011-06-14 19:23:36 -04:00
Colin Walters
1874ad97d8
gspawn: Reset signal handlers for synchronous spawning
...
We should by default reset signal handlers; particularly with the
ability to install them via g_unix_signal_source_new(), we don't
want to call a user callback inside a fork()ed helper process.
https://bugzilla.gnome.org/show_bug.cgi?id=652072
2011-06-14 19:23:36 -04:00
Colin Walters
b9c67b4369
glib/tests/unix.c: Also test SIGTERM
...
We expect this to not kill the process, so it'd be a good one to test.
https://bugzilla.gnome.org/show_bug.cgi?id=652072
2011-06-14 19:23:36 -04:00
Colin Walters
c2364ce9a4
spawn-multithreaded: Clean up IO channel code
...
I modeled the new bits after how gunixmount.c handles GIOChannel;
it's apparently easier not to look at the condition.
https://bugzilla.gnome.org/show_bug.cgi?id=652072
2011-06-14 19:23:36 -04:00
Colin Walters
7e1886ba72
gspawn: Handle EINTR in a few more cases
...
I was debugging gthread/tests/spawn-multithreaded.c, and while I
don't think I actually hit EINTR in any of these cases, it'd be
good to fix them anyways.
https://bugzilla.gnome.org/show_bug.cgi?id=652072
2011-06-14 19:23:35 -04:00
Colin Walters
922f6aa496
spawn-singlethread.c: New test
...
https://bugzilla.gnome.org/show_bug.cgi?id=652072
2011-06-14 19:23:35 -04:00
Colin Walters
01ee9449e3
spawn-multithreaded: Also look for lt-test-echo
...
I hate libtool =(
https://bugzilla.gnome.org/show_bug.cgi?id=652072
2011-06-14 19:23:35 -04:00
Matthias Clasen
b6a829c314
If dup fails don't call close()
2011-06-14 18:51:57 -04:00
Matthias Clasen
6e7a7052e0
Remove a redundant assertion
...
A gsize is never going below 0.
2011-06-14 18:51:57 -04:00
Matthias Clasen
ba6e66bff1
Don't compare unsigned numbers with 0
...
It does not work.
2011-06-14 18:51:57 -04:00
David Zeuthen
a6d33d3a28
GDBusMessage: Optimize serializer and deserializer
...
... by using a switch instead of if-then-else.
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-06-14 18:12:04 -04:00
Colin Walters
7963a4cf95
gclosure: Add missing include
2011-06-14 12:28:57 -04:00
Matthias Clasen
01e6cf1360
Don't do < 0 on an unsigned value
...
It won't work. read() returns a signed value, anyway.
2011-06-14 11:40:32 -04:00
Matthias Clasen
25a797fa25
Silence a compiler warning
...
Even though we are confident the filename will always
end in .gmarkup, the compiler doesn't know that...
2011-06-14 10:16:35 -04:00
Matthias Clasen
6ac8e6108c
Don't leak resources in error cases
2011-06-14 10:12:46 -04:00
Matthias Clasen
83d34f6309
Don't forget to free resources in an early return
2011-06-14 10:07:22 -04:00
Matthias Clasen
3dc34de0ff
Avoid a deref-before-NULL-check warning
2011-06-14 10:04:06 -04:00
Matthias Clasen
339cac8fc7
Remove unneeded NULL check
...
We ensure 10 lines up that parameters is not NULL.
2011-06-14 09:53:26 -04:00
Matthias Clasen
cf7f50b28e
Remove an unneeded NULL check
...
data->proxy cannot be NULL here, or we'd have crashed 10 lines up.
2011-06-14 09:50:55 -04:00
Matthias Clasen
4c63303f9f
Silence an uninitialize variable warning
2011-06-14 09:44:45 -04:00
Matthias Clasen
114b9b2504
Fix up symbol lists and docs
2011-06-14 07:17:06 -04:00
Xan Lopez
42c2e42a39
gclosure: add missing fundamental types to generic marshaler
...
for GObject type the ffi->gvalue conversion was not handled. The
GFlags type was completely missing.
2011-06-14 12:50:51 +02:00
Vincent Untz
b87d9405be
GDesktopAppInfo: Fix declaration of g_desktop_app_info_get_nodisplay
2011-06-14 09:01:25 +02:00
Vincent Untz
86ffdf5570
GDesktopAppInfo: Add g_desktop_app_info_get_nodisplay
...
Necessary for rebasing gnome-menus on top of GDesktopAppInfo.
https://bugzilla.gnome.org/show_bug.cgi?id=652385
2011-06-14 08:53:48 +02:00
Matthias Clasen
9a9cca9764
bump version
2011-06-13 23:54:59 -04:00
Matthias Clasen
9f11f054eb
2.29.8
2011-06-13 23:20:32 -04:00
Matthias Clasen
a0361ec049
Fix doc generation
...
It helps to use the same file name on both ends...
2011-06-13 23:20:32 -04:00
Matthias Clasen
4dc3d3e999
Use a realistic timeout in a test
...
Who knew that g_test_trap_fork() takes a timeout in microseconds...
2011-06-13 22:50:02 -04:00
Matthias Clasen
bc403e6361
Update NEWS
2011-06-13 20:48:20 -04:00
Colin Walters
5ec6eafb0e
gdbus-codegen tests: Fix usage of top_srcddir
...
Based on a patch from Rico Tzschichholz.
2011-06-13 14:17:44 -04:00
Ryan Lortie
fd772fbe95
Formally deprecate G_CONST_RETURN
2011-06-13 09:27:41 -04:00
Ryan Lortie
ce9681b87e
Drop a few more G_CONST_RETURN
2011-06-13 09:27:28 -04:00
Dan Winship
7412e073d1
update .gitignores
2011-06-12 16:17:30 -04:00
Colin Walters
9d53e2bc4e
gspawn: Fix annotations
...
g-ir-scanner wants guint8.
2011-06-10 12:58:49 -04:00
Christophe Fergeau
28a9e91b13
Fix regression in qsort_r BSD detection
...
We can use AC_CHECK_FUNCS to detect if qsort_r is available on
the system or not since it will unconditionnally define
HAVE_QSORT_R, which we don't want since on BSD, qsort_r isn't usable
for us, so we don't want to have HAVE_QSORT_R defined on such platforms.
By using AC_CHECK_FUNC instead, we can defer defining HAVE_QSORT_R until
we have actually tested it's usable.
https://bugzilla.gnome.org/show_bug.cgi?id=651920
2011-06-10 15:18:58 +02:00
Yaron Shahrabani
73905434a4
Updated Hebrew translation.
2011-06-10 12:54:51 +03:00
Mario Blättermann
6a088820c2
[l10n] Updated German translation
2011-06-10 11:17:15 +02:00
Abduxukur Abdurixit
486c48fafb
Added UG translation
2011-06-10 10:19:12 +02:00
Jorge González
b5cadd8bb5
Updated Spanish translation
2011-06-09 23:00:04 +02:00
Murray Cumming
4db88bd6e2
gioenums.h: Remove trailing commas
2011-06-09 20:17:52 +02:00
David Zeuthen
7ff248e822
gdbus: Don't pass an unintialized GError pointer
...
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-06-09 13:29:58 -04:00
David Zeuthen
30dfc35392
gdbus: Add --recurse and --only-properties options
...
These options are useful when debugging D-Bus services and working
with bug reports.
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-06-09 13:22:18 -04:00
David Zeuthen
c672b73602
gdbus: Clarify the --xml option in the man page
...
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-06-09 12:25:27 -04:00
David Zeuthen
13b93f0c48
Bug 652197 – Improper handling of double values in GDBusMessage
...
Matthew Bucknall pointed out
GDBusMessage does not serialize/deserialize double values correctly
on platforms with strict alignment constraints (in my particular
case, ARM926EJ-S).
This was reported in
https://bugzilla.gnome.org/show_bug.cgi?id=652197
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-06-09 12:02:30 -04:00