monitor-manager: Use better error code when using the wrong API

It has nothing to do with permissions, so 'not-supported' is a bit
better.

https://bugzilla.gnome.org/show_bug.cgi?id=777732
This commit is contained in:
Jonas Ådahl 2017-02-14 18:33:03 +08:00
parent 079b125430
commit 9a5b94a340

View File

@ -972,7 +972,7 @@ meta_monitor_manager_legacy_handle_apply_configuration (MetaDBusDisplayConfig *
if (manager->config_manager)
{
g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR,
G_DBUS_ERROR_ACCESS_DENIED,
G_DBUS_ERROR_NOT_SUPPORTED,
"Used old configuration API with new configuration system");
return TRUE;
}