Hello community, here is the log from the commit of package yast2-ncurses for openSUSE:11.4 checked in at Sun Feb 27 13:20:58 CET 2011.
-------- --- old-versions/11.4/all/yast2-ncurses/yast2-ncurses.changes 2011-02-15 14:11:04.000000000 +0100 +++ 11.4/yast2-ncurses/yast2-ncurses.changes 2011-02-24 13:17:52.000000000 +0100 @@ -1,0 +2,7 @@ +Thu Feb 24 13:10:43 CET 2011 - [email protected] + +- Bug-fix for bnc #673801 (deselecting items in NCTree with multi + selection works correctly) +- V 2.20.7 + +------------------------------------------------------------------- calling whatdependson for 11.4-i586 Old: ---- yast2-ncurses-2.20.6.tar.bz2 New: ---- yast2-ncurses-2.20.7.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ yast2-ncurses.spec ++++++ --- /var/tmp/diff_new_pack.Ek9oyb/_old 2011-02-27 13:20:23.000000000 +0100 +++ /var/tmp/diff_new_pack.Ek9oyb/_new 2011-02-27 13:20:23.000000000 +0100 @@ -19,11 +19,11 @@ Name: yast2-ncurses -Version: 2.20.6 -Release: 1 +Version: 2.20.7 +Release: 1.<RELEASE2> BuildRoot: %{_tmppath}/%{name}-%{version}-build -Source0: yast2-ncurses-2.20.6.tar.bz2 +Source0: yast2-ncurses-2.20.7.tar.bz2 Prefix: /usr @@ -56,7 +56,7 @@ component for YaST2. %prep -%setup -n yast2-ncurses-2.20.6 +%setup -n yast2-ncurses-2.20.7 %build %{prefix}/bin/y2tool y2autoconf @@ -97,4 +97,5 @@ %dir %{prefix}/include/YaST2 %{prefix}/include/YaST2/ncurses/ %doc %{prefix}/share/doc/packages/yast2-ncurses + %changelog ++++++ yast2-ncurses-2.20.6.tar.bz2 -> yast2-ncurses-2.20.7.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-ncurses-2.20.6/VERSION new/yast2-ncurses-2.20.7/VERSION --- old/yast2-ncurses-2.20.6/VERSION 2011-02-15 13:43:42.000000000 +0100 +++ new/yast2-ncurses-2.20.7/VERSION 2011-02-24 13:14:07.000000000 +0100 @@ -1 +1 @@ -2.20.6 +2.20.7 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-ncurses-2.20.6/configure new/yast2-ncurses-2.20.7/configure --- old/yast2-ncurses-2.20.6/configure 2011-02-15 14:08:04.000000000 +0100 +++ new/yast2-ncurses-2.20.7/configure 2011-02-24 13:16:20.000000000 +0100 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.65 for yast2-ncurses 2.20.6. +# Generated by GNU Autoconf 2.65 for yast2-ncurses 2.20.7. # # Report bugs to <http://bugs.opensuse.org/>. # @@ -701,8 +701,8 @@ # Identity of this package. PACKAGE_NAME='yast2-ncurses' PACKAGE_TARNAME='yast2-ncurses' -PACKAGE_VERSION='2.20.6' -PACKAGE_STRING='yast2-ncurses 2.20.6' +PACKAGE_VERSION='2.20.7' +PACKAGE_STRING='yast2-ncurses 2.20.7' PACKAGE_BUGREPORT='http://bugs.opensuse.org/' PACKAGE_URL='' @@ -1477,7 +1477,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures yast2-ncurses 2.20.6 to adapt to many kinds of systems. +\`configure' configures yast2-ncurses 2.20.7 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1548,7 +1548,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of yast2-ncurses 2.20.6:";; + short | recursive ) echo "Configuration of yast2-ncurses 2.20.7:";; esac cat <<\_ACEOF @@ -1660,7 +1660,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -yast2-ncurses configure 2.20.6 +yast2-ncurses configure 2.20.7 generated by GNU Autoconf 2.65 Copyright (C) 2009 Free Software Foundation, Inc. @@ -2245,7 +2245,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by yast2-ncurses $as_me 2.20.6, which was +It was created by yast2-ncurses $as_me 2.20.7, which was generated by GNU Autoconf 2.65. Invocation command line was $ $0 $@ @@ -3168,7 +3168,7 @@ # Define the identity of the package. PACKAGE='yast2-ncurses' - VERSION='2.20.6' + VERSION='2.20.7' cat >>confdefs.h <<_ACEOF @@ -3290,7 +3290,7 @@ -VERSION="2.20.6" +VERSION="2.20.7" RPMNAME="yast2-ncurses" MAINTAINER="Gabriele Mohr <[email protected]>" @@ -16003,7 +16003,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by yast2-ncurses $as_me 2.20.6, which was +This file was extended by yast2-ncurses $as_me 2.20.7, which was generated by GNU Autoconf 2.65. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -16069,7 +16069,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -yast2-ncurses config.status 2.20.6 +yast2-ncurses config.status 2.20.7 configured by $0, generated by GNU Autoconf 2.65, with options \\"\$ac_cs_config\\" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-ncurses-2.20.6/configure.in new/yast2-ncurses-2.20.7/configure.in --- old/yast2-ncurses-2.20.6/configure.in 2011-02-15 14:07:57.000000000 +0100 +++ new/yast2-ncurses-2.20.7/configure.in 2011-02-24 13:16:10.000000000 +0100 @@ -3,7 +3,7 @@ dnl -- This file is generated by y2autoconf 2.18.11 - DO NOT EDIT! -- dnl (edit configure.in.in instead) -AC_INIT(yast2-ncurses, 2.20.6, http://bugs.opensuse.org/, yast2-ncurses) +AC_INIT(yast2-ncurses, 2.20.7, http://bugs.opensuse.org/, yast2-ncurses) dnl Check for presence of file 'RPMNAME' AC_CONFIG_SRCDIR([RPMNAME]) @@ -18,7 +18,7 @@ AM_INIT_AUTOMAKE(tar-ustar -Wno-portability) dnl Important YaST2 variables -VERSION="2.20.6" +VERSION="2.20.7" RPMNAME="yast2-ncurses" MAINTAINER="Gabriele Mohr <[email protected]>" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-ncurses-2.20.6/src/NCTree.cc new/yast2-ncurses-2.20.7/src/NCTree.cc --- old/yast2-ncurses-2.20.6/src/NCTree.cc 2011-02-09 11:06:48.000000000 +0100 +++ new/yast2-ncurses-2.20.7/src/NCTree.cc 2011-02-24 13:06:30.000000000 +0100 @@ -344,7 +344,20 @@ return yitem; } +void NCTree::deselectAllItems() +{ + if ( multiSel) + { + YItemCollection selectedItems = YTree::selectedItems(); + + for ( YItemConstIterator it = selectedItems.begin(); it != selectedItems.end(); ++it ) + { + selectItem( *it, false ); + } + } + YTree::deselectAllItems(); +} // Set current item (under the cursor) to selected @@ -352,7 +365,7 @@ { if ( !myPad() ) return; - + YTreeItem * treeItem = dynamic_cast<YTreeItem *>( item ); YUI_CHECK_PTR( treeItem ); YTreeItem *citem = getCurrentItem(); @@ -372,9 +385,9 @@ } } - if ( !selected && ( treeItem == citem ) ) + if ( !selected ) { - if ( !multiSel ) + if ( !multiSel && (treeItem == citem) ) { YTree::deselectAllItems(); } @@ -483,7 +496,7 @@ { if ( !myPad() ) { - yuiWarning() << "PadWidget not valid" << endl; + yuiWarning() << "PadWidget not yet created" << endl; return; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-ncurses-2.20.6/src/NCTree.h new/yast2-ncurses-2.20.7/src/NCTree.h --- old/yast2-ncurses-2.20.6/src/NCTree.h 2011-02-08 14:49:35.000000000 +0100 +++ new/yast2-ncurses-2.20.7/src/NCTree.h 2011-02-23 10:34:02.000000000 +0100 @@ -74,6 +74,8 @@ virtual YTreeItem * getCurrentItem() const; virtual YTreeItem * currentItem(); + + virtual void deselectAllItems(); virtual void selectItem( YItem *item, bool selected ); virtual void selectItem( int index ); ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
