rimmed pushed a commit to branch master.

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

commit fd921ae06dd75e994a940de17965a54dcd8cc7fa
Author: Andrii Kroitor <an.kroi...@samsung.com>
Date:   Fri Oct 16 11:49:19 2015 +0300

    workspace: change part rename
    
    removed workspace_edit_object_part_rename - groupedit part name should no 
longer
    be updated manualy.
    
    added workspace_part_list_update_part
---
 src/bin/ui/workspace/workspace.c | 30 ++++++++----------------------
 src/bin/ui/workspace/workspace.h | 25 ++++++++-----------------
 2 files changed, 16 insertions(+), 39 deletions(-)

diff --git a/src/bin/ui/workspace/workspace.c b/src/bin/ui/workspace/workspace.c
index 46f3ebf..f7268a4 100644
--- a/src/bin/ui/workspace/workspace.c
+++ b/src/bin/ui/workspace/workspace.c
@@ -1405,6 +1405,14 @@ ws_groupedit_get(Evas_Object *obj)
    return sd->groupedit;
 }
 
+void
+workspace_part_list_update_part(Evas_Object *obj, Part_ *part)
+{
+   WS_DATA_GET(obj, sd);
+   assert(part != NULL);
+
+   part_list_part_update(sd->part_list, part);
+}
 #define PADDING_SIZE 40
 
 Eina_Bool
@@ -1431,28 +1439,6 @@ workspace_edit_object_recalc(Evas_Object *obj)
 }
 
 Eina_Bool
-workspace_edit_object_part_rename(Evas_Object *obj,
-                                  const char *old_name,
-                                  const char *new_name)
-{
-   Eina_Bool ret;
-   WS_DATA_GET(obj, sd);
-
-   assert(old_name != NULL);
-   assert(new_name != NULL);
-   assert(strcmp(old_name, ""));
-   assert(strcmp(new_name, ""));
-
-   if (!strcmp(old_name, new_name))
-     return false;
-
-   ret = groupedit_edit_object_part_rename(sd->groupedit, old_name, new_name);
-   if (ret)
-     evas_object_smart_callback_call(obj, "part,name,changed", (void 
*)new_name);
-   return ret;
-}
-
-Eina_Bool
 workspace_edit_object_part_add(Evas_Object *obj, Part_ *part)
 {
    WS_DATA_GET(obj, sd);
diff --git a/src/bin/ui/workspace/workspace.h b/src/bin/ui/workspace/workspace.h
index c428b76..b0b89b5 100644
--- a/src/bin/ui/workspace/workspace.h
+++ b/src/bin/ui/workspace/workspace.h
@@ -63,36 +63,27 @@ Evas_Object *
 ws_groupedit_get(Evas_Object *obj);
 
 /**
- * Force recal for editable object from the workspace.
+ * Update part info in part list
  *
  * @param obj The workspace object.
- *
- * @return EINA_FALSE on failure, EINA_TRUE on success.
+ * @param part Part to be updated.
  *
  * @ingroup Workspace
  */
-Eina_Bool
-workspace_edit_object_recalc(Evas_Object *obj);
+void
+workspace_part_list_update_part(Evas_Object *obj, Part_ *part);
 
 /**
- * Renaming the part object with new name.
- *
- * This renaming function doesn't accept any names like "" or NULL.
- * Also if part with new name is already exist, or part with old name is not
- * exist it will return false (EINA_FALSE).
+ * Force recal for editable object from the workspace.
  *
- * @param obj The workspace object,
- * @param part_old_name Old name of the part that is going to be renamed with 
new name.
- * @param part_new_name New name of the part that is going to be setted.
+ * @param obj The workspace object.
  *
- * @return EINA_TRUE on success or EINA_FALSE, on errors.
+ * @return EINA_FALSE on failure, EINA_TRUE on success.
  *
  * @ingroup Workspace
  */
 Eina_Bool
-workspace_edit_object_part_rename(Evas_Object *obj,
-                                  const char *old_name,
-                                  const char *new_name);
+workspace_edit_object_recalc(Evas_Object *obj);
 
 /**
  * Add new part into style, which currently loaded into workspace.

-- 


Reply via email to