Gio::DBus::Proxy::property_g_flags() broken
When I compile the following program with g++ gflags.cpp -o gflagsxx $(pkg-config --cflags --libs giomm-2.4)
and then run it, I encounter the issue below:
#include <iostream>
#include <giomm.h>
int main(int argc, char const *argv[])
{
Glib::RefPtr<Gio::DBus::Proxy> proxy;
try {
proxy = Gio::DBus::Proxy::create_for_bus_sync(Gio::DBus::BusType::BUS_TYPE_SYSTEM,
"org.freedesktop.DBus",
"/org/freedesktop/DBus",
"org.freedesktop.DBus.Properties");
std::cout << "Connected to bus " << proxy->property_g_flags();
} catch (const Glib::Error& err) {
std::cerr << "Failed to connect to system bus: " << err.what().c_str();
}
return 0;
}
(process:13507): GLib-GObject-CRITICAL **: 22:50:41.021: g_object_set_qdata_full: assertion 'quark > 0' failed
(process:13507): GLib-GObject-WARNING **: 22:50:41.023: g_object_get_property: can't retrieve property 'g-flags' of type 'GDBusProxyFlags' as value of type 'glibmm__CustomBoxed_N3Gio4DBus10ProxyFlagsE'
I am using giomm 2.56.0 on Ubuntu 18.09.