rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=49c5710a03159938dc4f03ebc1af670cf8b94a73

commit 49c5710a03159938dc4f03ebc1af670cf8b94a73
Author: Andrii Kroitor <an.kroi...@samsung.com>
Date:   Mon Jan 4 18:01:22 2016 +0200

    editor: use dummy image
---
 src/bin/editor/default.c       | 2 +-
 src/bin/editor/editor_part.c   | 2 ++
 src/bin/editor/editor_states.c | 6 +++++-
 3 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/bin/editor/default.c b/src/bin/editor/default.c
index 019a986..e015d7e 100644
--- a/src/bin/editor/default.c
+++ b/src/bin/editor/default.c
@@ -135,7 +135,7 @@ EDITOR_STATE_NULL_STRING_RESET(rel2_to_x, NULL)
 EDITOR_STATE_NULL_STRING_RESET(rel2_to_y, NULL)
 EDITOR_STATE_NULL_STRING_RESET(proxy_source, NULL)
 EDITOR_STATE_NULL_STRING_RESET(color_class, NULL)
-EDITOR_STATE_NULL_STRING_RESET(image, "")
+EDITOR_STATE_NULL_STRING_RESET(image, EFLETE_DUMMY_IMAGE_NAME)
 EDITOR_STATE_NULL_STRING_RESET(text_source, NULL)
 EDITOR_STATE_NULL_STRING_RESET(text_text_source, NULL)
 EDITOR_STATE_NULL_STRING_RESET(text, NULL)
diff --git a/src/bin/editor/editor_part.c b/src/bin/editor/editor_part.c
index ae5c42b..18bbeef 100644
--- a/src/bin/editor/editor_part.c
+++ b/src/bin/editor/editor_part.c
@@ -702,6 +702,8 @@ editor_part_add(Evas_Object *edit_object, Change *change, 
Eina_Bool merge __UNUS
    TODO("Fix edje_edit")
    if (type == EDJE_PART_TYPE_BOX)
      edje_edit_state_box_layout_set(edit_object, part_name, "default", 0.0, 
"horizontal");
+   else if (type == EDJE_PART_TYPE_IMAGE)
+     edje_edit_state_image_set(edit_object, part_name, "default", 0.0, 
EFLETE_DUMMY_IMAGE_NAME);
 
    event_info = eina_stringshare_add(part_name);
    if (!_editor_signals_blocked) evas_object_smart_callback_call(ap.win, 
SIGNAL_EDITOR_PART_ADDED, (void *)event_info);
diff --git a/src/bin/editor/editor_states.c b/src/bin/editor/editor_states.c
index c3fad29..fb92321 100644
--- a/src/bin/editor/editor_states.c
+++ b/src/bin/editor/editor_states.c
@@ -382,6 +382,7 @@ editor_state_add(Evas_Object *edit_object, Change *change, 
Eina_Bool merge __UNU
 {
    Diff *diff;
    Editor_State event_info;
+   Edje_Part_Type type;
 
    assert(edit_object != NULL);
 
@@ -406,8 +407,11 @@ editor_state_add(Evas_Object *edit_object, Change *change, 
Eina_Bool merge __UNU
 
    /* fix incorrect default values */
    TODO("Fix edje_edit")
-   if (edje_edit_part_type_get(edit_object, part_name) == EDJE_PART_TYPE_BOX)
+   type = edje_edit_part_type_get(edit_object, part_name);
+   if (type == EDJE_PART_TYPE_BOX)
      edje_edit_state_box_layout_set(edit_object, part_name, state_name, 
state_val, "horizontal");
+   else if (type == EDJE_PART_TYPE_IMAGE)
+     edje_edit_state_image_set(edit_object, part_name, state_name, state_val, 
EFLETE_DUMMY_IMAGE_NAME);
 
    _editor_project_changed();
    event_info.part_name = eina_stringshare_add(part_name);

-- 


Reply via email to