rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=43678023f89e992cceac358004954b744752533a

commit 43678023f89e992cceac358004954b744752533a
Author: Andrii Kroitor <an.kroi...@samsung.com>
Date:   Tue Oct 6 11:22:43 2015 +0300

    property: use editor api for color classes
---
 src/bin/editor/editor.h | 3 +++
 src/bin/ui/property.c   | 7 ++++++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/bin/editor/editor.h b/src/bin/editor/editor.h
index abcb8d0..e74a65b 100644
--- a/src/bin/editor/editor.h
+++ b/src/bin/editor/editor.h
@@ -368,6 +368,9 @@ editor_state_image_border_fill_set(Evas_Object *obj, Change 
*change, Eina_Bool m
 Eina_Bool
 editor_state_fill_type_set(Evas_Object *obj, Change *change, Eina_Bool merge, 
const char *part_name, const char *state_name, double state_val,
       unsigned char new_val);
+Eina_Bool
+editor_state_color_class_set(Evas_Object *obj, Change *change, Eina_Bool 
merge, const char *part_name, const char *state_name, double state_val,
+      const char * new_val);
 
 /* Part */
 
diff --git a/src/bin/ui/property.c b/src/bin/ui/property.c
index ac1bfe0..3192153 100644
--- a/src/bin/ui/property.c
+++ b/src/bin/ui/property.c
@@ -1659,7 +1659,11 @@ _on_state_color_class_change(void *data,
    assert(pd != NULL);
 
    value = strcmp(item->title, "None") ? item->title : NULL;
-   edje_edit_state_color_class_set(pd->group->edit_object, pd->part->name,
+   Eina_Stringshare *msg = eina_stringshare_printf(_("color class changed to 
%s"), item->title);
+   Change *change = change_add(msg);
+   eina_stringshare_del(msg);
+   editor_state_color_class_set(pd->group->edit_object, change, false,
+                                   pd->part->name,
                                    pd->part->current_state->parsed_name,
                                    pd->part->current_state->parsed_val,
                                    value);
@@ -1683,6 +1687,7 @@ _on_state_color_class_change(void *data,
    edje_edit_string_free(value);
 
    //project_changed(false);
+   history_change_add(pd->group->history, change);
    evas_object_smart_callback_call(ap.win, SIGNAL_PROPERTY_ATTRIBUTE_CHANGED, 
NULL);
 }
 

-- 


Reply via email to