From cdd6fb32c53eec0c156181393f98d6e534ff9791 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Thu, 20 Jun 2019 14:55:59 +0100 Subject: [PATCH] Fix regression in GdkScreen.get_monitor_plug_name() The documentation for get_monitor_plug_name() says that we're returning the name of the connector for the monitor, but we switched it to using the model name. --- gdk/gdkscreen.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gdk/gdkscreen.c b/gdk/gdkscreen.c index 4fa63f4b72..65c6ca0e52 100644 --- a/gdk/gdkscreen.c +++ b/gdk/gdkscreen.c @@ -21,8 +21,10 @@ #include "config.h" -#include "gdkinternals.h" #include "gdkscreenprivate.h" + +#include "gdkinternals.h" +#include "gdkmonitorprivate.h" #include "gdkrectangle.h" #include "gdkwindow.h" #include "gdkintl.h" @@ -821,7 +823,7 @@ gdk_screen_get_monitor_plug_name (GdkScreen *screen, g_return_val_if_fail (monitor != NULL, NULL); - return g_strdup (gdk_monitor_get_model (monitor)); + return g_strdup (gdk_monitor_get_connector (monitor)); } /**