From 136cc5035a03d3ca9864db75b9e06d0200f19c9f Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Wed, 10 Oct 2012 07:55:11 +0000 Subject: [PATCH] E (RandR): Add function & prototype to return if a monitor has been changed. Signed-off-by: Christopher Michael SVN revision: 77714 --- src/modules/conf_randr/e_smart_monitor.c | 11 +++++++++++ src/modules/conf_randr/e_smart_monitor.h | 1 + 2 files changed, 12 insertions(+) diff --git a/src/modules/conf_randr/e_smart_monitor.c b/src/modules/conf_randr/e_smart_monitor.c index 3f627f45a..40a091e04 100644 --- a/src/modules/conf_randr/e_smart_monitor.c +++ b/src/modules/conf_randr/e_smart_monitor.c @@ -426,6 +426,17 @@ e_smart_monitor_connected_get(Evas_Object *obj) return sd->connected; } +Eina_Bool +e_smart_monitor_changed_get(Evas_Object *obj) +{ + E_Smart_Data *sd; + + if (!(sd = evas_object_smart_data_get(obj))) + return EINA_FALSE; + + return sd->changed; +} + /* local functions */ static void _e_smart_add(Evas_Object *obj) diff --git a/src/modules/conf_randr/e_smart_monitor.h b/src/modules/conf_randr/e_smart_monitor.h index 80592cc40..8ef6eadea 100644 --- a/src/modules/conf_randr/e_smart_monitor.h +++ b/src/modules/conf_randr/e_smart_monitor.h @@ -13,6 +13,7 @@ void e_smart_monitor_position_get(Evas_Object *obj, Evas_Coord *x, Evas_Coord *y Ecore_X_Randr_Orientation e_smart_monitor_orientation_get(Evas_Object *obj); Ecore_X_Randr_Mode_Info *e_smart_monitor_mode_get(Evas_Object *obj); Eina_Bool e_smart_monitor_connected_get(Evas_Object *obj); +Eina_Bool e_smart_monitor_changed_get(Evas_Object *obj); # define E_SMART_MONITOR_H # endif