Hello community, here is the log from the commit of package libyui-ncurses for openSUSE:Factory checked in at 2013-06-28 16:05:07 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libyui-ncurses (Old) and /work/SRC/openSUSE:Factory/.libyui-ncurses.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libyui-ncurses" Changes: -------- --- /work/SRC/openSUSE:Factory/libyui-ncurses/libyui-ncurses.changes 2013-06-05 12:53:37.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.libyui-ncurses.new/libyui-ncurses.changes 2013-06-28 16:05:09.000000000 +0200 @@ -2 +2 @@ -Tue May 28 13:40:41 CEST 2013 - [email protected] +Tue Jun 18 15:40:41 CEST 2013 - [email protected] @@ -4,2 +4,3 @@ -- NCTable in multi selection mode: return ValueChanged event if - selection has changed (if options `notify and `immendiate set) +- NCTable multi selection mode: deselect all items correctly, + return ValueChanged event on Return +- version 2.44.0 Old: ---- libyui-ncurses-2.43.9.tar.bz2 New: ---- libyui-ncurses-2.44.0.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libyui-ncurses-doc.spec ++++++ --- /var/tmp/diff_new_pack.jXbrdY/_old 2013-06-28 16:05:10.000000000 +0200 +++ /var/tmp/diff_new_pack.jXbrdY/_new 2013-06-28 16:05:10.000000000 +0200 @@ -1,5 +1,5 @@ # -# spec file for package libyui-ncurses (Version 2.43.9) +# spec file for package libyui-ncurses (Version 2.44.0) # # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # @@ -16,7 +16,7 @@ # Name: libyui-ncurses-doc -Version: 2.43.9 +Version: 2.44.0 Release: 0 License: LGPL-2.1 or LGPL-3.0 Source: libyui-ncurses-%{version}.tar.bz2 ++++++ libyui-ncurses.spec ++++++ --- /var/tmp/diff_new_pack.jXbrdY/_old 2013-06-28 16:05:10.000000000 +0200 +++ /var/tmp/diff_new_pack.jXbrdY/_new 2013-06-28 16:05:10.000000000 +0200 @@ -1,5 +1,5 @@ # -# spec file for package libyui-ncurses (Version 2.43.9) +# spec file for package libyui-ncurses (Version 2.44.0) # # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # @@ -17,7 +17,7 @@ # norootforbuild Name: libyui-ncurses -Version: 2.43.9 +Version: 2.44.0 Release: 0 License: LGPL-2.1 or LGPL-3.0 Source: libyui-ncurses-%{version}.tar.bz2 ++++++ libyui-ncurses-2.43.9.tar.bz2 -> libyui-ncurses-2.44.0.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libyui-ncurses-2.43.9/ChangeLog new/libyui-ncurses-2.44.0/ChangeLog --- old/libyui-ncurses-2.43.9/ChangeLog 2013-05-28 13:48:20.000000000 +0200 +++ new/libyui-ncurses-2.44.0/ChangeLog 2013-06-19 11:52:40.000000000 +0200 @@ -1,8 +1,9 @@ ------------------------------------------------------------------- -Tue May 28 13:40:41 CEST 2013 - [email protected] +Tue Jun 18 15:40:41 CEST 2013 - [email protected] -- NCTable in multi selection mode: return ValueChanged event if - selection has changed (if options `notify and `immendiate set) +- NCTable multi selection mode: deselect all items correctly, + return ValueChanged event on Return +- version 2.44.0 ------------------------------------------------------------------- Fri May 10 10:40:00 UTC 2013 - [email protected] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libyui-ncurses-2.43.9/VERSION.cmake new/libyui-ncurses-2.44.0/VERSION.cmake --- old/libyui-ncurses-2.43.9/VERSION.cmake 2013-05-28 13:48:20.000000000 +0200 +++ new/libyui-ncurses-2.44.0/VERSION.cmake 2013-06-19 11:52:40.000000000 +0200 @@ -1,6 +1,6 @@ SET( VERSION_MAJOR "2" ) -SET( VERSION_MINOR "43" ) -SET( VERSION_PATCH "9" ) +SET( VERSION_MINOR "44" ) +SET( VERSION_PATCH "0" ) SET( VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}${GIT_SHA1_VERSION}" ) ##### This is need for the libyui core, ONLY. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libyui-ncurses-2.43.9/src/NCTable.cc new/libyui-ncurses-2.44.0/src/NCTable.cc --- old/libyui-ncurses-2.43.9/src/NCTable.cc 2013-05-28 13:48:20.000000000 +0200 +++ new/libyui-ncurses-2.44.0/src/NCTable.cc 2013-06-19 11:52:40.000000000 +0200 @@ -405,8 +405,21 @@ void NCTable::deselectAllItems() { - setCurrentItem( -1 ); - YTable::deselectAllItems(); + if ( !multiselect ) + { + setCurrentItem( -1 ); + YTable::deselectAllItems(); + } + else + { + YItemCollection itemCollection = YTable::selectedItems(); + for ( YItemConstIterator it = itemCollection.begin(); + it != itemCollection.end(); ++it ) + { + selectItem( *it, false ); // YTable::selectItem(item,false) + } + } + DrawPad(); } @@ -489,6 +502,7 @@ { NCursesEvent ret; int citem = getCurrentItem(); + bool sendEvent = false; if ( ! handleInput( key ) ) { @@ -533,8 +547,9 @@ } } - case KEY_SPACE: case KEY_RETURN: + sendEvent = true; + case KEY_SPACE: if ( !multiselect ) { if ( notify() && citem != -1 ) @@ -543,7 +558,8 @@ else { toggleCurrentItem(); - if ( notify() && immediateMode() ) + // send ValueChanged on Return (like done for NCTree multiSelection) + if ( notify() && sendEvent ) { return NCursesEvent::ValueChanged; } -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
