summaryrefslogtreecommitdiff
path: root/gdk/gdkmonitor.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-01-30 21:01:24 +0100
committerMatthias Clasen <mclasen@redhat.com>2020-01-30 21:33:37 +0100
commita46f9af1c0f321cbaafc0383bf50e4f6a1d47c94 (patch)
treea9b1f430e9e7c5f5f6c41dc827b2bf14b48f3555 /gdk/gdkmonitor.c
parent99c89d61e18d63f1141b8dfb423c3971f4b66c9a (diff)
downloadgtk+-a46f9af1c0f321cbaafc0383bf50e4f6a1d47c94.tar.gz
Remove primary monitor api
We only have implementations of this on X11 and Win32, so make it available as backend api there. Update all callers to use either the backend api, or just monitor 0.
Diffstat (limited to 'gdk/gdkmonitor.c')
-rw-r--r--gdk/gdkmonitor.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/gdk/gdkmonitor.c b/gdk/gdkmonitor.c
index 37e2c872eb..dbdcdddf04 100644
--- a/gdk/gdkmonitor.c
+++ b/gdk/gdkmonitor.c
@@ -492,23 +492,6 @@ gdk_monitor_get_subpixel_layout (GdkMonitor *monitor)
return monitor->subpixel_layout;
}
-/**
- * gdk_monitor_is_primary:
- * @monitor: a #GdkMonitor
- *
- * Gets whether this monitor should be considered primary
- * (see gdk_display_get_primary_monitor()).
- *
- * Returns: %TRUE if @monitor is primary
- */
-gboolean
-gdk_monitor_is_primary (GdkMonitor *monitor)
-{
- g_return_val_if_fail (GDK_IS_MONITOR (monitor), FALSE);
-
- return monitor == gdk_display_get_primary_monitor (monitor->display);
-}
-
GdkMonitor *
gdk_monitor_new (GdkDisplay *display)
{