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:
Rob Bradford 2013-04-02 12:04:22 +01:00
parent e69e609bd7
commit 000ed99f3d

View File

@ -1449,7 +1449,7 @@ gdk_display_get_screen (GdkDisplay *display,
gint screen_num) gint screen_num)
{ {
g_return_val_if_fail (GDK_IS_DISPLAY (display), NULL); 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); return gdk_display_get_default_screen (display);
} }