Hello community,

here is the log from the commit of package libyui for openSUSE:Factory checked 
in at 2019-09-30 15:50:26
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libyui (Old)
 and      /work/SRC/openSUSE:Factory/.libyui.new.2352 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libyui"

Mon Sep 30 15:50:26 2019 rev:42 rq:732749 version:3.8.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/libyui/libyui.changes    2019-09-23 
13:16:26.937115384 +0200
+++ /work/SRC/openSUSE:Factory/.libyui.new.2352/libyui.changes  2019-09-30 
15:50:28.710641011 +0200
@@ -1,0 +2,7 @@
+Mon Sep 23 12:44:47 UTC 2019 - Stefan Hundhammer <[email protected]>
+
+- Added CurrentItem property to new ItemSelector widget for consistency
+  (bsc#1084674)
+- 3.8.1 
+
+-------------------------------------------------------------------

Old:
----
  libyui-3.8.0.tar.bz2

New:
----
  libyui-3.8.1.tar.bz2

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libyui-doc.spec ++++++
--- /var/tmp/diff_new_pack.i3nSYc/_old  2019-09-30 15:50:29.334639350 +0200
+++ /var/tmp/diff_new_pack.i3nSYc/_new  2019-09-30 15:50:29.334639350 +0200
@@ -20,7 +20,7 @@
 %define so_version 10
 
 Name:           %{parent}-doc
-Version:        3.8.0
+Version:        3.8.1
 Release:        0
 Source:         %{parent}-%{version}.tar.bz2
 

++++++ libyui.spec ++++++
--- /var/tmp/diff_new_pack.i3nSYc/_old  2019-09-30 15:50:29.354639296 +0200
+++ /var/tmp/diff_new_pack.i3nSYc/_new  2019-09-30 15:50:29.354639296 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           libyui
-Version:        3.8.0
+Version:        3.8.1
 Release:        0
 Source:         %{name}-%{version}.tar.bz2
 

++++++ libyui-3.8.0.tar.bz2 -> libyui-3.8.1.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-3.8.0/VERSION.cmake 
new/libyui-3.8.1/VERSION.cmake
--- old/libyui-3.8.0/VERSION.cmake      2019-09-19 11:58:22.000000000 +0200
+++ new/libyui-3.8.1/VERSION.cmake      2019-09-23 16:10:48.000000000 +0200
@@ -1,6 +1,6 @@
 SET( VERSION_MAJOR "3")
 SET( VERSION_MINOR "8" )
-SET( VERSION_PATCH "0" )
+SET( VERSION_PATCH "1" )
 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-3.8.0/package/libyui-doc.spec 
new/libyui-3.8.1/package/libyui-doc.spec
--- old/libyui-3.8.0/package/libyui-doc.spec    2019-09-19 11:58:22.000000000 
+0200
+++ new/libyui-3.8.1/package/libyui-doc.spec    2019-09-23 16:10:48.000000000 
+0200
@@ -20,7 +20,7 @@
 %define so_version 10
 
 Name:           %{parent}-doc
-Version:        3.8.0
+Version:        3.8.1
 Release:        0
 Source:         %{parent}-%{version}.tar.bz2
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-3.8.0/package/libyui.changes 
new/libyui-3.8.1/package/libyui.changes
--- old/libyui-3.8.0/package/libyui.changes     2019-09-19 11:58:22.000000000 
+0200
+++ new/libyui-3.8.1/package/libyui.changes     2019-09-23 16:10:48.000000000 
+0200
@@ -1,4 +1,11 @@
 -------------------------------------------------------------------
+Mon Sep 23 12:44:47 UTC 2019 - Stefan Hundhammer <[email protected]>
+
+- Added CurrentItem property to new ItemSelector widget for consistency
+  (bsc#1084674)
+- 3.8.1 
+
+-------------------------------------------------------------------
 Thu Sep 19 09:34:27 UTC 2019 - Stefan Hundhammer <[email protected]>
 
 - Added ItemSelector widget (bsc#1084674)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-3.8.0/package/libyui.spec 
new/libyui-3.8.1/package/libyui.spec
--- old/libyui-3.8.0/package/libyui.spec        2019-09-19 11:58:22.000000000 
+0200
+++ new/libyui-3.8.1/package/libyui.spec        2019-09-23 16:10:48.000000000 
+0200
@@ -16,7 +16,7 @@
 #
 
 Name:           libyui
-Version:        3.8.0
+Version:        3.8.1
 Release:        0
 Source:         %{name}-%{version}.tar.bz2
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-3.8.0/src/YDialogHelpers.cc 
new/libyui-3.8.1/src/YDialogHelpers.cc
--- old/libyui-3.8.0/src/YDialogHelpers.cc      2019-09-19 11:58:22.000000000 
+0200
+++ new/libyui-3.8.1/src/YDialogHelpers.cc      2019-09-23 16:10:48.000000000 
+0200
@@ -167,7 +167,7 @@
 
        for ( map<string,string>::const_iterator it = relnotes.begin(); it != 
relnotes.end(); ++it )
         {
-           keys.push_back(it->first);
+           keys.push_back( it->first );
        }
 
         YDialog     * dialog    = YUI::widgetFactory()->createPopupDialog();
@@ -175,23 +175,30 @@
         YLayoutBox  * vbox      = YUI::widgetFactory()->createVBox( minSize );
         YDumbTab    * rnTab     = 0;
         YRichText   * richtext  = 0;
+        bool usePlainTextMode   = YUI::app()->isTextMode();
 
-       // both QT and NCurses do support DumbTab
+       // both Qt and NCurses do support DumbTab
         if ( relnotes.size() > 1 && YUI::optionalWidgetFactory()->hasDumbTab() 
)
        {
            rnTab = YUI::optionalWidgetFactory()->createDumbTab( vbox );
            int index = 0;
-           for(map<string,string>::const_iterator it = relnotes.begin(); it != 
relnotes.end(); it++)
+
+           for ( map<string,string>::const_iterator it = relnotes.begin(); it 
!= relnotes.end(); it++ )
            {
-               YItem * item = new YItem((*it).first );
+               YItem * item = new YItem( (*it).first );
                item->setIndex( index++ );
                rnTab->addItem( item );
            }
-           richtext = YUI::widgetFactory()->createRichText( rnTab, 
(*(relnotes.begin())).second, YUI::app()->isTextMode() );
+
+           richtext = YUI::widgetFactory()->createRichText( rnTab,
+                                                             
(*(relnotes.begin())).second,
+                                                             usePlainTextMode 
);
        }
        else
        {
-           richtext = YUI::widgetFactory()->createRichText( vbox, 
(*(relnotes.begin())).second, YUI::app()->isTextMode() );
+           richtext = YUI::widgetFactory()->createRichText( vbox,
+                                                             
(*(relnotes.begin())).second,
+                                                             usePlainTextMode 
);
        }
 
         YButtonBox  * buttonBox = YUI::widgetFactory()->createButtonBox( vbox 
);
@@ -199,25 +206,25 @@
         okButton->setRole( YOKButton );
         okButton->setDefaultButton();
 
-       while(true) {
-           YEvent* event = dialog->waitForEvent();
-           if ( event && event->eventType() == YEvent::MenuEvent && 
event->item())
-           {
-               YItem * item = dynamic_cast<YItem *> ( event->item());
-               richtext->setValue( relnotes[keys[item->index()]] );
-           }
-           else if ( event && event->widget() )
-           {
-               YPushButton * button = dynamic_cast<YPushButton *> ( 
event->widget() );
-               if ( button )
-               {
-                   if ( button->role() == YOKButton)
-                   {
-                       break;
-                   }
-               }
+       while ( true )
+        {
+           YEvent * event = dialog->waitForEvent();
+
+            if ( event )
+            {
+                if ( event->eventType() == YEvent::MenuEvent && event->item())
+                {
+                    YItem * item = dynamic_cast<YItem *>( event->item() );
+                    richtext->setValue( relnotes[ keys[ item->index() ] ] );
+                }
+                else if ( event->eventType() == YEvent::CancelEvent ||  // 
window manager "close window" button
+                          event->widget() == okButton )
+                {
+                    break;
+                }
             }
        }
+
         dialog->destroy();
     }
     catch ( const YUIException & exception )
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-3.8.0/src/YItemSelector.cc 
new/libyui-3.8.1/src/YItemSelector.cc
--- old/libyui-3.8.0/src/YItemSelector.cc       2019-09-19 11:58:22.000000000 
+0200
+++ new/libyui-3.8.1/src/YItemSelector.cc       2019-09-23 16:10:48.000000000 
+0200
@@ -94,12 +94,14 @@
     {
        /*
         * @property itemID     Value           The (first) currently selected 
item
+        * @property itemID     CurrentItem     The (first) currently selected 
item
         * @property itemList   SelectedItems   All currently selected items
         * @property itemList   Items           All items
         * @property integer    VisibleItems    Number of items that are 
visible without scrolling
         * @property string     IconPath        Base path for icons
         */
        propSet.add( YProperty( YUIProperty_Value,              YOtherProperty  
 ) );
+       propSet.add( YProperty( YUIProperty_CurrentItem,        YOtherProperty  
 ) );
        propSet.add( YProperty( YUIProperty_SelectedItems,      YOtherProperty  
 ) );
        propSet.add( YProperty( YUIProperty_Items,              YOtherProperty  
 ) );
        propSet.add( YProperty( YUIProperty_VisibleItems,       
YIntegerProperty ) );
@@ -117,6 +119,7 @@
     propertySet().check( propertyName, val.type() ); // throws exceptions if 
not found or type mismatch
 
     if     ( propertyName == YUIProperty_Value         )       return false; 
// Needs special handling
+    else if ( propertyName == YUIProperty_CurrentItem  )       return false; 
// Needs special handling
     else if ( propertyName == YUIProperty_SelectedItems        )       return 
false; // Needs special handling
     else if ( propertyName == YUIProperty_Items        )       return false; 
// Needs special handling
     else if ( propertyName == YUIProperty_VisibleItems         )       
setVisibleItems( val.integerVal() );
@@ -136,6 +139,7 @@
     propertySet().check( propertyName ); // throws exceptions if not found
 
     if     ( propertyName == YUIProperty_Value         )       return 
YPropertyValue( YOtherProperty );
+    else if ( propertyName == YUIProperty_CurrentItem  )       return 
YPropertyValue( YOtherProperty );
     else if ( propertyName == YUIProperty_SelectedItems        )       return 
YPropertyValue( YOtherProperty );
     else if ( propertyName == YUIProperty_Items        )       return 
YPropertyValue( YOtherProperty );
     else if ( propertyName == YUIProperty_VisibleItems         )       return 
YPropertyValue( visibleItems() );


Reply via email to