E (RandR): Add function to 'reset' a monitor's changes. This is used
authorChristopher Michael <cp.michael@samsung.com>
Thu, 11 Oct 2012 14:29:17 +0000 (14:29 +0000)
committerChristopher Michael <cpmichael1@comcast.net>
Thu, 11 Oct 2012 14:29:17 +0000 (14:29 +0000)
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

src/modules/conf_randr/e_smart_monitor.c

index 163eddc93347d9e0e233fe22323530864df9b1af..b89611e6285c1d26074b5ffa0a93cd3afaddd806 100644 (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)