netstar pushed a commit to branch master.

http://git.enlightenment.org/tools/edi.git/commit/?id=6ad43c27158497d880a2e5b663b545b4b22be539

commit 6ad43c27158497d880a2e5b663b545b4b22be539
Author: Al Poole <nets...@gmail.com>
Date:   Sat Oct 14 13:26:29 2017 +0100

    welcome: add visual notifcation when fields are empty.
    
    This is quite subtle but I like it.
---
 src/bin/screens/edi_welcome.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/bin/screens/edi_welcome.c b/src/bin/screens/edi_welcome.c
index 5c26377..ce8ac91 100644
--- a/src/bin/screens/edi_welcome.c
+++ b/src/bin/screens/edi_welcome.c
@@ -305,6 +305,13 @@ _edi_welcome_project_new_create_cb(void *data EINA_UNUSED, 
Evas_Object *obj EINA
         edi_create_efl_project(template->skeleton_path, path, name, url, user, 
email,
                                _edi_welcome_project_new_create_done_cb);
      }
+   else
+     {
+        if (path && !path[0])
+          elm_object_focus_set(_create_inputs[0], EINA_TRUE);
+        else if (name && !name[0])
+          elm_object_focus_set(_create_inputs[1], EINA_TRUE);
+     }
 }
 
 static int

-- 


Reply via email to