Hello community,
here is the log from the commit of package yast2-ycp-ui-bindings for
openSUSE:Factory checked in at 2014-01-09 17:27:14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
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
2013-11-15 13:43:58.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.yast2-ycp-ui-bindings.new/yast2-ycp-ui-bindings.changes
2014-01-09 17:27:15.000000000 +0100
@@ -1,0 +2,13 @@
+Mon Dec 9 08:28:31 UTC 2013 - [email protected]
+
+- added missing locale directory initialization, fixes missing
+ translations in Gtk package manager (bnc#801311)
+- 3.1.4
+
+-------------------------------------------------------------------
+Fri Dec 6 13:21:33 UTC 2013 - [email protected]
+
+- added handling of release notes button (fate#314695)
+- 3.1.3
+
+-------------------------------------------------------------------
Old:
----
yast2-ycp-ui-bindings-3.1.2.tar.bz2
New:
----
yast2-ycp-ui-bindings-3.1.4.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-ycp-ui-bindings.spec ++++++
--- /var/tmp/diff_new_pack.h6OLWM/_old 2014-01-09 17:27:16.000000000 +0100
+++ /var/tmp/diff_new_pack.h6OLWM/_new 2014-01-09 17:27:16.000000000 +0100
@@ -1,7 +1,7 @@
#
# spec file for package yast2-ycp-ui-bindings
#
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
Name: yast2-ycp-ui-bindings
-Version: 3.1.2
+Version: 3.1.4
Release: 0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -25,7 +25,7 @@
BuildRequires: gcc-c++
BuildRequires: libtool
-BuildRequires: yast2-devtools >= 3.0.6
+BuildRequires: yast2-devtools >= 3.1.10
# autodocs + docbook docs
BuildRequires: docbook-xsl-stylesheets
@@ -41,8 +41,7 @@
Conflicts: yast2 < 2.23.0
Conflicts: yast2-libyui < 2.42.0
-Requires: libyui5 >= 3.0.4
-BuildRequires: libyui-devel >= 3.0.4
+BuildRequires: libyui-devel >= 3.0.11
# libyui ImplPtr
BuildRequires: boost-devel
++++++ yast2-ycp-ui-bindings-3.1.2.tar.bz2 ->
yast2-ycp-ui-bindings-3.1.4.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-ycp-ui-bindings-3.1.2/VERSION
new/yast2-ycp-ui-bindings-3.1.4/VERSION
--- old/yast2-ycp-ui-bindings-3.1.2/VERSION 2013-11-15 09:15:41.000000000
+0100
+++ new/yast2-ycp-ui-bindings-3.1.4/VERSION 1970-01-01 01:00:00.000000000
+0100
@@ -1 +0,0 @@
-3.1.2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-ycp-ui-bindings-3.1.2/examples/ContextMenu.rb
new/yast2-ycp-ui-bindings-3.1.4/examples/ContextMenu.rb
--- old/yast2-ycp-ui-bindings-3.1.2/examples/ContextMenu.rb 2013-11-15
09:15:41.000000000 +0100
+++ new/yast2-ycp-ui-bindings-3.1.4/examples/ContextMenu.rb 2014-01-08
11:26:36.000000000 +0100
@@ -5,11 +5,9 @@
def main
Yast.import "UI"
-
@event_display = "<i>No event yet - click something (or wait for
timeout)</i>"
-
- if !UI.HasSpecialWidget(:Slider)
+ if !UI.HasSpecialWidget(:ContextMenu)
UI.OpenDialog(
VBox(
Label("ContextMenu not supported!"),
@@ -21,10 +19,6 @@
return
end
-
-
-
-
UI.OpenDialog(
VBox(
SelectionBox(
@@ -38,9 +32,7 @@
)
)
- #
# Event loop
- #
@event = {}
begin
@@ -51,13 +43,6 @@
if @event != nil &&
Ops.get_string(@event, "EventReason", "") == "ContextMenuActivated"
- # UI::OpenContextMenu( `menu(
- # [ `item(`id(`folder), "&Folder"),
- # `item(`id(`text), "&Text
File" ),
- # `item(`id(`image), "&Image"
)
- # ]));
-
-
UI.OpenContextMenu(
term(
:menu,
@@ -74,9 +59,7 @@
end
end until Ops.get(@event, "ID") == :close
-
UI.CloseDialog
-
nil
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-ycp-ui-bindings-3.1.2/package/yast2-ycp-ui-bindings.changes
new/yast2-ycp-ui-bindings-3.1.4/package/yast2-ycp-ui-bindings.changes
--- old/yast2-ycp-ui-bindings-3.1.2/package/yast2-ycp-ui-bindings.changes
2013-11-15 09:15:41.000000000 +0100
+++ new/yast2-ycp-ui-bindings-3.1.4/package/yast2-ycp-ui-bindings.changes
2014-01-08 11:26:36.000000000 +0100
@@ -1,4 +1,17 @@
-------------------------------------------------------------------
+Mon Dec 9 08:28:31 UTC 2013 - [email protected]
+
+- added missing locale directory initialization, fixes missing
+ translations in Gtk package manager (bnc#801311)
+- 3.1.4
+
+-------------------------------------------------------------------
+Fri Dec 6 13:21:33 UTC 2013 - [email protected]
+
+- added handling of release notes button (fate#314695)
+- 3.1.3
+
+-------------------------------------------------------------------
Thu Nov 14 13:21:26 CET 2013 - [email protected]
- Removed warning if checking for TextMode. It became a standard
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-ycp-ui-bindings-3.1.2/package/yast2-ycp-ui-bindings.spec
new/yast2-ycp-ui-bindings-3.1.4/package/yast2-ycp-ui-bindings.spec
--- old/yast2-ycp-ui-bindings-3.1.2/package/yast2-ycp-ui-bindings.spec
2013-11-15 09:15:41.000000000 +0100
+++ new/yast2-ycp-ui-bindings-3.1.4/package/yast2-ycp-ui-bindings.spec
2014-01-08 11:26:36.000000000 +0100
@@ -17,7 +17,7 @@
Name: yast2-ycp-ui-bindings
-Version: 3.1.2
+Version: 3.1.4
Release: 0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -28,7 +28,7 @@
BuildRequires: gcc-c++
BuildRequires: libtool
-BuildRequires: yast2-devtools >= 3.0.6
+BuildRequires: yast2-devtools >= 3.1.10
# autodocs + docbook docs
BuildRequires: doxygen
@@ -43,8 +43,7 @@
Conflicts: yast2 < 2.23.0
Conflicts: yast2-libyui < 2.42.0
-Requires: libyui5 >= 3.0.4
-BuildRequires: libyui-devel >= 3.0.4
+BuildRequires: libyui-devel >= 3.0.11
# libyui ImplPtr
BuildRequires: boost-devel
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-ycp-ui-bindings-3.1.2/source/YCPDialogParser.cc
new/yast2-ycp-ui-bindings-3.1.4/source/YCPDialogParser.cc
--- old/yast2-ycp-ui-bindings-3.1.2/source/YCPDialogParser.cc 2013-11-15
09:15:41.000000000 +0100
+++ new/yast2-ycp-ui-bindings-3.1.4/source/YCPDialogParser.cc 2014-01-08
11:26:36.000000000 +0100
@@ -1447,6 +1447,7 @@
else if ( sym == YUIOpt_cancelButton) role = YCancelButton;
else if ( sym == YUIOpt_applyButton) role = YApplyButton;
else if ( sym == YUIOpt_helpButton ) role = YHelpButton;
+ else if ( sym == YUIOpt_relNotesButton ) role = YRelNotesButton;
else if ( sym == YUIOpt_customButton)
opt.customButton.setValue( true );
else logUnknownOption( term, optList->value(o) );
}
@@ -1464,6 +1465,13 @@
if ( role == YHelpButton )
button->setHelpButton();
+ if ( role == YRelNotesButton )
+ {
+ yuiMilestone() << "Setting RN role" << std::endl;
+ button->setRelNotesButton();
+ yuiMilestone() << "RN role set" << std::endl;
+ }
+
if ( isIconButton )
button->setIcon( iconName );
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-ycp-ui-bindings-3.1.2/source/YCP_UI.cc
new/yast2-ycp-ui-bindings-3.1.4/source/YCP_UI.cc
--- old/yast2-ycp-ui-bindings-3.1.2/source/YCP_UI.cc 2013-11-15
09:15:41.000000000 +0100
+++ new/yast2-ycp-ui-bindings-3.1.4/source/YCP_UI.cc 2014-01-08
11:26:36.000000000 +0100
@@ -1634,6 +1634,36 @@
}
+/**
+ * @builtin SetReleaseNotes
+ * @short Sets the Release Notes to be displayed by a special-purpose button.
+ * @description
+ * The argument is a map from product names (strings) to the actual relase
+ * notes (rich text strings)
+ *
+ * @param map relnotes maps product names to their release notes
+ */
+YCPValue YCP_UI::SetReleaseNotes( const YCPMap & relnotes )
+{
+ yuiMilestone() << "Setting release notes" << std::endl;
+
+ std::map<std::string,std::string> rn;
+
+ for ( YCPMap::const_iterator it = relnotes->begin(); it !=
relnotes->end(); ++it )
+ {
+ if ( it->first->isString() && it->second->isString() )
+ {
+ rn[it->first->asString()->value()] =
it->second->asString()->value();
+ }
+ else
+ {
+ ycperror( "Invalid data in release notes map" );
+ }
+ }
+ YUI::application()->setReleaseNotes( rn );
+
+ return YCPVoid();
+}
// EOF
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-ycp-ui-bindings-3.1.2/source/YCP_UI.h
new/yast2-ycp-ui-bindings-3.1.4/source/YCP_UI.h
--- old/yast2-ycp-ui-bindings-3.1.2/source/YCP_UI.h 2013-11-15
09:15:41.000000000 +0100
+++ new/yast2-ycp-ui-bindings-3.1.4/source/YCP_UI.h 2014-01-08
11:26:36.000000000 +0100
@@ -97,6 +97,8 @@
static YCPValue WizardCommand ( const YCPTerm &
command );
static YCPValue PollInput ();
static YCPBoolean TextMode ();
+ static YCPValue SetReleaseNotes ( const YCPMap &
relnotes );
+
/**
* Not really a UI built-in: This implements the WFM or SCR callback
command.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-ycp-ui-bindings-3.1.2/source/YUIComponent.cc
new/yast2-ycp-ui-bindings-3.1.4/source/YUIComponent.cc
--- old/yast2-ycp-ui-bindings-3.1.2/source/YUIComponent.cc 2013-11-15
09:15:41.000000000 +0100
+++ new/yast2-ycp-ui-bindings-3.1.4/source/YUIComponent.cc 2014-01-08
11:26:36.000000000 +0100
@@ -165,13 +165,17 @@
try
{
+ // configure the directories _before_ loading the UI
+ // so the paths can be used in the initialization code
+ YSettings::setProgDir( YAST2DIR );
+ YSettings::setLocaleDir( LOCALEDIR );
+
if ( _requestedUIName.empty() )
YUILoader::loadUI( _withThreads );
else
YUILoader::loadPlugin( _requestedUIName, _withThreads );
_ui = YUI::ui();
- YSettings::setProgDir( YAST2DIR );
YMacro::setRecorder( new YCPMacroRecorder() );
YMacro::setPlayer ( new YCPMacroPlayer() );
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-ycp-ui-bindings-3.1.2/source/YUINamespace.cc
new/yast2-ycp-ui-bindings-3.1.4/source/YUINamespace.cc
--- old/yast2-ycp-ui-bindings-3.1.2/source/YUINamespace.cc 2013-11-15
09:15:41.000000000 +0100
+++ new/yast2-ycp-ui-bindings-3.1.4/source/YUINamespace.cc 2014-01-08
11:26:36.000000000 +0100
@@ -236,6 +236,15 @@
}
+YCPValue
+YUINamespace::SetReleaseNotes( const YCPMap & relnotes )
+{
+ if ( YUIComponent::ui() )
+ return YCP_UI::SetReleaseNotes( relnotes );
+ else
+ return YCPVoid();
+}
+
YCPValue
YUINamespace::ChangeWidget( const YCPTerm & widget_id, const YCPSymbol &
property, const YCPValue & new_value )
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-ycp-ui-bindings-3.1.2/source/YUINamespace.h
new/yast2-ycp-ui-bindings-3.1.4/source/YUINamespace.h
--- old/yast2-ycp-ui-bindings-3.1.2/source/YUINamespace.h 2013-11-15
09:15:41.000000000 +0100
+++ new/yast2-ycp-ui-bindings-3.1.4/source/YUINamespace.h 2014-01-08
11:26:36.000000000 +0100
@@ -313,6 +313,9 @@
/* TYPEINFO: boolean (term) */
YCPBoolean OpenContextMenu( const YCPTerm & term );
+ /* TYPEINFO: void (map<string,string>) */
+ YCPValue SetReleaseNotes( const YCPMap & relnotes );
+
YCPValue
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]