rimmed pushed a commit to branch master.

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

commit b66318e55e1f5e2fc2d03a2e36491010a16db677
Author: Vyacheslav Reutskiy <v.reuts...@samsung.com>
Date:   Wed Feb 10 11:48:22 2016 +0200

    tabs: add API for set data to import edje tab fields
    
    Change-Id: I3e77d5148cad761e2d7b2593c1239d1e9d5e2f63
---
 src/bin/ui/tab_home_import_edj.c | 13 +++++++++++++
 src/bin/ui/tabs.c                |  6 ++++++
 src/bin/ui/tabs.h                |  8 ++++++++
 src/bin/ui/tabs_private.h        |  3 +++
 4 files changed, 30 insertions(+)

diff --git a/src/bin/ui/tab_home_import_edj.c b/src/bin/ui/tab_home_import_edj.c
index 7372ffc..4df5eae 100644
--- a/src/bin/ui/tab_home_import_edj.c
+++ b/src/bin/ui/tab_home_import_edj.c
@@ -198,3 +198,16 @@ _tab_import_edj_add(void)
 
    return tab_edj.layout;
 }
+
+void
+_tab_import_edj_data_set(const char *name, const char *path, const char *edj)
+{
+   assert(tab_edj.layout != NULL);
+
+   elm_entry_entry_set(tab_edj.name, name);
+
+   if (path) elm_entry_entry_set(tab_edj.name, path);
+   else elm_entry_entry_set(tab_edj.path, 
profile_get()->general.projects_folder);
+
+   elm_entry_entry_set(tab_edj.edj, edj);
+}
diff --git a/src/bin/ui/tabs.c b/src/bin/ui/tabs.c
index 0fae5e7..3f81535 100644
--- a/src/bin/ui/tabs.c
+++ b/src/bin/ui/tabs.c
@@ -737,6 +737,12 @@ tabs_menu_tab_open(Tabs_Menu view)
 #undef _TAB_HOME_CASE
 }
 
+void
+tabs_menu_import_edj_data_set(const char *name, const char *path, const char 
*edj)
+{
+   _tab_import_edj_data_set(name, path, edj);
+}
+
 static void
 _tab_close(void *data,
            Elm_Object_Item *it __UNUSED__,
diff --git a/src/bin/ui/tabs.h b/src/bin/ui/tabs.h
index ac23d6b..cef4c0b 100644
--- a/src/bin/ui/tabs.h
+++ b/src/bin/ui/tabs.h
@@ -61,6 +61,14 @@ void
 tabs_menu_tab_open(Tabs_Menu view);
 
 /**
+ * Fill the import edj tab fields
+ *
+ * @ingroup Tabs
+ */
+void
+tabs_menu_import_edj_data_set(const char *name, const char *path, const char 
*edj);
+
+/**
  * Add new tab. This tab consist a workspace and a liveview.
  *
  * @param group The Group object
diff --git a/src/bin/ui/tabs_private.h b/src/bin/ui/tabs_private.h
index a79c827..ff62f07 100644
--- a/src/bin/ui/tabs_private.h
+++ b/src/bin/ui/tabs_private.h
@@ -51,6 +51,9 @@ _tab_open_project_recents_update();
 Evas_Object *
 _tab_import_edj_add(void);
 
+void
+_tab_import_edj_data_set(const char *name, const char *path, const char *edj);
+
 Evas_Object *
 _tab_import_edc_add(void);
 

-- 


Reply via email to