From 44a95f2797bfe96926d423c078979f684bb479c5 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Thu, 11 Oct 2012 14:29:17 +0000 Subject: [PATCH] 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 SVN revision: 77890 --- src/modules/conf_randr/e_smart_monitor.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/modules/conf_randr/e_smart_monitor.c b/src/modules/conf_randr/e_smart_monitor.c index 163eddc93..b89611e62 100644 --- a/src/modules/conf_randr/e_smart_monitor.c +++ b/src/modules/conf_randr/e_smart_monitor.c @@ -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)