monitor-manager: Move meta_monitor_manager_ function to right place

Move a meta_monitor_manager_ function to meta-monitor-manager.c where
it belongs.

https://bugzilla.gnome.org/show_bug.cgi?id=777732
This commit is contained in:
Jonas Ådahl 2016-12-19 15:56:50 +08:00
parent c041851fa5
commit b70187c2d9
2 changed files with 16 additions and 16 deletions

View File

@ -836,22 +836,6 @@ make_config_key (MetaConfiguration *key,
key->n_outputs = o; key->n_outputs = o;
} }
gboolean
meta_monitor_manager_has_hotplug_mode_update (MetaMonitorManager *manager)
{
MetaOutput *outputs;
unsigned n_outputs;
unsigned int i;
outputs = meta_monitor_manager_get_outputs (manager, &n_outputs);
for (i = 0; i < n_outputs; i++)
if (outputs[i].hotplug_mode_update)
return TRUE;
return FALSE;
}
static MetaConfiguration * static MetaConfiguration *
meta_monitor_config_get_stored (MetaMonitorConfig *self, meta_monitor_config_get_stored (MetaMonitorConfig *self,
MetaOutput *outputs, MetaOutput *outputs,

View File

@ -200,6 +200,22 @@ power_save_mode_changed (MetaMonitorManager *manager,
manager->power_save_mode = mode; manager->power_save_mode = mode;
} }
gboolean
meta_monitor_manager_has_hotplug_mode_update (MetaMonitorManager *manager)
{
unsigned int i;
for (i = 0; i < manager->n_outputs; i++)
{
MetaOutput *output = &manager->outputs[i];
if (output->hotplug_mode_update)
return TRUE;
}
return FALSE;
}
static void static void
legacy_ensure_configured (MetaMonitorManager *manager) legacy_ensure_configured (MetaMonitorManager *manager)
{ {