[yast-commit] r42551 - /trunk/ncurses/src/pkg/NCPkgPopupDeps.cc
Author: sh-sh-sh Date: Fri Nov 30 12:28:03 2007 New Revision: 42551 URL: http://svn.opensuse.org/viewcvs/yast?rev=42551&view=rev Log: Exchanged outdated (and now no longer existing) way to replace items with the newer (and much simpler) way. PLEASE TEST Modified: trunk/ncurses/src/pkg/NCPkgPopupDeps.cc Modified: trunk/ncurses/src/pkg/NCPkgPopupDeps.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/pkg/NCPkgPopupDeps.cc?rev=42551&r1=42550&r2=42551&view=diff ============================================================================== --- trunk/ncurses/src/pkg/NCPkgPopupDeps.cc (original) +++ trunk/ncurses/src/pkg/NCPkgPopupDeps.cc Fri Nov 30 12:28:03 2007 @@ -299,14 +299,15 @@ return false; unsigned int size = problems.size (); - solutionw->clearItems (); if ( index < 0 || (unsigned int)index >= size ) return false; - YCPList items; - - + solutionw->startMultipleChanges(); +#warning FIXME: is this necessary if the next step is deleteAllItems()? + solutionw->clearItems (); + solutionw->deleteAllItems(); + zypp::ResolverProblem_Ptr problem = problems[index].first; zypp::ProblemSolution_Ptr user_solution = problems[index].second; @@ -322,15 +323,14 @@ UIMIL << " SOL " << (*ii)->description () << endl; UIMIL << " : " << (*ii)->details () << endl; - YCPList termargs; - termargs->add (YCPString ((*ii)->description ())); // label - termargs->add (YCPBoolean (user_solution == *ii)); // selected + solutionw->addItem( new YItem ( (*ii)->description(), // label + (user_solution == *ii) ) ); // selected + UIMIL << "usr: " << user_solution << " cur: " << *ii << endl; - - items->add (YCPTerm (YUISymbol_item, termargs)); } - solutionw->changeWidget (YCPSymbol (YUIProperty_Items), - items); + + solutionw->doneMultipleChanges(); + return true; } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
sh-sh-sh@svn.opensuse.org