Enlightenment CVS committal Author : nerochiaro Project : e17 Module : proto
Dir : e17/proto/ruby-efl/src/etk/examples Modified Files: etk_test_button.rb etk_test.rb etk_test_tree.rb Log Message: updated examples to reflect API changes =================================================================== RCS file: /cvs/e/e17/proto/ruby-efl/src/etk/examples/etk_test_button.rb,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- etk_test_button.rb 11 Aug 2006 11:47:07 -0000 1.1 +++ etk_test_button.rb 31 Aug 2006 22:02:48 -0000 1.2 @@ -14,41 +14,41 @@ button_normal = Button.new_with_label("Normal button") button_normal.tooltip = "This is a normal button" - box.pack_start(button_normal, false, false, 0) + box.append(button_normal, Etk::BOX_START, Etk::BOX_NONE, 0) image = Image.new_from_file(PACKAGE_DATA_DIR + "/images/e_icon.png") button_normal = Button.new_with_label("Button with an image") button_normal.tooltip = "This is a normal button with an image" button_normal.image = image - box.pack_start(button_normal, false, false, 0) + box.append(button_normal, Etk::BOX_START, Etk::BOX_NONE, 0) button_normal = Button.new button_normal.tooltip = "This is a normal button with nothing" - box.pack_start(button_normal, false, false, 0) + box.append(button_normal, Etk::BOX_START, Etk::BOX_NONE, 0) button_check = CheckButton.new_with_label("Check button") button_check.tooltip = "This is a check button" - box.pack_start(button_check, false, false, 0) + box.append(button_check, Etk::BOX_START, Etk::BOX_NONE, 0) button_check = CheckButton.new button_check.tooltip = "This is another check button" - box.pack_start(button_check, false, false, 0) + box.append(button_check, Etk::BOX_START, Etk::BOX_NONE, 0) button_radio = RadioButton.new_with_label("Radio button", nil) button_radio.tooltip = "This is a radio button" - box.pack_start(button_radio, false, false, 0) + box.append(button_radio, Etk::BOX_START, Etk::BOX_NONE, 0) button_radio = RadioButton.new_from_widget(button_radio) button_radio.tooltip = "This is another radio button" - box.pack_start(button_radio, false, false, 0) + box.append(button_radio, Etk::BOX_START, Etk::BOX_NONE, 0) button_toggle = ToggleButton.new_with_label("Toggle button") button_toggle.tooltip = "This is a toggle button" - box.pack_start(button_toggle, false, false, 0) + box.append(button_toggle, Etk::BOX_START, Etk::BOX_NONE, 0) button_toggle = ToggleButton.new button_toggle.tooltip = "This is another toggle button" - box.pack_start(button_toggle, false, false, 0) + box.append(button_toggle, Etk::BOX_START, Etk::BOX_NONE, 0) @box = box end =================================================================== RCS file: /cvs/e/e17/proto/ruby-efl/src/etk/examples/etk_test.rb,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- etk_test.rb 11 Aug 2006 11:47:07 -0000 1.1 +++ etk_test.rb 31 Aug 2006 22:02:48 -0000 1.2 @@ -57,7 +57,7 @@ CATEGORIES.each { |category| frame = Frame.new(category[:title]) - box.pack_start(frame, true, true, 0) + box.append(frame, Etk::BOX_START, Etk::BOX_NONE, 0) table = Table.new(NUM_COLS, (category[:examples].length + NUM_COLS - 1) / NUM_COLS, true); frame << table @@ -68,7 +68,7 @@ button.label = example.label button << ButtonClickedSignal.new { example.run if example.respond_to?(:run) } - table.attach_defaults(button, i % NUM_COLS, i % NUM_COLS, i / NUM_COLS, i / NUM_COLS) + table.attach_default(button, i % NUM_COLS, i % NUM_COLS, i / NUM_COLS, i / NUM_COLS) } } =================================================================== RCS file: /cvs/e/e17/proto/ruby-efl/src/etk/examples/etk_test_tree.rb,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- etk_test_tree.rb 11 Aug 2006 11:47:07 -0000 1.1 +++ etk_test_tree.rb 31 Aug 2006 22:02:48 -0000 1.2 @@ -19,11 +19,11 @@ self << table label = Label.new("<h1>Tree:</h1>") - table.attach(label, 0, 0, 0, 0, 0, 0, Etk::FILL_POLICY_HFILL | Etk::FILL_POLICY_HFILL) + table.attach(label, 0, 0, 0, 0, 0, 0, Etk::TABLE_FILL) tree = Tree.new tree.size_request_set(320, 400) - table.attach_defaults(tree, 0, 0, 1, 1) + table.attach_default(tree, 0, 0, 1, 1) tree.mode = Etk::TREE_MODE_TREE tree.multiple_select = true ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs