[gtk+/wip/matthiasc/monitor] x11: Add gdk_x11_monitor_get_output
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/matthiasc/monitor] x11: Add gdk_x11_monitor_get_output
- Date: Wed, 6 Apr 2016 11:25:16 +0000 (UTC)
commit fd586f7ade0b98c08fea4cdd3616f41b7140ab2a
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Apr 5 16:53:04 2016 -0400
x11: Add gdk_x11_monitor_get_output
gdk/x11/gdkmonitor-x11.c | 9 +++++++++
gdk/x11/gdkx11monitor.h | 4 +++-
2 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/gdk/x11/gdkmonitor-x11.c b/gdk/x11/gdkmonitor-x11.c
index 3a13c41..899511a 100644
--- a/gdk/x11/gdkmonitor-x11.c
+++ b/gdk/x11/gdkmonitor-x11.c
@@ -91,3 +91,12 @@ gdk_x11_monitor_class_init (GdkX11MonitorClass *class)
{
GDK_MONITOR_CLASS (class)->get_workarea = gdk_x11_monitor_get_workarea;
}
+
+XID
+gdk_x11_monitor_get_output (GdkMonitor *monitor)
+{
+ g_return_val_if_fail (GDK_IS_X11_MONITOR (monitor), 0);
+
+ return GDK_X11_MONITOR (monitor)->output;
+}
+
diff --git a/gdk/x11/gdkx11monitor.h b/gdk/x11/gdkx11monitor.h
index e175c4a..a9d1b54 100644
--- a/gdk/x11/gdkx11monitor.h
+++ b/gdk/x11/gdkx11monitor.h
@@ -40,7 +40,9 @@ typedef struct _GdkX11MonitorClass GdkX11MonitorClass;
GDK_AVAILABLE_IN_3_22
GType gdk_x11_monitor_get_type (void) G_GNUC_CONST;
+GDK_AVAILABLE_IN_3_22
+XID gdk_x11_monitor_get_output (GdkMonitor *monitor);
+
G_END_DECLS
#endif /* __GDK_X11_MONITOR_H__ */
-
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]