mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 19:00:08 +00:00
gdkdisplay: Warn if asked for a non-zero screen not a zero screen
Following on from a6b29d73
this commit correctly warn if you try and use
deprecated multiple screen behaviour.
This commit is contained in:
parent
e69e609bd7
commit
000ed99f3d
@ -1449,7 +1449,7 @@ gdk_display_get_screen (GdkDisplay *display,
|
||||
gint screen_num)
|
||||
{
|
||||
g_return_val_if_fail (GDK_IS_DISPLAY (display), NULL);
|
||||
g_return_val_if_fail (screen_num != 0, NULL);
|
||||
g_return_val_if_fail (screen_num == 0, NULL);
|
||||
|
||||
return gdk_display_get_default_screen (display);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user