aboutsummaryrefslogtreecommitdiff
path: root/src/exporter.cpp
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-01-22 08:08:44 -0600
committerCharles Kerr <charles.kerr@canonical.com>2014-01-22 08:08:44 -0600
commit6e447b7bdb1273048dbaf9ead0eea629e73042e3 (patch)
tree407b55a7ee16b325552c5d23d14bab0c4178d7b0 /src/exporter.cpp
parentbf30d05fa9220b3369734c74197ac149c3290af7 (diff)
downloadayatana-indicator-datetime-6e447b7bdb1273048dbaf9ead0eea629e73042e3.tar.gz
ayatana-indicator-datetime-6e447b7bdb1273048dbaf9ead0eea629e73042e3.tar.bz2
ayatana-indicator-datetime-6e447b7bdb1273048dbaf9ead0eea629e73042e3.zip
plug in the greeter menus
Diffstat (limited to 'src/exporter.cpp')
-rw-r--r--src/exporter.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/exporter.cpp b/src/exporter.cpp
index aa021f3..8103b5b 100644
--- a/src/exporter.cpp
+++ b/src/exporter.cpp
@@ -85,13 +85,15 @@ Exporter::on_bus_acquired(GDBusConnection* connection, const gchar* /*name*/)
{
const auto path = std::string(BUS_PATH) + "/" + menu->name();
const auto id = g_dbus_connection_export_menu_model(m_dbus_connection, path.c_str(), menu->menu_model(), &error);
+g_message ("path %s id %d", path.c_str(), (int)id);
if (id)
{
m_exported_menu_ids.insert(id);
}
else
{
- g_warning("cannot export %s menu: %s", menu->name().c_str(), error->message);
+ if (error != nullptr)
+ g_warning("cannot export %s menu: %s", menu->name().c_str(), error->message);
g_clear_error(&error);
}
}