cedric pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=55e66fcbb3b8c9dfd698963cebc15b3694724ab1

commit 55e66fcbb3b8c9dfd698963cebc15b3694724ab1
Author: Larry <larry....@gmail.com>
Date:   Sat Jan 9 00:31:26 2016 +0100

    js: fix examples functions
    
    Summary: update functions in examples @fix
    
    Reviewers: cedric, felipealmeida
    
    Differential Revision: https://phab.enlightenment.org/D3548
    
    Signed-off-by: Cedric BAIL <ced...@osg.samsung.com>
---
 src/examples/box_js_example_02.js | 10 +++++-----
 src/examples/bubble_example_01.js |  4 ++--
 src/examples/button_example_01.js |  2 +-
 src/examples/menu_example_01.js   |  4 ++--
 src/examples/radio_example_01.js  | 10 +++++-----
 src/examples/slider_example.js    |  8 ++++----
 src/examples/spinner_example.js   |  4 ++--
 7 files changed, 21 insertions(+), 21 deletions(-)

diff --git a/src/examples/box_js_example_02.js 
b/src/examples/box_js_example_02.js
index 6e76bd1..63684df 100644
--- a/src/examples/box_js_example_02.js
+++ b/src/examples/box_js_example_02.js
@@ -38,13 +38,13 @@ bigbox.packEnd(bx);
 bx.setVisible(true);
 
 bt = new elm.Elm.Button(win);
-bt.textSet("elm.text", "Add");
+bt.setText("elm.text", "Add");
 bx.packEnd(bt);
 bt.setVisible(true);
 bt.on('clicked', _add_cb);
 
 bt = new elm.Elm.Button(win);
-bt.textSet("elm.text", "Clear");
+bt.setText("elm.text", "Clear");
 bx.packEnd(bt);
 bt.setVisible(true);
 bt.on('clicked', _clear_cb);
@@ -57,7 +57,7 @@ bigbox.packEnd(bx);
 bx.setVisible(true);
 
 bt = new elm.Elm.Button(win);
-bt.textSet("elm.text", "Button 1");
+bt.setText("elm.text", "Button 1");
 bx.packEnd(bt);
 bt.setSizeHintWeight(1.0, 1.0);
 bt.setSizeHintAlign(-1.0, -1.0);
@@ -65,7 +65,7 @@ bt.setVisible(true);
 bt.on('clicked', _unpack_cb);
 
 bt = new elm.Elm.Button(win);
-bt.textSet("elm.text", "Button 2");
+bt.setText("elm.text", "Button 2");
 bx.packEnd(bt);
 bt.setSizeHintWeight(1.0, 0.0);
 bt.setSizeHintAlign(1.0, 0.5);
@@ -73,7 +73,7 @@ bt.setVisible(true);
 bt.on('clicked', _unpack_cb);
 
 bt = new elm.Elm.Button(win);
-bt.textSet("elm.text", "Button 3");
+bt.setText("elm.text", "Button 3");
 bx.packEnd(bt);
 bt.setVisible(true);
 bt.on('clicked', _unpack_cb);
diff --git a/src/examples/bubble_example_01.js 
b/src/examples/bubble_example_01.js
index 89ee473..d7b912b 100644
--- a/src/examples/bubble_example_01.js
+++ b/src/examples/bubble_example_01.js
@@ -35,9 +35,9 @@ bubble1.on('clicked',
   {
       ++corner;
       if (corner > 3)
-          bubble1.pos_set(corner = 0);
+          bubble1.setPos(corner = 0);
       else
-          bubble1.pos_set(corner);
+          bubble1.setPos(corner);
   });
 
 label2 = new elm.Elm.Label(win);
diff --git a/src/examples/button_example_01.js 
b/src/examples/button_example_01.js
index 5f34c11..a959427 100644
--- a/src/examples/button_example_01.js
+++ b/src/examples/button_example_01.js
@@ -2,7 +2,7 @@ efl = require('efl');
 elm = require('elm');
 
 _btn_options_cb = function(_btn) {
-     var text = _btn.textGet("elm.text");
+     var text = _btn.getText("elm.text");
      var lbl = text.split(": ");
 
      var t = parseFloat(lbl[1]);
diff --git a/src/examples/menu_example_01.js b/src/examples/menu_example_01.js
index 9e3170f..5ddf9cb 100644
--- a/src/examples/menu_example_01.js
+++ b/src/examples/menu_example_01.js
@@ -17,7 +17,7 @@ menu_it = menu.itemAdd(null, "mail-reply-all", "second 
intem", null, null);
 
 menu.itemAdd(menu_it, "object-rotate-left", "menu 1", null, null);
 button = new elm.Elm.Button(win);
-button.textSet("elm.text", "button - delete items");
+button.setText("elm.text", "button - delete items");
 menu_it1 = menu.itemAdd(menu_it, null, null, null, null);
 menu_it1.setPartContent(null, button);
 
@@ -32,6 +32,6 @@ menu_it = menu.itemAdd(null, null, "third item", null, null);
 menu_it.setDisabled(true);
 
 menu.setVisible(true);
-rect.on('mouse_down', function(){menu.visible_set(true)});
+rect.on('mouse_down', function(){menu.setVisible(true)});
 win.setSize(250, 350);
 win.setVisible(true);
diff --git a/src/examples/radio_example_01.js b/src/examples/radio_example_01.js
index ac91c2c..380b094 100644
--- a/src/examples/radio_example_01.js
+++ b/src/examples/radio_example_01.js
@@ -2,7 +2,7 @@
 elm = require('elm');
 
 _cb = function(obj){
-   console.log(obj.textGet("elm.text"), "state value:", obj.getStateValue());
+   console.log(obj.getText("elm.text"), "state value:", obj.getStateValue());
 }
 
 win = new elm.Elm.WinStandard(null);
@@ -16,7 +16,7 @@ win.resizeObjectAdd(bx);
 bx.setVisible(true);
 
 radio_g = new elm.Elm.Radio(win);
-radio_g.textSet("elm.text", "Radio 1");
+radio_g.setText("elm.text", "Radio 1");
 radio_g.setStateValue(1);
 radio_g.setValue(1);
 ic = new elm.Elm.Icon(win);
@@ -29,7 +29,7 @@ radio_g.on('changed', _cb);
 radio_g.setVisible(true);
 
 radio = new elm.Elm.Radio(win);
-radio.textSet("elm.text", "Radio 2");
+radio.setText("elm.text", "Radio 2");
 radio.setStateValue(2);
 radio.groupAdd(radio_g);
 ic = new elm.Elm.Icon(win);
@@ -42,7 +42,7 @@ radio.on('changed', _cb);
 radio.setVisible(true);
 
 radio = new elm.Elm.Radio(win);
-radio.textSet("elm.text", "Radio 3");
+radio.setText("elm.text", "Radio 3");
 radio.setStateValue(3);
 radio.groupAdd(radio_g);
 bx.packEnd(radio);
@@ -52,7 +52,7 @@ radio.on('changed', _cb);
 radio.setVisible(true);
 
 radio = new elm.Elm.Radio(win);
-radio.textSet("elm.text", "Radio 4");
+radio.setText("elm.text", "Radio 4");
 radio.setStateValue(4);
 radio.groupAdd(radio_g);
 bx.packEnd(radio);
diff --git a/src/examples/slider_example.js b/src/examples/slider_example.js
index e585119..a31692a 100644
--- a/src/examples/slider_example.js
+++ b/src/examples/slider_example.js
@@ -20,7 +20,7 @@ sl.setVisible(true);
 
 /* with icon, end and label */
 sl = new elm.Elm.Slider(win);
-sl.textSet("elm.text", "Counter");
+sl.setText("elm.text", "Counter");
 
 ic = new elm.Elm.Icon(win);
 ic.setStandard("home");
@@ -91,14 +91,14 @@ sl.setVisible(true);
 
 sl.on('changed', function(obj)
                   {
-                     val = obj.value_get();
+                     val = obj.getValue();
                      console.log("Changed to " + val);
                   });
 
 sl.on('delay_changed', function(obj)
                  {
-                    val = obj.value_get();
-                    console.log("Delay changed to " + val);
+                     val = obj.getValue();
+                     console.log("Delay changed to " + val);
                  });
 
 win.setVisible(true);
diff --git a/src/examples/spinner_example.js b/src/examples/spinner_example.js
index c9d2917..ab582fd 100644
--- a/src/examples/spinner_example.js
+++ b/src/examples/spinner_example.js
@@ -78,13 +78,13 @@ sp7.setEditable(true);
 sp7.on('changed',
   function(obj)
   {
-      console.log("Value changed to " + obj.value_get());
+      console.log("Value changed to " + obj.getValue());
   });
 
 sp7.on('delay_changed',
   function(obj)
   {
-      console.log("Value delay changed to " + obj.value_get());
+      console.log("Value delay changed to " + obj.getValue());
   });
 
 win.setVisible(true);

-- 


Reply via email to