summaryrefslogtreecommitdiff
path: root/gdk/win32/gdkscreen-win32.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2009-12-13 20:40:02 -0500
committerMatthias Clasen <mclasen@redhat.com>2009-12-13 20:40:02 -0500
commit182108c68ebf43a3b254353a766ca9923bbc4c04 (patch)
tree3020bde969081d1789086301b4907626e4cf7227 /gdk/win32/gdkscreen-win32.c
parenta9cd99c15f81d6fbb34e84432fc879b21bf86bc6 (diff)
downloadgtk+-182108c68ebf43a3b254353a766ca9923bbc4c04.tar.gz
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.
Diffstat (limited to 'gdk/win32/gdkscreen-win32.c')
-rw-r--r--gdk/win32/gdkscreen-win32.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdk/win32/gdkscreen-win32.c b/gdk/win32/gdkscreen-win32.c
index 73eb93e0f5..e9051b50d4 100644
--- a/gdk/win32/gdkscreen-win32.c
+++ b/gdk/win32/gdkscreen-win32.c
@@ -67,6 +67,14 @@ gdk_screen_get_n_monitors (GdkScreen *screen)
}
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)
{