[gtk+] gdkdisplay: Warn if asked for a non-zero screen not a zero screen
- From: Rob Bradford <rbradford src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gdkdisplay: Warn if asked for a non-zero screen not a zero screen
- Date: Tue, 2 Apr 2013 11:15:43 +0000 (UTC)
commit 000ed99f3dcf93ffd06b52dc6ce2cd0b71249564
Author: Rob Bradford <rob linux intel com>
Date: Tue Apr 2 12:04:22 2013 +0100
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.
gdk/gdkdisplay.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/gdkdisplay.c b/gdk/gdkdisplay.c
index 20ea9b4..1cec8bb 100644
--- a/gdk/gdkdisplay.c
+++ b/gdk/gdkdisplay.c
@@ -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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]