[gnome-flashback] backends: remove gf_monitor_manager_get_monitor_for_output
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] backends: remove gf_monitor_manager_get_monitor_for_output
- Date: Mon, 15 Apr 2019 16:19:21 +0000 (UTC)
commit e432c7d6fe40f1d53ca37088ad67332987e8b0c0
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Fri Apr 12 13:26:43 2019 +0300
backends: remove gf_monitor_manager_get_monitor_for_output
Same function has been removed from mutter.
backends/gf-monitor-manager.c | 25 -------------------------
backends/gf-monitor-manager.h | 3 ---
2 files changed, 28 deletions(-)
---
diff --git a/backends/gf-monitor-manager.c b/backends/gf-monitor-manager.c
index 52d708f..da8613f 100644
--- a/backends/gf-monitor-manager.c
+++ b/backends/gf-monitor-manager.c
@@ -2562,31 +2562,6 @@ gf_monitor_manager_get_config_manager (GfMonitorManager *manager)
return manager->config_manager;
}
-gint
-gf_monitor_manager_get_monitor_for_output (GfMonitorManager *manager,
- guint id)
-{
- GfOutput *output;
- GList *l;
-
- g_return_val_if_fail (GF_IS_MONITOR_MANAGER (manager), -1);
- g_return_val_if_fail (id < g_list_length (manager->outputs), -1);
-
- output = g_list_nth_data (manager->outputs, id);
- if (!output || !output->crtc)
- return -1;
-
- for (l = manager->logical_monitors; l; l = l->next)
- {
- GfLogicalMonitor *logical_monitor = l->data;
-
- if (gf_rectangle_contains_rect (&logical_monitor->rect, &output->crtc->rect))
- return logical_monitor->number;
- }
-
- return -1;
-}
-
gint
gf_monitor_manager_get_monitor_for_connector (GfMonitorManager *manager,
const gchar *connector)
diff --git a/backends/gf-monitor-manager.h b/backends/gf-monitor-manager.h
index dad55b2..ae93fae 100644
--- a/backends/gf-monitor-manager.h
+++ b/backends/gf-monitor-manager.h
@@ -37,9 +37,6 @@ typedef enum
typedef struct _GfMonitorManager GfMonitorManager;
-gint gf_monitor_manager_get_monitor_for_output (GfMonitorManager
*manager,
- guint
id);
-
gint gf_monitor_manager_get_monitor_for_connector (GfMonitorManager
*manager,
const gchar
*connector);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]