diff --git a/gdk/gdkdisplay.c b/gdk/gdkdisplay.c index 1cec8bba0d..44dc9d4c91 100644 --- a/gdk/gdkdisplay.c +++ b/gdk/gdkdisplay.c @@ -1424,6 +1424,8 @@ gdk_display_get_name (GdkDisplay *display) * Returns: number of screens. * * Since: 2.2 + * + * Deprecated: 3.10: The number of screens is always 1. */ gint gdk_display_get_n_screens (GdkDisplay *display) diff --git a/gdk/gdkdisplay.h b/gdk/gdkdisplay.h index c0566e7c55..e380028e49 100644 --- a/gdk/gdkdisplay.h +++ b/gdk/gdkdisplay.h @@ -45,6 +45,7 @@ GdkDisplay *gdk_display_open (const gchar *display_name); const gchar * gdk_display_get_name (GdkDisplay *display); +GDK_DEPRECATED_IN_3_10 gint gdk_display_get_n_screens (GdkDisplay *display); GdkScreen * gdk_display_get_screen (GdkDisplay *display, gint screen_num);