[mutter] monitor-manager: Move meta_monitor_manager_ function to right place
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] monitor-manager: Move meta_monitor_manager_ function to right place
- Date: Wed, 25 Jan 2017 08:36:10 +0000 (UTC)
commit b70187c2d987281b417daa762ccd3a93bd50c116
Author: Jonas Ådahl <jadahl gmail com>
Date: Mon Dec 19 15:56:50 2016 +0800
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
src/backends/meta-monitor-config.c | 16 ----------------
src/backends/meta-monitor-manager.c | 16 ++++++++++++++++
2 files changed, 16 insertions(+), 16 deletions(-)
---
diff --git a/src/backends/meta-monitor-config.c b/src/backends/meta-monitor-config.c
index bfc1f6c..bb3393c 100644
--- a/src/backends/meta-monitor-config.c
+++ b/src/backends/meta-monitor-config.c
@@ -836,22 +836,6 @@ make_config_key (MetaConfiguration *key,
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 *
meta_monitor_config_get_stored (MetaMonitorConfig *self,
MetaOutput *outputs,
diff --git a/src/backends/meta-monitor-manager.c b/src/backends/meta-monitor-manager.c
index 088d992..a083a85 100644
--- a/src/backends/meta-monitor-manager.c
+++ b/src/backends/meta-monitor-manager.c
@@ -200,6 +200,22 @@ power_save_mode_changed (MetaMonitorManager *manager,
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
legacy_ensure_configured (MetaMonitorManager *manager)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]