summaryrefslogtreecommitdiff
path: root/gdk/gdkmonitor.c
diff options
context:
space:
mode:
authorPriit Laes <priit.laes@paf.com>2019-08-06 09:16:01 +0300
committerPriit Laes <priit.laes@paf.com>2019-08-06 09:16:01 +0300
commitf43d344aa39e0872449840690ea2981f46bc67cb (patch)
treec2393e0ece86d3827bcdb397a33ab82893508593 /gdk/gdkmonitor.c
parenta3609c3f6dd0ad1d055c0c79f2cb021dc80822dc (diff)
downloadgtk+-f43d344aa39e0872449840690ea2981f46bc67cb.tar.gz
gdk: x11: Fill GdkMonitor manufacturer with PNP id from EDID
Previously, the manufacturer property of the GdkMonitor was NULL, and having at least PNP id at GdkMonitor.manufacturer makes it possible to distinguish between different monitors programmatically.
Diffstat (limited to 'gdk/gdkmonitor.c')
-rw-r--r--gdk/gdkmonitor.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gdk/gdkmonitor.c b/gdk/gdkmonitor.c
index 2d27c29972..37e2c872eb 100644
--- a/gdk/gdkmonitor.c
+++ b/gdk/gdkmonitor.c
@@ -401,7 +401,12 @@ gdk_monitor_get_connector (GdkMonitor *monitor)
* gdk_monitor_get_manufacturer:
* @monitor: a #GdkMonitor
*
- * Gets the name of the monitor's manufacturer, if available.
+ * Gets the name or PNP ID of the monitor's manufacturer, if available.
+ *
+ * Note that this value might also vary depending on actual
+ * display backend.
+ *
+ * PNP ID registry is located at https://uefi.org/pnp_id_list
*
* Returns: (transfer none) (nullable): the name of the manufacturer, or %NULL
*/