Hello community,

here is the log from the commit of package yast2-ycp-ui-bindings for 
openSUSE:Factory checked in at 2015-07-16 17:14:43
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-ycp-ui-bindings (Old)
 and      /work/SRC/openSUSE:Factory/.yast2-ycp-ui-bindings.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yast2-ycp-ui-bindings"

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/yast2-ycp-ui-bindings/yast2-ycp-ui-bindings.changes  
    2015-07-05 17:52:13.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.yast2-ycp-ui-bindings.new/yast2-ycp-ui-bindings.changes
 2015-07-16 17:14:44.000000000 +0200
@@ -1,0 +2,6 @@
+Wed Jul  8 12:40:33 UTC 2015 - [email protected]
+
+- Added OpenUI, CloseUI (boo#937026).
+- 3.1.9
+
+-------------------------------------------------------------------

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

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

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

Other differences:
------------------
++++++ yast2-ycp-ui-bindings.spec ++++++
--- /var/tmp/diff_new_pack.2hZWdq/_old  2015-07-16 17:14:45.000000000 +0200
+++ /var/tmp/diff_new_pack.2hZWdq/_new  2015-07-16 17:14:45.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-ycp-ui-bindings
-Version:        3.1.8
+Version:        3.1.9
 Release:        0
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
@@ -35,13 +35,9 @@
 
 Requires:       yast2-core
 BuildRequires:  yast2-core-devel
-Conflicts:      yast2-core < 2.16.38
 
-# dependecies for new libyui
-Conflicts:      yast2 < 2.23.0
-Conflicts:      yast2-libyui < 2.42.0
-
-BuildRequires:  libyui-devel >= 3.1.2
+# YApplication::openUI/closeUI
+BuildRequires:  libyui-devel >= 3.2.0
 
 # libyui ImplPtr
 BuildRequires:  boost-devel

++++++ yast2-ycp-ui-bindings-3.1.8.tar.bz2 -> 
yast2-ycp-ui-bindings-3.1.9.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-ycp-ui-bindings-3.1.8/package/yast2-ycp-ui-bindings.changes 
new/yast2-ycp-ui-bindings-3.1.9/package/yast2-ycp-ui-bindings.changes
--- old/yast2-ycp-ui-bindings-3.1.8/package/yast2-ycp-ui-bindings.changes       
2015-07-01 14:46:36.000000000 +0200
+++ new/yast2-ycp-ui-bindings-3.1.9/package/yast2-ycp-ui-bindings.changes       
2015-07-08 17:36:37.000000000 +0200
@@ -1,4 +1,10 @@
 -------------------------------------------------------------------
+Wed Jul  8 12:40:33 UTC 2015 - [email protected]
+
+- Added OpenUI, CloseUI (boo#937026).
+- 3.1.9
+
+-------------------------------------------------------------------
 Wed Jul  1 11:28:01 UTC 2015 - [email protected]
 
 - added built-in SetApplicationIcon for setting application icon
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-ycp-ui-bindings-3.1.8/package/yast2-ycp-ui-bindings.spec 
new/yast2-ycp-ui-bindings-3.1.9/package/yast2-ycp-ui-bindings.spec
--- old/yast2-ycp-ui-bindings-3.1.8/package/yast2-ycp-ui-bindings.spec  
2015-07-01 14:46:36.000000000 +0200
+++ new/yast2-ycp-ui-bindings-3.1.9/package/yast2-ycp-ui-bindings.spec  
2015-07-08 17:36:37.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-ycp-ui-bindings
-Version:        3.1.8
+Version:        3.1.9
 Release:        0
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
@@ -37,13 +37,9 @@
 
 Requires:      yast2-core
 BuildRequires: yast2-core-devel
-Conflicts:     yast2-core < 2.16.38
 
-# dependecies for new libyui
-Conflicts:     yast2 < 2.23.0
-Conflicts:     yast2-libyui < 2.42.0
-
-BuildRequires: libyui-devel >= 3.1.2
+# YApplication::openUI/closeUI
+BuildRequires: libyui-devel >= 3.2.0
 
 # libyui ImplPtr
 BuildRequires: boost-devel
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-ycp-ui-bindings-3.1.8/src/YCP_UI.cc 
new/yast2-ycp-ui-bindings-3.1.9/src/YCP_UI.cc
--- old/yast2-ycp-ui-bindings-3.1.8/src/YCP_UI.cc       2015-07-01 
14:46:36.000000000 +0200
+++ new/yast2-ycp-ui-bindings-3.1.9/src/YCP_UI.cc       2015-07-08 
17:36:37.000000000 +0200
@@ -619,6 +619,35 @@
 }
 
 
+/**
+ * @builtin OpenUI()
+ * @short Opens NCurses and disables stdout
+ * @description
+ * To mix TUI (NCurses) with stdio, enclose the UI parts
+ * within an OpenUI/CloseUI pair.
+ *
+ * @return void
+ */
+
+void YCP_UI::OpenUI()
+{
+    YUI::app()->openUI();
+}
+
+
+/**
+ * @builtin CloseUI()
+ * @short Closes NCurses and enables stdout
+ *
+ * @return void
+ */
+
+void YCP_UI::CloseUI()
+{
+    YUI::app()->closeUI();
+}
+
+
 
 /**
  * @builtin ChangeWidget
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-ycp-ui-bindings-3.1.8/src/YCP_UI.h 
new/yast2-ycp-ui-bindings-3.1.9/src/YCP_UI.h
--- old/yast2-ycp-ui-bindings-3.1.8/src/YCP_UI.h        2015-07-01 
14:46:36.000000000 +0200
+++ new/yast2-ycp-ui-bindings-3.1.9/src/YCP_UI.h        2015-07-08 
17:36:37.000000000 +0200
@@ -58,6 +58,7 @@
     static YCPValue    ChangeWidget                    ( const YCPValue & 
widgetId, const YCPValue & property, const YCPValue & new_value );
     static void        CheckShortcuts                  ();
     static YCPValue    CloseDialog                     ();
+    static void        CloseUI                         ();
     static void        DumpWidgetTree                  ();
     static void        FakeUserInput                   ( const YCPValue & 
nextInput );
     static YCPMap      GetDisplayInfo                  ();
@@ -69,6 +70,7 @@
     static void        NormalCursor                    ();
     static YCPBoolean  OpenContextMenu                 ( const YCPTerm & term 
);
     static YCPBoolean  OpenDialog                      ( const YCPTerm & opts, 
const YCPTerm & dialogTerm );
+    static void        OpenUI                          ();
     static void        PlayMacro                       ( const YCPString & 
filename );
     static void        PostponeShortcutCheck           ();
     static YCPValue    QueryWidget                     ( const YCPValue & 
widgetId, const YCPValue& property );
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-ycp-ui-bindings-3.1.8/src/YUINamespace.cc 
new/yast2-ycp-ui-bindings-3.1.9/src/YUINamespace.cc
--- old/yast2-ycp-ui-bindings-3.1.8/src/YUINamespace.cc 2015-07-01 
14:46:36.000000000 +0200
+++ new/yast2-ycp-ui-bindings-3.1.9/src/YUINamespace.cc 2015-07-08 
17:36:37.000000000 +0200
@@ -218,6 +218,25 @@
 
 
 YCPValue
+YUINamespace::OpenUI()
+{
+    if ( YUIComponent::ui() )
+        YCP_UI::OpenUI();
+
+    return YCPVoid();
+}
+
+YCPValue
+YUINamespace::CloseUI()
+{
+    if ( YUIComponent::ui() )
+        YCP_UI::CloseUI();
+
+    return YCPVoid();
+}
+
+
+YCPValue
 YUINamespace::ChangeWidget( const YCPSymbol & widget_id, const YCPSymbol & 
property, const YCPValue & new_value )
 {
     if ( YUIComponent::ui() )
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-ycp-ui-bindings-3.1.8/src/YUINamespace.h 
new/yast2-ycp-ui-bindings-3.1.9/src/YUINamespace.h
--- old/yast2-ycp-ui-bindings-3.1.8/src/YUINamespace.h  2015-07-01 
14:46:36.000000000 +0200
+++ new/yast2-ycp-ui-bindings-3.1.9/src/YUINamespace.h  2015-07-08 
17:36:37.000000000 +0200
@@ -189,6 +189,12 @@
     /* TYPEINFO: boolean() */
     YCPValue CloseDialog();
 
+    /* TYPEINFO: void() */
+    YCPValue OpenUI();
+
+    /* TYPEINFO: void() */
+    YCPValue CloseUI();
+
     /* TYPEINFO: boolean (symbol, symbol, any) */
     YCPValue ChangeWidget( const YCPSymbol & widget_id, const YCPSymbol & 
property, const YCPValue & /*nil*/ new_value );
 


Reply via email to