E (RandR): Add function & prototype to return if a monitor has been

changed.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77714
This commit is contained in:
Christopher Michael 2012-10-10 07:55:11 +00:00 committed by Christopher Michael
parent 5347a339b3
commit 136cc5035a
2 changed files with 12 additions and 0 deletions

View File

@ -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)

View File

@ -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