[gtk/issue-1961: 8/10] Fix regression in GdkScreen.get_monitor_plug_name()
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/issue-1961: 8/10] Fix regression in GdkScreen.get_monitor_plug_name()
- Date: Thu, 20 Jun 2019 21:52:39 +0000 (UTC)
commit cdd6fb32c53eec0c156181393f98d6e534ff9791
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]