monitor-manager: Rename read_current_config to read_current_state

The function meta_monitor_manager_read_current_config() was renamed to
meta_monitor_manager_read_current_state() as it does not read any
configuration, but reads the current state as described by the backend.

https://bugzilla.gnome.org/show_bug.cgi?id=777732
This commit is contained in:
Jonas Ådahl 2016-12-19 15:46:31 +08:00
parent b59a8b1de3
commit c041851fa5
5 changed files with 7 additions and 7 deletions

View File

@ -388,7 +388,7 @@ void meta_crtc_info_free (MetaCrtcInfo *info);
void meta_output_info_free (MetaOutputInfo *info);
gboolean meta_monitor_manager_has_hotplug_mode_update (MetaMonitorManager *manager);
void meta_monitor_manager_read_current_config (MetaMonitorManager *manager);
void meta_monitor_manager_read_current_state (MetaMonitorManager *manager);
void meta_monitor_manager_on_hotplug (MetaMonitorManager *manager);
gboolean meta_monitor_manager_get_monitor_matrix (MetaMonitorManager *manager,

View File

@ -219,7 +219,7 @@ meta_monitor_manager_constructed (GObject *object)
manager->legacy_config = meta_monitor_config_new ();
meta_monitor_manager_read_current_config (manager);
meta_monitor_manager_read_current_state (manager);
legacy_ensure_configured (manager);
@ -231,7 +231,7 @@ meta_monitor_manager_constructed (GObject *object)
so this is not needed.
*/
if (META_IS_MONITOR_MANAGER_XRANDR (manager))
meta_monitor_manager_read_current_config (manager);
meta_monitor_manager_read_current_state (manager);
make_logical_config (manager);
initialize_dbus_interface (manager);
@ -1466,7 +1466,7 @@ meta_monitor_manager_tiled_monitor_removed (MetaMonitorManager *manager,
}
void
meta_monitor_manager_read_current_config (MetaMonitorManager *manager)
meta_monitor_manager_read_current_state (MetaMonitorManager *manager)
{
MetaOutput *old_outputs;
MetaCrtc *old_crtcs;

View File

@ -1472,7 +1472,7 @@ on_uevent (GUdevClient *client,
if (!g_udev_device_get_property_as_boolean (device, "HOTPLUG"))
return;
meta_monitor_manager_read_current_config (manager);
meta_monitor_manager_read_current_state (manager);
meta_monitor_manager_on_hotplug (manager);
}

View File

@ -1597,7 +1597,7 @@ meta_monitor_manager_xrandr_handle_xevent (MetaMonitorManagerXrandr *manager_xra
XRRUpdateConfiguration (event);
meta_monitor_manager_read_current_config (manager);
meta_monitor_manager_read_current_state (manager);
hotplug = manager_xrandr->resources->timestamp < manager_xrandr->resources->configTimestamp;
if (hotplug)

View File

@ -51,7 +51,7 @@ meta_monitor_manager_test_emulate_hotplug (MetaMonitorManagerTest *manager_test,
old_test_setup = manager_test->test_setup;
manager_test->test_setup = test_setup;
meta_monitor_manager_read_current_config (manager);
meta_monitor_manager_read_current_state (manager);
meta_monitor_manager_on_hotplug (manager);
g_free (old_test_setup);