[gnome-flashback] monitor-manager: remove get_edid_file() vfunc
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] monitor-manager: remove get_edid_file() vfunc
- Date: Thu, 18 Jul 2019 17:30:10 +0000 (UTC)
commit d6748698763056045b510ebb8a2c57714ac60eda
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Tue Jul 16 22:11:59 2019 +0300
monitor-manager: remove get_edid_file() vfunc
Based on mutter commit:
https://gitlab.gnome.org/GNOME/mutter/commit/49cb691bb5d0939962c1
backends/gf-monitor-manager-private.h | 3 ---
backends/gf-monitor-manager.c | 32 +++++++-------------------------
2 files changed, 7 insertions(+), 28 deletions(-)
---
diff --git a/backends/gf-monitor-manager-private.h b/backends/gf-monitor-manager-private.h
index 3928dbf..98dcbee 100644
--- a/backends/gf-monitor-manager-private.h
+++ b/backends/gf-monitor-manager-private.h
@@ -79,9 +79,6 @@ typedef struct
{
GfDBusDisplayConfigSkeletonClass parent_class;
- gchar * (* get_edid_file) (GfMonitorManager *manager,
- GfOutput *output);
-
GBytes * (* read_edid) (GfMonitorManager *manager,
GfOutput *output);
diff --git a/backends/gf-monitor-manager.c b/backends/gf-monitor-manager.c
index ac87c12..f2762eb 100644
--- a/backends/gf-monitor-manager.c
+++ b/backends/gf-monitor-manager.c
@@ -1184,7 +1184,6 @@ gf_monitor_manager_handle_get_resources (GfDBusDisplayConfig *skeleton,
GfOutput *output = l->data;
GVariantBuilder crtcs, modes, clones, properties;
GBytes *edid;
- gchar *edid_file;
GfCrtc *crtc;
gint crtc_index;
@@ -1250,23 +1249,14 @@ gf_monitor_manager_handle_get_resources (GfDBusDisplayConfig *skeleton,
g_variant_builder_add (&properties, "{sv}", "supports-underscanning",
g_variant_new_boolean (output->supports_underscanning));
- edid_file = manager_class->get_edid_file (manager, output);
- if (edid_file)
- {
- g_variant_builder_add (&properties, "{sv}", "edid-file",
- g_variant_new_take_string (edid_file));
- }
- else
- {
- edid = manager_class->read_edid (manager, output);
+ edid = manager_class->read_edid (manager, output);
- if (edid)
- {
- g_variant_builder_add (&properties, "{sv}", "edid",
- g_variant_new_from_bytes (G_VARIANT_TYPE ("ay"),
- edid, TRUE));
- g_bytes_unref (edid);
- }
+ if (edid)
+ {
+ g_variant_builder_add (&properties, "{sv}", "edid",
+ g_variant_new_from_bytes (G_VARIANT_TYPE ("ay"),
+ edid, TRUE));
+ g_bytes_unref (edid);
}
if (output->tile_info.group_id)
@@ -1974,13 +1964,6 @@ gf_monitor_manager_real_read_edid (GfMonitorManager *manager,
return NULL;
}
-static gchar *
-gf_monitor_manager_real_get_edid_file (GfMonitorManager *manager,
- GfOutput *output)
-{
- return NULL;
-}
-
static gboolean
gf_monitor_manager_real_is_lid_closed (GfMonitorManager *manager)
{
@@ -2177,7 +2160,6 @@ gf_monitor_manager_class_init (GfMonitorManagerClass *manager_class)
object_class->get_property = gf_monitor_manager_get_property;
object_class->set_property = gf_monitor_manager_set_property;
- manager_class->get_edid_file = gf_monitor_manager_real_get_edid_file;
manager_class->read_edid = gf_monitor_manager_real_read_edid;
manager_class->is_lid_closed = gf_monitor_manager_real_is_lid_closed;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]