| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
Matches the corresponding additions to GMemoryInputStream.
https://bugzilla.gnome.org/show_bug.cgi?id=672102
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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".
|
| |
|
| |
|
| |
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=673034
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=673034
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=673034
|
|
|
|
|
|
| |
Test GProxy, GProxyResolver, GProxyAddress, and
GProxyAddressEnumerator, plus GSocketClient's proxy-resolving
codepaths.
|
| |
|
|
|
|
|
| |
These used to only be built on unix, but if you have dbus-daemon on
win32 we should really build them there too.
|
| |
|
| |
|
|
|
|
|
| |
We need to flush the AddMatches before even connecting to the bus, or we
risk missing the NameOwnerChanged from the new connections.
|
|
|
|
|
|
|
| |
To make port easier, this rewrites dbus-sessionbus.c using a
GTestDBus singleton internally.
https://bugzilla.gnome.org/show_bug.cgi?id=672985
|
|
|
|
| |
This reverts commit 1b5f70b5b035019ba28da6a5db6eff8122e17ae7.
|
|
|
|
|
|
| |
See https://bugzilla.gnome.org/show_bug.cgi?id=672985#c89
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
|
|
|
|
|
|
| |
This is a helper to write unit tests using a private dbus-daemon.
session_bus_up/down() are now just wrappers around a GTestDBus singleton.
https://bugzilla.gnome.org/show_bug.cgi?id=672985
|
|
|
|
| |
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
|
|
|
|
|
|
| |
Implement GPollableInputStream in GMemoryInputStream and
GConverterInputStream, and likewise implement GPollableOutputStream in
the corresponding output streams.
https://bugzilla.gnome.org/show_bug.cgi?id=673997
|
|
|
|
| |
It depends on gdbus-sessionbus.c which only builds on unix.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Add resolver functions for looking up DNS records of
various types. Currently implemented: MX, TXT, SOA, SRV, NS
* Return records as GVariant tuples.
* Make the GSrvTarget lookups a wrapper over this new
functionality.
* Rework the resolver test so that it has support for
looking up MX, NS, SOA, TXT records, and uses GOptionContext
https://bugzilla.gnome.org/show_bug.cgi?id=672944
|
|
|
|
|
|
| |
See https://bugzilla.gnome.org/show_bug.cgi?id=673943
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
|
|
|
|
|
| |
Components using GIO to do window to application matching can
use that field to retrieve potential candidates.
https://bugzilla.gnome.org/show_bug.cgi?id=673659
|
|
|
|
|
|
|
|
|
| |
When presented with an array of empty arrays of 8-byte-aligned types,
GDBus would incorrectly apply the 8-byte alignment when reading back.
https://bugzilla.gnome.org/show_bug.cgi?id=673612
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Excercise more parts of the guessing machinery.
These tests rely on the mime database being present.
|
| |
|
|
|
|
|
|
| |
With this change,
DBUS_SESSION_BUS_ADDRESS= make check
succeed here.
|
|
|
|
|
| |
Nothing wrong with leaving debug spew in the code, but we should
not build it if it is not used.
|