E (RandR): Add function to 'reset' a monitor's changes. This is used

after any user modifications have been applied so that we an reset the
'original' values to the 'currently applied' values. This helps to
keep the Apply button in sync.

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

SVN revision: 77890
This commit is contained in:
Christopher Michael 2012-10-11 14:29:17 +00:00 committed by Christopher Michael
parent c063ed25ac
commit 44a95f2797
1 changed files with 18 additions and 0 deletions

View File

@ -518,6 +518,24 @@ e_smart_monitor_changes_get(Evas_Object *obj)
return sd->changes;
}
void
e_smart_monitor_changes_sent(Evas_Object *obj)
{
E_Smart_Data *sd;
if (!(sd = evas_object_smart_data_get(obj)))
return;
sd->changes = E_SMART_MONITOR_CHANGED_NONE;
sd->orig.orientation = sd->current.orientation;
sd->orig.refresh_rate = sd->current.refresh_rate;
sd->orig.mode = sd->current.mode;
sd->orig.x = sd->current.x;
sd->orig.y = sd->current.y;
sd->orig.enabled = sd->current.enabled;
}
/* local functions */
static void
_e_smart_add(Evas_Object *obj)