| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
In general, code using g_slist_delete_link() is broken, because it
potentially requires an O(n) traversal. Just switch to GList in this
case.
The performance hit here was exacerbated by the fact that we were
holding a mutex that needed to be accessed by all threads.
|
|
|
|
|
|
| |
The iteration over the list (while holding a mutex) was a serious
performance hit for asynchronous I/O. We can just use
g_cancellable_connect().
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=675168
|
|
|
|
|
| |
We just grab stderr from gdk-pixbuf-to-csource and xmllint and include
it in the error message. It's the best we can do.
|
| |
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=677770
|
| |
|
|
|
|
|
|
|
|
|
| |
This is useful otherwise we'll fail if a systemd service is
masked. See bug 677718 for details.
https://bugzilla.gnome.org/show_bug.cgi?id=677718
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
|
|
|
|
|
|
|
| |
This patch brings an ability to retrieve serial number of the last
message sent within the current thread.
https://bugzilla.gnome.org/show_bug.cgi?id=676825
|
|
|
|
|
|
|
|
|
| |
The "-framework" linker flag takes a second word as a parameter. If
they are passed separated with whitespace, some flag-handling routines
may not know to keep the two words together as a single unit. Use
-Wl,, to pass multiple words without embedded whitespace.
https://bugzilla.gnome.org/show_bug.cgi?id=566994
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Reading from a GConverterInputStream with both input_buffer and
converted_buffer non-empty would return bogus data (the data from
converted_buffer would essentially get skipped over, though the
returned nread reflected what the count would be if it hadn't been).
This was never noticed before because (a) it can't happen if all of
your reads are at least as large as either the internal buffer size or
the remaining length of the stream (which covers most real-world use),
and (b) it can't happen if all of your reads are 1 byte (which covers
most of tests/converter-test). (And (c) it only happens for some
converters/input streams.) But this was happening occasionally in
libsoup when content-sniffing a gzipped response, because the
SoupContentSnifferStream would first read 512 bytes (to sniff), and
then pass through larger reads after that.
Fixed and added a test to converter-test.
https://bugzilla.gnome.org/show_bug.cgi?id=676478
|
| |
|
|
|
|
|
|
|
|
|
|
| |
When the application is using its D-Bus backend, it is useful to be able
to export extra D-Bus objects at the right time, i.e. *before* the application
tries to own the bus name. This is accomplished here by adding a hook
in GApplicationClass for this; and a corresponding hook that will be called
on unregistration to undo whatever the register hook did.
Bug #675509.
|
| |
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=676816
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=676816
|
|
|
|
|
|
|
|
|
|
|
|
| |
I didn't do this comprehensively, since there's a lot of it, mainly
due to the GDBus object manager stuff, but anyone trying to use
that would fail fast due to lack of the gdbus code generator.
My main goal was to get API additions to existing classes like
g_data_input_stream_read_line_utf8(), as well as the lower level new
API like glib-unix.h.
https://bugzilla.gnome.org/show_bug.cgi?id=676816
|
|
|
|
| |
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Using a caller-supplied buffer for g_input_stream_read() doesn't
translate well to the semantics of many other languages, and using a
non-refcounted buffer for read_async() and write_async() makes it
impossible to manage the memory correctly currently in
garbage-collected languages.
Fix both of these issues by adding a new set of methods that work with
GBytes objects rather than plain buffers.
https://bugzilla.gnome.org/show_bug.cgi?id=671139
|
|
|
|
| |
This reverts commit 1541478bac6fed26bcb77ebae5e50bb7a76954f7.
|
|
|
|
| |
There's really no need to put useless whitespace into the .so.
|
|
|
|
| |
It's a runtime error, not a programming error.
|
|
|
|
|
|
| |
Matches the corresponding additions to GMemoryInputStream.
https://bugzilla.gnome.org/show_bug.cgi?id=672102
|
|
|
|
|
|
|
| |
And s/Chunk/GBytes/ internally. GBytes is really a perfect match for
GMemoryInputStream.
https://bugzilla.gnome.org/show_bug.cgi?id=672102
|
|
|
|
| |
Fixes: https://bugzilla.gnome.org/676208
|
|
|
|
|
|
| |
Rather than depending on the host's DNS configuration to properly
return an error for a non-existent hostname, just substitute in
a dummy GResolver implementation that does it for us.
|
|
|
|
|
|
|
|
|
| |
GFile doesn't handle some "real" URIs, so check if there's a default
handler for the URI scheme first, and only use g_file_new_for_uri()
and g_file_query_default_handler() if not. Eg, this fixes the case of
opening http URIs with "%2F" in the path.
https://bugzilla.gnome.org/show_bug.cgi?id=666386
|
|
|
|
|
|
| |
to fd.o
https://bugzilla.gnome.org/show_bug.cgi?id=676277
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=676265
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=675832
|
| |
|
|
|
|
|
|
|
|
|
| |
This essentially adds an accessor for the MimeType field in desktop files,
to retrieve the list of all mime types supported by an application.
The interface though is part of GAppInfo, so it could be implemented
in the future by other backends.
https://bugzilla.gnome.org/show_bug.cgi?id=674111
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=605976
|
| |
|
|
|
|
|
|
|
|
|
| |
The logic here is pretty twisted, but basically we were leaking a ref
for each non-existent parent. The clearest way to fix this was to
move to more explicit refcounting logic; when a variable is pointing
to an object, it holds a ref.
https://bugzilla.gnome.org/show_bug.cgi?id=675446
|
| |
|
|
|
|
|
| |
For non-unique applications, the 'primary instance' is the current
instance.
|
|
|
|
|
|
|
| |
It has never worked properly and, with the new GDBus testing stuff, it's
occasionally failing.
https://bugzilla.gnome.org/show_bug.cgi?id=672248
|
|
|
|
|
| |
g_content_type_guess() takes a gsize, not a gssize, and -1 does not mean
"I am passing a NULL terminated string".
|