monitor-manager: Keep pointer to backend

Instead of accessing the global singleton, keep a pointer to the
backend in the MetaMonitorManager struct.

https://bugzilla.gnome.org/show_bug.cgi?id=785381
This commit is contained in:
Jonas Ådahl
2017-07-10 17:39:07 +08:00
parent 7603bb5fd5
commit 315a6f43d7
9 changed files with 106 additions and 16 deletions

View File

@ -39,7 +39,9 @@ static MetaMonitorManager *
meta_backend_test_create_monitor_manager (MetaBackend *backend,
GError **error)
{
return g_object_new (META_TYPE_MONITOR_MANAGER_TEST, NULL);
return g_object_new (META_TYPE_MONITOR_MANAGER_TEST,
"backend", backend,
NULL);
}
static void