Commit 182108c6 authored by Matthias Clasen's avatar Matthias Clasen

Implement gdk_screen_get_primary_monitor in all GDK backends

The implementations are all trivial, just returning 0. At least
for Quartz, we could probably do better than that. Bug 604459.
parent a9cd99c1
......@@ -86,6 +86,14 @@ gdk_screen_get_n_monitors (GdkScreen *screen)
return 1;
}
gint
gdk_screen_get_primary_monitor (GdkScreen *screen)
{
g_return_val_if_fail (GDK_IS_SCREEN (screen), 0);
return 0;
}
void
gdk_screen_get_monitor_geometry (GdkScreen *screen,
gint num_monitor,
......
......@@ -404,7 +404,7 @@ gdk_screen_get_height_mm (GdkScreen *screen)
GDK_SCREEN_QUARTZ (screen)->height);
}
int
gint
gdk_screen_get_n_monitors (GdkScreen *screen)
{
g_return_val_if_fail (GDK_IS_SCREEN (screen), 0);
......@@ -412,6 +412,14 @@ gdk_screen_get_n_monitors (GdkScreen *screen)
return GDK_SCREEN_QUARTZ (screen)->n_screens;
}
gint
gdk_screen_get_primary_monitor (GdkScreen *screen)
{
g_return_val_if_fail (GDK_IS_SCREEN (screen), 0);
return 0;
}
gint
gdk_screen_get_monitor_width_mm (GdkScreen *screen,
gint monitor_num)
......
......@@ -66,6 +66,14 @@ gdk_screen_get_n_monitors (GdkScreen *screen)
return _gdk_num_monitors;
}
gint
gdk_screen_get_primary_monitor (GdkScreen *screen)
{
g_return_val_if_fail (screen == _gdk_screen, 0);
return 0;
}
gint
gdk_screen_get_monitor_width_mm (GdkScreen *screen,
gint num_monitor)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment