[gtk/issue-1961: 2/3] Fix regression in GdkScreen.get_monitor_plug_name()



commit a4aedf0d2f804e6d4969c23e00162df85e193d4f
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Thu Jun 20 14:55:59 2019 +0100

    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));
 }
 
 /**


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]