[gnome-flashback] display-config: add function to get monitor manager
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] display-config: add function to get monitor manager
- Date: Mon, 30 Mar 2015 20:08:28 +0000 (UTC)
commit 9b275d9008504376fe24dd911655fdf897bd5935
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Mon Mar 30 13:41:45 2015 +0300
display-config: add function to get monitor manager
We will need monitor manager in shell for monitor labels.
.../libdisplay-config/flashback-display-config.c | 9 +++++++++
.../libdisplay-config/flashback-display-config.h | 6 +++++-
2 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/gnome-flashback/libdisplay-config/flashback-display-config.c
b/gnome-flashback/libdisplay-config/flashback-display-config.c
index c5a649d..a71e92b 100644
--- a/gnome-flashback/libdisplay-config/flashback-display-config.c
+++ b/gnome-flashback/libdisplay-config/flashback-display-config.c
@@ -940,3 +940,12 @@ flashback_display_config_new (void)
return g_object_new (FLASHBACK_TYPE_DISPLAY_CONFIG,
NULL);
}
+
+FlashbackMonitorManager *
+flashback_display_config_get_monitor_manager (FlashbackDisplayConfig *config)
+{
+ if (config == NULL)
+ return NULL;
+
+ return config->manager;
+}
diff --git a/gnome-flashback/libdisplay-config/flashback-display-config.h
b/gnome-flashback/libdisplay-config/flashback-display-config.h
index 28f25a1..f7d2f0c 100644
--- a/gnome-flashback/libdisplay-config/flashback-display-config.h
+++ b/gnome-flashback/libdisplay-config/flashback-display-config.h
@@ -22,12 +22,16 @@
G_BEGIN_DECLS
+typedef struct _FlashbackMonitorManager FlashbackMonitorManager;
+
#define FLASHBACK_TYPE_DISPLAY_CONFIG flashback_display_config_get_type ()
G_DECLARE_FINAL_TYPE (FlashbackDisplayConfig, flashback_display_config,
FLASHBACK, DISPLAY_CONFIG,
GObject)
-FlashbackDisplayConfig *flashback_display_config_new (void);
+FlashbackDisplayConfig *flashback_display_config_new (void);
+
+FlashbackMonitorManager *flashback_display_config_get_monitor_manager (FlashbackDisplayConfig *config);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]