mirror of
https://github.com/brl/mutter.git
synced 2025-02-19 22:54:08 +00:00
color-device: Add getter for the associated monitor
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2164>
This commit is contained in:
parent
6403cfe170
commit
41ebf3b1bf
@ -360,3 +360,9 @@ meta_color_device_get_id (MetaColorDevice *color_device)
|
|||||||
{
|
{
|
||||||
return color_device->cd_device_id;
|
return color_device->cd_device_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MetaMonitor *
|
||||||
|
meta_color_device_get_monitor (MetaColorDevice *color_device)
|
||||||
|
{
|
||||||
|
return color_device->monitor;
|
||||||
|
}
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
#include <glib-object.h>
|
#include <glib-object.h>
|
||||||
|
|
||||||
#include "backends/meta-backend-types.h"
|
#include "backends/meta-backend-types.h"
|
||||||
|
#include "core/util-private.h"
|
||||||
|
|
||||||
#define META_TYPE_COLOR_DEVICE (meta_color_device_get_type ())
|
#define META_TYPE_COLOR_DEVICE (meta_color_device_get_type ())
|
||||||
G_DECLARE_FINAL_TYPE (MetaColorDevice, meta_color_device,
|
G_DECLARE_FINAL_TYPE (MetaColorDevice, meta_color_device,
|
||||||
@ -37,4 +38,7 @@ void meta_color_device_update_monitor (MetaColorDevice *color_device,
|
|||||||
|
|
||||||
const char * meta_color_device_get_id (MetaColorDevice *color_device);
|
const char * meta_color_device_get_id (MetaColorDevice *color_device);
|
||||||
|
|
||||||
|
META_EXPORT_TEST
|
||||||
|
MetaMonitor * meta_color_device_get_monitor (MetaColorDevice *color_device);
|
||||||
|
|
||||||
#endif /* META_COLOR_DEVICE_H */
|
#endif /* META_COLOR_DEVICE_H */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user