forked from AuroraMiddleware/gtk
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.
This commit is contained in:
parent
a9cd99c15f
commit
182108c68e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user