Author: sh-sh-sh Date: Wed Jul 16 14:01:21 2008 New Revision: 49162 URL: http://svn.opensuse.org/viewcvs/yast?rev=49162&view=rev Log: added test case for multiple selection Modified: trunk/ycp-ui-bindings/examples/Events.ycp Modified: trunk/ycp-ui-bindings/examples/Events.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/ycp-ui-bindings/examples/Events.y... ============================================================================== --- trunk/ycp-ui-bindings/examples/Events.ycp (original) +++ trunk/ycp-ui-bindings/examples/Events.ycp Wed Jul 16 14:01:21 2008 @@ -108,7 +108,7 @@ `item(`id(`sprite), "Sprite", "" ), `item(`id(`water), "Mineral Water", "" ), `item(`id(`beer), "Beer", "Alcohol" ), - `item(`id(`beer), "Wine", "Alcohol" ), + `item(`id(`wine), "Wine", "Alcohol" ), `item(`id(`coffee), "Coffee", "Caffeine" ) ] ); @@ -139,7 +139,8 @@ `item(`id(`doggie_bag ), "Order doggie bag" ), `item(`id( "This is a dumb user who will click on everything. Nevermind." ), "Order dog to eat the leftovers in the doggie bag" ), - `item(`id(`cancel_order), "Cancel order" ) + `item(`id(`cancel_order), "Cancel order" ), + `item(`id(`caffeine), "Give me caffeine" ) ] ) ); @@ -253,6 +254,10 @@ UI::ChangeWidget(`send_mafioso, `Value, nil ); UI::DumpWidgetTree(); } + else if ( event["ID"]:nil == `caffeine ) + { + UI::ChangeWidget(`drink, `SelectedItems, [`coffee, `coke] ); + } else if ( event["ID"]:nil == `info ) { UI::SetFocus(`bogus); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org