Hello community,
here is the log from the commit of package yast2-ycp-ui-bindings
checked in at Fri May 23 17:27:14 CEST 2008.
--------
--- yast2-ycp-ui-bindings/yast2-ycp-ui-bindings.changes 2008-04-30 15:20:21.000000000 +0200
+++ /mounts/work_src_done/STABLE/yast2-ycp-ui-bindings/yast2-ycp-ui-bindings.changes 2008-05-16 13:25:11.000000000 +0200
@@ -1,0 +2,7 @@
+Fri May 16 12:32:24 CEST 2008 - sh@suse.de
+
+- Handle nonexistent widgets in UI::SetFocus() more gracefully
+ (bnc #389126)
+- V 2.16.47
+
+-------------------------------------------------------------------
Old:
----
yast2-ycp-ui-bindings-2.16.46.tar.bz2
New:
----
yast2-ycp-ui-bindings-2.16.47.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-ycp-ui-bindings.spec ++++++
--- /var/tmp/diff_new_pack.GY3022/_old 2008-05-23 17:27:10.000000000 +0200
+++ /var/tmp/diff_new_pack.GY3022/_new 2008-05-23 17:27:10.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-ycp-ui-bindings (Version 2.16.46)
+# spec file for package yast2-ycp-ui-bindings (Version 2.16.47)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
@@ -12,12 +12,12 @@
Name: yast2-ycp-ui-bindings
-Version: 2.16.46
+Version: 2.16.47
Release: 1
License: GPL v2 or later
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-ycp-ui-bindings-2.16.46.tar.bz2
+Source0: yast2-ycp-ui-bindings-2.16.47.tar.bz2
Prefix: /usr
BuildRequires: gcc-c++
BuildRequires: yast2-devtools
@@ -78,7 +78,7 @@
Matthias Kettner
%prep
-%setup -n yast2-ycp-ui-bindings-2.16.46
+%setup -n yast2-ycp-ui-bindings-2.16.47
%build
%{prefix}/bin/y2tool y2autoconf
@@ -117,6 +117,10 @@
%{_libdir}/pkgconfig/yast2-ycp-ui-bindings.pc
%doc %{prefix}/share/doc/packages/yast2-ycp-ui-bindings
%changelog
+* Fri May 16 2008 sh@suse.de
+- Handle nonexistent widgets in UI::SetFocus() more gracefully
+ (bnc #389126)
+- V 2.16.47
* Wed Apr 30 2008 lslezak@suse.cz
- added support for `repoMgr option in
YCPDialogParser::parsePackageSelector() to make the repository
++++++ yast2-ycp-ui-bindings-2.16.46.tar.bz2 -> yast2-ycp-ui-bindings-2.16.47.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-ycp-ui-bindings-2.16.46/config.h.in new/yast2-ycp-ui-bindings-2.16.47/config.h.in
--- old/yast2-ycp-ui-bindings-2.16.46/config.h.in 2008-04-30 15:18:57.000000000 +0200
+++ new/yast2-ycp-ui-bindings-2.16.47/config.h.in 2008-05-19 20:12:52.000000000 +0200
@@ -45,6 +45,9 @@
/* Define to 1 if you have the header file. */
#undef HAVE_UNISTD_H
+/* Define to 1 if you have the header file. */
+#undef HAVE_YAST2_YUI_YWIDGETFACTORY_H
+
/* Name of package */
#undef PACKAGE
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-ycp-ui-bindings-2.16.46/configure new/yast2-ycp-ui-bindings-2.16.47/configure
--- old/yast2-ycp-ui-bindings-2.16.46/configure 2008-04-30 15:18:55.000000000 +0200
+++ new/yast2-ycp-ui-bindings-2.16.47/configure 2008-05-19 20:12:51.000000000 +0200
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.61 for yast2-ycp-ui-bindings 2.16.46.
+# Generated by GNU Autoconf 2.61 for yast2-ycp-ui-bindings 2.16.47.
#
# Report bugs to http://bugs.opensuse.org/.
#
@@ -728,8 +728,8 @@
# Identity of this package.
PACKAGE_NAME='yast2-ycp-ui-bindings'
PACKAGE_TARNAME='yast2-ycp-ui-bindings'
-PACKAGE_VERSION='2.16.46'
-PACKAGE_STRING='yast2-ycp-ui-bindings 2.16.46'
+PACKAGE_VERSION='2.16.47'
+PACKAGE_STRING='yast2-ycp-ui-bindings 2.16.47'
PACKAGE_BUGREPORT='http://bugs.opensuse.org/'
ac_unique_file="RPMNAME"
@@ -1441,7 +1441,7 @@
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures yast2-ycp-ui-bindings 2.16.46 to adapt to many kinds of systems.
+\`configure' configures yast2-ycp-ui-bindings 2.16.47 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1512,7 +1512,7 @@
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of yast2-ycp-ui-bindings 2.16.46:";;
+ short | recursive ) echo "Configuration of yast2-ycp-ui-bindings 2.16.47:";;
esac
cat <<\_ACEOF
@@ -1619,7 +1619,7 @@
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-yast2-ycp-ui-bindings configure 2.16.46
+yast2-ycp-ui-bindings configure 2.16.47
generated by GNU Autoconf 2.61
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
@@ -1633,7 +1633,7 @@
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by yast2-ycp-ui-bindings $as_me 2.16.46, which was
+It was created by yast2-ycp-ui-bindings $as_me 2.16.47, which was
generated by GNU Autoconf 2.61. Invocation command line was
$ $0 $@
@@ -2454,7 +2454,7 @@
# Define the identity of the package.
PACKAGE='yast2-ycp-ui-bindings'
- VERSION='2.16.46'
+ VERSION='2.16.47'
cat >>confdefs.h <<_ACEOF
@@ -2682,7 +2682,7 @@
-VERSION="2.16.46"
+VERSION="2.16.47"
RPMNAME="yast2-ycp-ui-bindings"
MAINTAINER="Stefan Hundhammer "
@@ -21657,6 +21657,169 @@
+ac_ext=cpp
+ac_cpp='$CXXCPP $CPPFLAGS'
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+
+
+
+for ac_header in YaST2/yui/YWidgetFactory.h
+do
+as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ { echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+ac_res=`eval echo '${'$as_ac_Header'}'`
+ { echo "$as_me:$LINENO: result: $ac_res" >&5
+echo "${ECHO_T}$ac_res" >&6; }
+else
+ # Is the header compilable?
+{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
+echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <$ac_header>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_cxx_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_compiler=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6; }
+
+# Is the header present?
+{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
+echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <$ac_header>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null && {
+ test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
+ test ! -s conftest.err
+ }; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+
+rm -f conftest.err conftest.$ac_ext
+{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6; }
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
+echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
+echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
+echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
+echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
+ ( cat <<\_ASBOX
+## ---------------------------------------- ##
+## Report this to http://bugs.opensuse.org/ ##
+## ---------------------------------------- ##
+_ASBOX
+ ) | sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+{ echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ eval "$as_ac_Header=\$ac_header_preproc"
+fi
+ac_res=`eval echo '${'$as_ac_Header'}'`
+ { echo "$as_me:$LINENO: result: $ac_res" >&5
+echo "${ECHO_T}$ac_res" >&6; }
+
+fi
+if test `eval echo '${'$as_ac_Header'}'` = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+else
+ { { echo "$as_me:$LINENO: error: libyui headers not found - install package yast2-libyui-devel!" >&5
+echo "$as_me: error: libyui headers not found - install package yast2-libyui-devel!" >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
+done
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
ac_config_files="$ac_config_files Makefile src/Makefile examples/screenshots/resized-larger/Makefile examples/screenshots/resized-smaller/Makefile examples/screenshots/Makefile examples/Makefile"
cat >confcache <<\_ACEOF
@@ -22104,7 +22267,7 @@
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by yast2-ycp-ui-bindings $as_me 2.16.46, which was
+This file was extended by yast2-ycp-ui-bindings $as_me 2.16.47, which was
generated by GNU Autoconf 2.61. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -22157,7 +22320,7 @@
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
-yast2-ycp-ui-bindings config.status 2.16.46
+yast2-ycp-ui-bindings config.status 2.16.47
configured by $0, generated by GNU Autoconf 2.61,
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-ycp-ui-bindings-2.16.46/configure.in new/yast2-ycp-ui-bindings-2.16.47/configure.in
--- old/yast2-ycp-ui-bindings-2.16.46/configure.in 2008-04-30 15:18:44.000000000 +0200
+++ new/yast2-ycp-ui-bindings-2.16.47/configure.in 2008-05-19 20:12:44.000000000 +0200
@@ -3,7 +3,7 @@
dnl -- This file is generated by y2autoconf 2.16.8 - DO NOT EDIT! --
dnl (edit configure.in.in instead)
-AC_INIT(yast2-ycp-ui-bindings, 2.16.46, http://bugs.opensuse.org/, yast2-ycp-ui-bindings)
+AC_INIT(yast2-ycp-ui-bindings, 2.16.47, http://bugs.opensuse.org/, yast2-ycp-ui-bindings)
dnl Check for presence of file 'RPMNAME'
AC_CONFIG_SRCDIR([RPMNAME])
@@ -18,7 +18,7 @@
AM_INIT_AUTOMAKE(tar-ustar -Wno-portability)
dnl Important YaST2 variables
-VERSION="2.16.46"
+VERSION="2.16.47"
RPMNAME="yast2-ycp-ui-bindings"
MAINTAINER="Stefan Hundhammer "
@@ -167,6 +167,12 @@
AC_HEADER_STDC
+AC_LANG_PUSH([C++])
+AC_CHECK_HEADERS([YaST2/yui/YWidgetFactory.h],
+ [],
+ [AC_MSG_ERROR([libyui headers not found - install package yast2-libyui-devel!])])
+AC_LANG_POP
+
AC_CONFIG_FILES(Makefile src/Makefile
examples/screenshots/resized-larger/Makefile
examples/screenshots/resized-smaller/Makefile
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-ycp-ui-bindings-2.16.46/configure.in.in new/yast2-ycp-ui-bindings-2.16.47/configure.in.in
--- old/yast2-ycp-ui-bindings-2.16.46/configure.in.in 2008-02-27 08:48:32.000000000 +0100
+++ new/yast2-ycp-ui-bindings-2.16.47/configure.in.in 2008-05-15 20:12:37.000000000 +0200
@@ -1,4 +1,4 @@
-## libyui configure.in.in
+## yast2-libyui configure.in.in
## initialize
@YAST2-INIT-COMMON@
@@ -14,4 +14,11 @@
@YAST2-CHECKS-COMMON@
@YAST2-CHECKS-PROGRAM@
+## check for libyui includes
+AC_LANG_PUSH([C++])
+AC_CHECK_HEADERS([YaST2/yui/YWidgetFactory.h],
+ [],
+ [AC_MSG_ERROR([libyui headers not found - install package yast2-libyui-devel!])])
+AC_LANG_POP
+
@YAST2-OUTPUT@
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-ycp-ui-bindings-2.16.46/examples/Events.ycp new/yast2-ycp-ui-bindings-2.16.47/examples/Events.ycp
--- old/yast2-ycp-ui-bindings-2.16.46/examples/Events.ycp 2008-04-08 12:39:00.000000000 +0200
+++ new/yast2-ycp-ui-bindings-2.16.47/examples/Events.ycp 2008-05-16 12:33:48.000000000 +0200
@@ -253,6 +253,10 @@
UI::ChangeWidget(`send_mafioso, `Value, nil );
UI::DumpWidgetTree();
}
+ else if ( event["ID"]:nil == `info )
+ {
+ UI::SetFocus(`bogus);
+ }
//
// Help text is displayed automatically (because of `opt(`helpButton)
//
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-ycp-ui-bindings-2.16.46/examples/PatternSelector-wizard-with-packages.ycp new/yast2-ycp-ui-bindings-2.16.47/examples/PatternSelector-wizard-with-packages.ycp
--- old/yast2-ycp-ui-bindings-2.16.46/examples/PatternSelector-wizard-with-packages.ycp 1970-01-01 01:00:00.000000000 +0100
+++ new/yast2-ycp-ui-bindings-2.16.47/examples/PatternSelector-wizard-with-packages.ycp 2008-05-15 14:07:52.000000000 +0200
@@ -0,0 +1,89 @@
+// Full-fledged pattern selection
+{
+ textdomain "bogus";
+
+ // Pkg::SourceCreate( "http://dist.suse.de/install/SLP/SUSE-10.1-Beta3/i386/CD1/", "" );
+// Pkg::SourceCreate( "file:/srv/sles-10-i386/CD1/", "" );
+ Pkg::SourceStartManager(true);
+ Pkg::TargetInit("/", false);
+
+ void detailedSelection()
+ {
+ // Open empty dialog for instant feedback
+
+ UI::OpenDialog(`opt(`defaultsize),
+ `ReplacePoint(`id( `rep),
+ `Label( "Reading package database..." )
+ )
+ );
+
+ // This will take a while: Detailed package data are retrieved
+ // while the package manager is initialized
+ UI::ReplaceWidget(`rep, `PackageSelector(`id(`packages ), "/dev/fd0" ) );
+
+ symbol input = (symbol) UI::RunPkgSelection(`id(`packages ) );
+ y2milestone( "Package selector returned %1", input );
+ UI::CloseDialog();
+
+ }
+
+
+
+ if ( ! UI::HasSpecialWidget(`PatternSelector ) )
+ {
+ detailedSelection(); // Fallback: Do detailed selection right away
+ return;
+ }
+
+
+ UI::OpenDialog(`opt(`defaultsize ),
+ `Wizard(`back, "",
+ `cancel, "&Cancel",
+ `ok, "&OK" ) );
+
+ string help_text
+ = _( "<p>"
+ "The available software for this system is shown by category in the left "
+ "column. To view a description for an item, select it in the list."
+ "</p>" )
+ + _( "<p>"
+ "Change the status of items by clicking on their status icon "
+ "or right-click on any icon for a context menu. "
+ "With the context menu you can also change the status of all items."
+ "</p>" )
+ + _( "<p>"
+ "<b>Details</b> opens the detailed software package selection "
+ "where you can view and select individual software packages."
+ "</p>" )
+ + _( "<p>"
+ "The <b>disk usage</b> display in the lower right corner shows the remaining disk space "
+ "after all requested changes will have been performed. "
+ "Please notice that hard disk partitions that are full or nearly full can degrade "
+ "system performance and in some cases even cause serious problems. "
+ "The system needs some available disk space to run properly."
+ "</p>" );
+
+ UI::WizardCommand(`SetDialogIcon( "/usr/share/YaST2/theme/current/icons/22x22/apps/YaST.png" ) );
+ UI::WizardCommand(`SetDialogHeading( "Software Selection" ) );
+ UI::WizardCommand(`SetHelpText( help_text ) );
+
+ Pkg::TargetInit( "/", // installed system
+ false ); // don't create a new RPM database
+
+ UI::ReplaceWidget(`id(`contents), `PatternSelector(`id(`patterns ) ) );
+
+
+ symbol button = nil;
+
+ repeat
+ {
+ button = (symbol) UI::RunPkgSelection(`id(`patterns ) );
+ y2milestone( "Pattern selector returned %1", button );
+
+ if ( button == `details )
+ detailedSelection();
+
+ } until ( button == `cancel || button == `accept );
+
+ UI::CloseDialog();
+}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-ycp-ui-bindings-2.16.46/examples/TimezoneSelector.ycp new/yast2-ycp-ui-bindings-2.16.47/examples/TimezoneSelector.ycp
--- old/yast2-ycp-ui-bindings-2.16.46/examples/TimezoneSelector.ycp 2008-02-27 08:48:32.000000000 +0100
+++ new/yast2-ycp-ui-bindings-2.16.47/examples/TimezoneSelector.ycp 2008-05-15 21:53:22.000000000 +0200
@@ -62,7 +62,7 @@
// Only create a dialog with this kind of widget if it is supported
UI::OpenDialog(
`VBox(
- `TimezoneSelector(`id(`timezone), `opt(`notify), Directory::themedir + "/current/worldmap/GLOBALeb10colshade.jpg", examples),
+ `TimezoneSelector(`id(`timezone), `opt(`notify), Directory::themedir + "/current/worldmap/worldmap.jpg", examples),
`PushButton(`id(`ok), `opt(`default), "&Close"),
`ComboBox(`id(`combozone), `opt(`notify),
"",
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-ycp-ui-bindings-2.16.46/examples/Tree-replace-items.ycp new/yast2-ycp-ui-bindings-2.16.47/examples/Tree-replace-items.ycp
--- old/yast2-ycp-ui-bindings-2.16.46/examples/Tree-replace-items.ycp 2008-02-27 08:48:32.000000000 +0100
+++ new/yast2-ycp-ui-bindings-2.16.47/examples/Tree-replace-items.ycp 2008-05-15 14:13:49.000000000 +0200
@@ -52,7 +52,8 @@
),
`HBox(
`PushButton(`id(`menu), "&Menu" ),
- `PushButton(`id(`toppings), "&Toppings" )
+ `PushButton(`id(`toppings), "&Toppings" ),
+ `PushButton(`id(`empty), "&None" )
),
`PushButton(`id(`ok), "&OK" )
)
@@ -66,6 +67,7 @@
if ( button == `menu ) UI::ChangeWidget(`listing, `Items, menu);
if ( button == `toppings ) UI::ChangeWidget(`listing, `Items, toppings );
+ if ( button == `empty ) UI::ChangeWidget(`listing, `Items, [] );
} while ( button != `ok );
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-ycp-ui-bindings-2.16.46/src/YCPErrorDialog.cc new/yast2-ycp-ui-bindings-2.16.47/src/YCPErrorDialog.cc
--- old/yast2-ycp-ui-bindings-2.16.46/src/YCPErrorDialog.cc 2008-04-17 07:09:20.000000000 +0200
+++ new/yast2-ycp-ui-bindings-2.16.47/src/YCPErrorDialog.cc 2008-05-13 13:29:46.000000000 +0200
@@ -48,7 +48,7 @@
fac->createLabel( vbox, "Check the log file!" );
YLayoutBox * buttonBox = fac->createHBox( vbox );
fac->createHStretch( buttonBox );
- YPushButton * closeButton = fac->createPushButton( buttonBox, "&Close" );
+ fac->createPushButton( buttonBox, "&Close" );
dialog->open();
dialog->waitForEvent();
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-ycp-ui-bindings-2.16.46/src/YCP_UI.cc new/yast2-ycp-ui-bindings-2.16.47/src/YCP_UI.cc
--- old/yast2-ycp-ui-bindings-2.16.46/src/YCP_UI.cc 2008-04-17 07:09:20.000000000 +0200
+++ new/yast2-ycp-ui-bindings-2.16.47/src/YCP_UI.cc 2008-05-16 12:33:48.000000000 +0200
@@ -188,7 +188,7 @@
* @param string font
* @param string screen_map
* @param string unicode_map
- * @param string encoding
+ * @param string language
* @return void
*
* @usage SetConsoleFont( "( K", "lat2u-16.psf", "latin2u.scrnmap", "lat2u.uni", "latin1" )
@@ -198,13 +198,13 @@
const YCPString & font,
const YCPString & screen_map,
const YCPString & unicode_map,
- const YCPString & encoding )
+ const YCPString & language )
{
YUI::app()->setConsoleFont( console_magic->value(),
font->value(),
screen_map->value(),
unicode_map->value(),
- encoding->value() );
+ language->value() );
}
@@ -906,13 +906,25 @@
if ( ! YCPDialogParser::isSymbolOrId( idValue ) )
return YCPNull();
- YCPValue id = YCPDialogParser::parseIdTerm( idValue );
- YWidget *widget = YCPDialogParser::findWidgetWithId( id );
+ YCPBoolean result = YCPNull();
+
+ try
+ {
+ YCPValue id = YCPDialogParser::parseIdTerm( idValue );
+ YWidget * widget = YCPDialogParser::findWidgetWithId( id );
- if ( ! widget )
- return YCPBoolean( false );
+ if ( ! widget )
+ return YCPBoolean( false );
- return YCPBoolean( widget->setKeyboardFocus() );
+ result = YCPBoolean( widget->setKeyboardFocus() );
+ }
+ catch ( YUIException & exception )
+ {
+ YUI_CAUGHT( exception );
+ ycperror( "UI::SetFocus() failed" );
+ }
+
+ return result;
}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-ycp-ui-bindings-2.16.46/VERSION new/yast2-ycp-ui-bindings-2.16.47/VERSION
--- old/yast2-ycp-ui-bindings-2.16.46/VERSION 2008-04-30 15:11:00.000000000 +0200
+++ new/yast2-ycp-ui-bindings-2.16.47/VERSION 2008-05-16 12:33:48.000000000 +0200
@@ -1 +1 @@
-2.16.46
+2.16.47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org