Hello community,

here is the log from the commit of package libyui for openSUSE:Factory checked 
in at 2019-10-28 16:44:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libyui (Old)
 and      /work/SRC/openSUSE:Factory/.libyui.new.2990 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libyui"

Mon Oct 28 16:44:44 2019 rev:43 rq:742133 version:3.8.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/libyui/libyui.changes    2019-09-30 
15:50:28.710641011 +0200
+++ /work/SRC/openSUSE:Factory/.libyui.new.2990/libyui.changes  2019-10-28 
16:44:57.552593479 +0100
@@ -1,0 +2,7 @@
+Wed Oct 23 10:04:29 UTC 2019 - Stefan Hundhammer <[email protected]>
+
+- Don't enforce an initial selection for SingleItemSelector
+  (bsc#1084674)
+- 3.8.2
+
+-------------------------------------------------------------------

Old:
----
  libyui-3.8.1.tar.bz2

New:
----
  libyui-3.8.2.tar.bz2

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

Other differences:
------------------
++++++ libyui-doc.spec ++++++
--- /var/tmp/diff_new_pack.09rKVB/_old  2019-10-28 16:44:58.368594517 +0100
+++ /var/tmp/diff_new_pack.09rKVB/_new  2019-10-28 16:44:58.372594522 +0100
@@ -20,7 +20,7 @@
 %define so_version 10
 
 Name:           %{parent}-doc
-Version:        3.8.1
+Version:        3.8.2
 Release:        0
 Source:         %{parent}-%{version}.tar.bz2
 

++++++ libyui.spec ++++++
--- /var/tmp/diff_new_pack.09rKVB/_old  2019-10-28 16:44:58.388594542 +0100
+++ /var/tmp/diff_new_pack.09rKVB/_new  2019-10-28 16:44:58.388594542 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           libyui
-Version:        3.8.1
+Version:        3.8.2
 Release:        0
 Source:         %{name}-%{version}.tar.bz2
 

++++++ libyui-3.8.1.tar.bz2 -> libyui-3.8.2.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-3.8.1/VERSION.cmake 
new/libyui-3.8.2/VERSION.cmake
--- old/libyui-3.8.1/VERSION.cmake      2019-09-23 16:10:48.000000000 +0200
+++ new/libyui-3.8.2/VERSION.cmake      2019-10-23 14:13:27.000000000 +0200
@@ -1,6 +1,6 @@
 SET( VERSION_MAJOR "3")
 SET( VERSION_MINOR "8" )
-SET( VERSION_PATCH "1" )
+SET( VERSION_PATCH "2" )
 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.1/package/libyui-doc.spec 
new/libyui-3.8.2/package/libyui-doc.spec
--- old/libyui-3.8.1/package/libyui-doc.spec    2019-09-23 16:10:48.000000000 
+0200
+++ new/libyui-3.8.2/package/libyui-doc.spec    2019-10-23 14:13:27.000000000 
+0200
@@ -20,7 +20,7 @@
 %define so_version 10
 
 Name:           %{parent}-doc
-Version:        3.8.1
+Version:        3.8.2
 Release:        0
 Source:         %{parent}-%{version}.tar.bz2
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-3.8.1/package/libyui.changes 
new/libyui-3.8.2/package/libyui.changes
--- old/libyui-3.8.1/package/libyui.changes     2019-09-23 16:10:48.000000000 
+0200
+++ new/libyui-3.8.2/package/libyui.changes     2019-10-23 14:13:27.000000000 
+0200
@@ -1,4 +1,11 @@
 -------------------------------------------------------------------
+Wed Oct 23 10:04:29 UTC 2019 - Stefan Hundhammer <[email protected]>
+
+- Don't enforce an initial selection for SingleItemSelector
+  (bsc#1084674)
+- 3.8.2
+
+-------------------------------------------------------------------
 Mon Sep 23 12:44:47 UTC 2019 - Stefan Hundhammer <[email protected]>
 
 - Added CurrentItem property to new ItemSelector widget for consistency
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-3.8.1/package/libyui.spec 
new/libyui-3.8.2/package/libyui.spec
--- old/libyui-3.8.1/package/libyui.spec        2019-09-23 16:10:48.000000000 
+0200
+++ new/libyui-3.8.2/package/libyui.spec        2019-10-23 14:13:27.000000000 
+0200
@@ -16,7 +16,7 @@
 #
 
 Name:           libyui
-Version:        3.8.1
+Version:        3.8.2
 Release:        0
 Source:         %{name}-%{version}.tar.bz2
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-3.8.1/src/YItemSelector.cc 
new/libyui-3.8.2/src/YItemSelector.cc
--- old/libyui-3.8.1/src/YItemSelector.cc       2019-09-23 16:10:48.000000000 
+0200
+++ new/libyui-3.8.2/src/YItemSelector.cc       2019-10-23 14:13:27.000000000 
+0200
@@ -50,6 +50,7 @@
     , priv( new YItemSelectorPrivate )
 {
     YUI_CHECK_NEW( priv );
+    setEnforceInitialSelection( false );
 
     setDefaultStretchable( YD_HORIZ, true );
     setDefaultStretchable( YD_VERT,  true );
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-3.8.1/src/YSelectionWidget.cc 
new/libyui-3.8.2/src/YSelectionWidget.cc
--- old/libyui-3.8.1/src/YSelectionWidget.cc    2019-09-23 16:10:48.000000000 
+0200
+++ new/libyui-3.8.2/src/YSelectionWidget.cc    2019-10-23 14:13:27.000000000 
+0200
@@ -41,11 +41,13 @@
                             bool           recursiveSelection )
        : label( label )
        , enforceSingleSelection( enforceSingleSelection )
+        , enforceInitialSelection( true )
        , recursiveSelection ( recursiveSelection )
        {}
 
     string             label;
     bool               enforceSingleSelection;
+    bool                enforceInitialSelection;
     bool               recursiveSelection;
     string             iconBasePath;
     YItemCollection    itemCollection;
@@ -111,6 +113,20 @@
     return priv->enforceSingleSelection;
 }
 
+
+void YSelectionWidget::setEnforceInitialSelection( bool newVal )
+{
+    if ( priv->enforceSingleSelection )
+        priv->enforceInitialSelection = newVal;
+}
+
+
+bool YSelectionWidget::enforceInitialSelection() const
+{
+    return priv->enforceInitialSelection && priv->enforceSingleSelection;
+}
+
+
 bool YSelectionWidget::recursiveSelection() const
 {
     return priv->recursiveSelection;
@@ -215,13 +231,16 @@
        }
 
 
-       // Make sure there is one item selected initially.
-       //
-       // If any other subsequently added items are to be selected, they will
-       // override this initial selection.
-
-       if ( priv->itemCollection.size() == 1 )
-           item->setSelected( true );
+        if ( priv->enforceInitialSelection )
+        {
+            // Make sure there is one item selected initially.
+            //
+            // If any other subsequently added items are to be selected, they 
will
+            // override this initial selection.
+
+            if ( priv->itemCollection.size() == 1 )
+                item->setSelected( true );
+        }
     }
 }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-3.8.1/src/YSelectionWidget.h 
new/libyui-3.8.2/src/YSelectionWidget.h
--- old/libyui-3.8.1/src/YSelectionWidget.h     2019-09-23 16:10:48.000000000 
+0200
+++ new/libyui-3.8.2/src/YSelectionWidget.h     2019-10-23 14:13:27.000000000 
+0200
@@ -46,10 +46,10 @@
     /**
      * Constructor.
      *
-     * 'singleSelectionMode' indicates if this base class should enforce single
-     * selection when items are added or when items are selected from the
-     * application. Note that single selection can also mean that no item is
-     * selected.
+     * 'enforceSingleSelection' indicates if this base class should enforce
+     * single selection when items are added or when items are selected from
+     * the application. Note that single selection can also mean that no item
+     * is selected.
      **/
     YSelectionWidget( YWidget *                        parent,
                      const std::string &       label,
@@ -291,6 +291,17 @@
     void setEnforceSingleSelection( bool on );
 
     /**
+     * In single selection mode, enforce selecting an initial item
+     * ('true' by default). This is ignored in multi selection mode.
+     **/
+    void setEnforceInitialSelection( bool on );
+
+    /**
+     * Return 'true' if this class enforces an initial selection.
+     **/
+    bool enforceInitialSelection() const;
+
+    /**
      * Return 'true' if this base class should select children recursively.
      **/
     bool recursiveSelection() const;


Reply via email to