seoz pushed a commit to branch master.

http://git.enlightenment.org/tools/elm-theme-viewer.git/commit/?id=bb4c6f8ae82095a2ee958d90b906aef7a3c77b64

commit bb4c6f8ae82095a2ee958d90b906aef7a3c77b64
Author: Daniel Juyung Seo <[email protected]>
Date:   Sun Aug 17 01:56:43 2014 +0900

    dev: added elm theme viewer development guideline.
---
 DEV.txt | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/DEV.txt b/DEV.txt
new file mode 100644
index 0000000..d1d2ee0
--- /dev/null
+++ b/DEV.txt
@@ -0,0 +1,20 @@
+=== to add a new widget ===
+
+
+=== to add a new widget option ===
+- add a new variable           <widget_option.h>
+- to initialize the variable, modify _wod_init()               
<widget_option.c>
+- add a new entry in widget_option_content_update()            
<widget_option.c>
+       ex) WIDGET_OPTION(notify, ETV_ID_NOTIFY)
+- add specific options         <widget_option.c>
+       - check
+               - for caller
+                       WIDGET_OPTION_CHECK_ADD("Allow background events", 
wod->notify_event, _notify_event_changed_cb);
+               - for callee
+                       WIDGET_OPTION_CHECK_CHANGED_CB(notify_event, 
wod->notify_event);
+- use specific options         <widget.c>
+       if (wod)
+               {
+                       if (wod->btn_text)
+                               elm_object_text_set(o, "This is a Button");
+               }

-- 


Reply via email to