Hello community,

here is the log from the commit of package yast2-ycp-ui-bindings for 
openSUSE:Factory checked in at 2020-01-24 14:11:02
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-ycp-ui-bindings (Old)
 and      /work/SRC/openSUSE:Factory/.yast2-ycp-ui-bindings.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yast2-ycp-ui-bindings"

Fri Jan 24 14:11:02 2020 rev:78 rq:766669 version:4.2.9

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/yast2-ycp-ui-bindings/yast2-ycp-ui-bindings.changes  
    2020-01-04 19:20:39.449119059 +0100
+++ 
/work/SRC/openSUSE:Factory/.yast2-ycp-ui-bindings.new.26092/yast2-ycp-ui-bindings.changes
   2020-01-24 14:11:05.854408131 +0100
@@ -1,0 +2,13 @@
+Thu Jan 23 16:47:02 UTC 2020 - Imobach Gonzalez Sosa <[email protected]>
+
+- Add support for the option to enable the online search
+  feature in the package selector (jsc#SLE-9109).
+- 4.2.9
+
+-------------------------------------------------------------------
+Thu Jan 23 12:03:31 UTC 2020 - Stefan Hundhammer <[email protected]>
+
+- Allow integer as initial item status (part of bsc#1084674)
+- 4.2.8
+
+-------------------------------------------------------------------

Old:
----
  yast2-ycp-ui-bindings-4.2.7.tar.bz2

New:
----
  yast2-ycp-ui-bindings-4.2.9.tar.bz2

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

Other differences:
------------------
++++++ yast2-ycp-ui-bindings.spec ++++++
--- /var/tmp/diff_new_pack.Kfml8B/_old  2020-01-24 14:11:06.818408457 +0100
+++ /var/tmp/diff_new_pack.Kfml8B/_new  2020-01-24 14:11:06.818408457 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package yast2-ycp-ui-bindings
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -21,7 +21,7 @@
 %define yui_so         11
 
 Name:           yast2-ycp-ui-bindings
-Version:        4.2.7
+Version:        4.2.9
 Release:        0
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build

++++++ yast2-ycp-ui-bindings-4.2.7.tar.bz2 -> 
yast2-ycp-ui-bindings-4.2.9.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-ycp-ui-bindings-4.2.7/package/yast2-ycp-ui-bindings.changes 
new/yast2-ycp-ui-bindings-4.2.9/package/yast2-ycp-ui-bindings.changes
--- old/yast2-ycp-ui-bindings-4.2.7/package/yast2-ycp-ui-bindings.changes       
2019-12-18 17:41:45.000000000 +0100
+++ new/yast2-ycp-ui-bindings-4.2.9/package/yast2-ycp-ui-bindings.changes       
2020-01-23 17:53:14.000000000 +0100
@@ -1,4 +1,17 @@
 -------------------------------------------------------------------
+Thu Jan 23 16:47:02 UTC 2020 - Imobach Gonzalez Sosa <[email protected]>
+
+- Add support for the option to enable the online search
+  feature in the package selector (jsc#SLE-9109).
+- 4.2.9
+
+-------------------------------------------------------------------
+Thu Jan 23 12:03:31 UTC 2020 - Stefan Hundhammer <[email protected]>
+
+- Allow integer as initial item status (part of bsc#1084674)
+- 4.2.8
+
+-------------------------------------------------------------------
 Wed Dec 18 14:56:39 CET 2019 - [email protected]
 
 - handle sort key in parser for table item (bsc#1140018)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-ycp-ui-bindings-4.2.7/package/yast2-ycp-ui-bindings.spec 
new/yast2-ycp-ui-bindings-4.2.9/package/yast2-ycp-ui-bindings.spec
--- old/yast2-ycp-ui-bindings-4.2.7/package/yast2-ycp-ui-bindings.spec  
2019-12-18 17:41:45.000000000 +0100
+++ new/yast2-ycp-ui-bindings-4.2.9/package/yast2-ycp-ui-bindings.spec  
2020-01-23 17:53:14.000000000 +0100
@@ -20,7 +20,7 @@
 %define yui_so         11
 
 Name:           yast2-ycp-ui-bindings
-Version:        4.2.7
+Version:        4.2.9
 Release:        0
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-ycp-ui-bindings-4.2.7/src/YCPDialogParser.cc 
new/yast2-ycp-ui-bindings-4.2.9/src/YCPDialogParser.cc
--- old/yast2-ycp-ui-bindings-4.2.7/src/YCPDialogParser.cc      2019-12-18 
17:41:45.000000000 +0100
+++ new/yast2-ycp-ui-bindings-4.2.9/src/YCPDialogParser.cc      2020-01-23 
17:53:14.000000000 +0100
@@ -2422,8 +2422,8 @@
  * columns) from that list (In that case, use the :SelectedItems property, not
  * :Value).
  *
- * Each cell (each column within each row) has a label text and an optional
- * icon.
+ * Each cell (each column within each row) has a label text, an optional icon 
and
+ * an also optional a sort-key (used instead of the label text during sort).
  *
  * (Note: Not all UIs (in particular not text-based UIs) support displaying
  * icons, so an icon should never be an exclusive means to display any kind of
@@ -2447,9 +2447,10 @@
  * case any missing cells are assumed to be empty. If an item has more cells
  * than the table has columns, any extra cells are ignored.
  *
- * Each cell has a text label (which might also be an empty string) and
- * optionally an icon. If a cell has an icon, it has to be specified with
- * cell(Icon("myiconname.png", "Label text")).
+ * Each cell has a text label (which might also be an empty string),
+ * optionally an icon and also optionally a sort-key. If a cell has an
+ * icon or sort-key, it has to be specified with
+ * cell(Icon("myiconname.png"), sortKey("key 42"), "Label text").
  *
  * A simple table is specified like this:
  *
@@ -2866,6 +2867,7 @@
            else if ( sym == YUIOpt_testMode            )       modeFlags |= 
YPkg_TestMode;
            else if ( sym == YUIOpt_repoMgr             )       modeFlags |= 
YPkg_RepoMgr;
            else if ( sym == YUIOpt_confirmUnsupported  )       modeFlags |= 
YPkg_ConfirmUnsupported;
+           else if ( sym == YUIOpt_onlineSearch        )       modeFlags |= 
YPkg_OnlineSearch;
            else logUnknownOption( term, optList->value(o) );
        }
        else logUnknownOption( term, optList->value(o) );
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-ycp-ui-bindings-4.2.7/src/YCPItemParser.cc 
new/yast2-ycp-ui-bindings-4.2.9/src/YCPItemParser.cc
--- old/yast2-ycp-ui-bindings-4.2.7/src/YCPItemParser.cc        2019-12-18 
17:41:45.000000000 +0100
+++ new/yast2-ycp-ui-bindings-4.2.9/src/YCPItemParser.cc        2020-01-23 
17:53:14.000000000 +0100
@@ -30,6 +30,7 @@
 
 #include <ycp/YCPTerm.h>
 #include <ycp/YCPBoolean.h>
+#include <ycp/YCPInteger.h>
 
 #include "YCPItemParser.h"
 #include "YCP_UI_Exception.h"
@@ -122,9 +123,10 @@
     YCPString  label           = YCPNull();
     YCPString   description     = YCPNull();
     YCPBoolean  selected        = YCPNull();
+    YCPInteger  status          = YCPNull();
 
     const char * usage =
-       "Expected: `item(`id(`myID), `icon(\"MyIcon.png\"), \"MyItemText\", 
\"Description\", boolean selected )";
+       "Expected: `item(`id(`myID), `icon(\"MyIcon.png\"), \"MyItemText\", 
\"Description\", (bool|int) status )";
 
 
     for ( int i=0; i < itemTerm->size(); i++ )
@@ -169,11 +171,16 @@
                 YUI_THROW( YCPDialogSyntaxErrorException( usage, itemTerm ) );
             }
         }
-       else if ( arg->isBoolean()              // "selected" flag
-                 && selected.isNull() )        // and don't have a "selected" 
flag yet
+       else if ( arg->isBoolean()              // Old syntax: Boolean 
"selected" flag
+                 && status.isNull() )          // and don't have a status yet
        {
-           selected = arg->asBoolean();
+           status = arg->asBoolean()->value() ? 1 : 0;
        }
+       else if ( arg->isInteger()              // New syntax: Integer status
+                  && status.isNull() )          // and don't have a status yet
+        {
+            status = arg->asInteger();
+        }
        else
        {
            YUI_THROW( YCPDialogSyntaxErrorException( usage, itemTerm ) );
@@ -192,11 +199,11 @@
     if ( id.isNull() )                 // no `id() ?
        id = label;                     // use the label instead
 
-    if ( selected.isNull() )           // "selected" not specified?
-       selected = YCPBoolean( false ); // use "not selected" (false) as default
-
-    YCPItem * item = new YCPItem( id, label, description, iconName, 
selected->value() );
+    YCPItem * item = new YCPItem( id, label, description, iconName );
     YUI_CHECK_NEW( item );
 
+    if ( ! status.isNull() )
+       item->setStatus( status->value() );
+
     return item;
 }


Reply via email to