mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
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:
parent
079b125430
commit
9a5b94a340
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user