summaryrefslogtreecommitdiff
path: root/gdk/gdkmonitor.h
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2019-06-20 14:52:41 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2019-06-24 15:38:36 +0100
commit03840fb68778a5278652d338697153a4dc9e87a8 (patch)
treeafe58280be45201768fc43391b9e855035d20ab0 /gdk/gdkmonitor.h
parent6e65c16b60b192d60f1e9b9ff6fe39e8bdda72a8 (diff)
downloadgtk+-03840fb68778a5278652d338697153a4dc9e87a8.tar.gz
Add getter for a monitor connector
The migration from GdkScreen's monitor API to GdkMonitor left out a way to get the connector's name of a monitor. While there's no real guarantee coming from the underlying graphics system that the connector's name is stable, some system components may use it to uniquely identify a monitor until the next plug in/out event.
Diffstat (limited to 'gdk/gdkmonitor.h')
-rw-r--r--gdk/gdkmonitor.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdk/gdkmonitor.h b/gdk/gdkmonitor.h
index 79fd434660..b711195e31 100644
--- a/gdk/gdkmonitor.h
+++ b/gdk/gdkmonitor.h
@@ -80,6 +80,8 @@ const char * gdk_monitor_get_manufacturer (GdkMonitor *monitor);
GDK_AVAILABLE_IN_ALL
const char * gdk_monitor_get_model (GdkMonitor *monitor);
GDK_AVAILABLE_IN_ALL
+const char * gdk_monitor_get_connector (GdkMonitor *monitor);
+GDK_AVAILABLE_IN_ALL
int gdk_monitor_get_scale_factor (GdkMonitor *monitor);
GDK_AVAILABLE_IN_ALL
int gdk_monitor_get_refresh_rate (GdkMonitor *monitor);