Hello community,
here is the log from the commit of package yast2-installation
checked in at Sat Apr 26 11:25:28 CEST 2008.
--------
--- yast2-installation/yast2-installation.changes 2008-04-24 14:59:00.000000000 +0200
+++ /mounts/work_src_done/NOARCH/yast2-installation/yast2-installation.changes 2008-04-25 18:17:03.000000000 +0200
@@ -1,0 +2,6 @@
+Fri Apr 25 18:15:09 CEST 2008 - locilka@suse.cz
+
+- New desktop selection dialog (bnc #379157).
+- 2.16.40
+
+-------------------------------------------------------------------
Old:
----
yast2-installation-2.16.39.tar.bz2
New:
----
yast2-installation-2.16.40.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-installation.spec ++++++
--- /var/tmp/diff_new_pack.C13333/_old 2008-04-26 11:25:22.000000000 +0200
+++ /var/tmp/diff_new_pack.C13333/_new 2008-04-26 11:25:22.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-installation (Version 2.16.39)
+# spec file for package yast2-installation (Version 2.16.40)
#
# 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-installation
-Version: 2.16.39
+Version: 2.16.40
Release: 1
License: GPL v2 or later
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-installation-2.16.39.tar.bz2
+Source0: yast2-installation-2.16.40.tar.bz2
Prefix: /usr
BuildRequires: docbook-xsl-stylesheets doxygen libxslt perl-XML-Writer sgml-skel update-desktop-files yast2-core-devel yast2-devtools yast2-testsuite
# PackageCallbacks::RegisterEmptyProgressCallbacks()
@@ -106,7 +106,7 @@
Lukas Ocilka
%prep
-%setup -n yast2-installation-2.16.39
+%setup -n yast2-installation-2.16.40
%build
%{prefix}/bin/y2tool y2autoconf
@@ -171,7 +171,11 @@
%doc %{prefix}/share/doc/packages/yast2-installation
%exclude %{prefix}/share/doc/packages/yast2-installation/COPYING
%exclude %{prefix}/share/doc/packages/yast2-installation/README
+
%changelog
+* Fri Apr 25 2008 locilka@suse.cz
+- New desktop selection dialog (bnc #379157).
+- 2.16.40
* Thu Apr 24 2008 locilka@suse.cz
- New better shiny unified progress for image deployment.
- Showing also the just-handled image name (bnc #381188).
++++++ yast2-installation-2.16.39.tar.bz2 -> yast2-installation-2.16.40.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-installation-2.16.39/configure new/yast2-installation-2.16.40/configure
--- old/yast2-installation-2.16.39/configure 2008-04-22 17:18:30.000000000 +0200
+++ new/yast2-installation-2.16.40/configure 2008-04-25 18:20:17.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-installation 2.16.38.
+# Generated by GNU Autoconf 2.61 for yast2-installation 2.16.40.
#
# Report bugs to http://bugs.opensuse.org/.
#
@@ -574,8 +574,8 @@
# Identity of this package.
PACKAGE_NAME='yast2-installation'
PACKAGE_TARNAME='yast2-installation'
-PACKAGE_VERSION='2.16.38'
-PACKAGE_STRING='yast2-installation 2.16.38'
+PACKAGE_VERSION='2.16.40'
+PACKAGE_STRING='yast2-installation 2.16.40'
PACKAGE_BUGREPORT='http://bugs.opensuse.org/'
ac_unique_file="RPMNAME"
@@ -1208,7 +1208,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-installation 2.16.38 to adapt to many kinds of systems.
+\`configure' configures yast2-installation 2.16.40 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1279,7 +1279,7 @@
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of yast2-installation 2.16.38:";;
+ short | recursive ) echo "Configuration of yast2-installation 2.16.40:";;
esac
cat <<\_ACEOF
@@ -1357,7 +1357,7 @@
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-yast2-installation configure 2.16.38
+yast2-installation configure 2.16.40
generated by GNU Autoconf 2.61
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
@@ -1371,7 +1371,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-installation $as_me 2.16.38, which was
+It was created by yast2-installation $as_me 2.16.40, which was
generated by GNU Autoconf 2.61. Invocation command line was
$ $0 $@
@@ -2192,7 +2192,7 @@
# Define the identity of the package.
PACKAGE='yast2-installation'
- VERSION='2.16.38'
+ VERSION='2.16.40'
cat >>confdefs.h <<_ACEOF
@@ -2420,7 +2420,7 @@
-VERSION="2.16.38"
+VERSION="2.16.40"
RPMNAME="yast2-installation"
MAINTAINER="Lukas Ocilka "
@@ -3557,7 +3557,7 @@
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by yast2-installation $as_me 2.16.38, which was
+This file was extended by yast2-installation $as_me 2.16.40, which was
generated by GNU Autoconf 2.61. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -3600,7 +3600,7 @@
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
-yast2-installation config.status 2.16.38
+yast2-installation config.status 2.16.40
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-installation-2.16.39/configure.in new/yast2-installation-2.16.40/configure.in
--- old/yast2-installation-2.16.39/configure.in 2008-04-22 17:18:24.000000000 +0200
+++ new/yast2-installation-2.16.40/configure.in 2008-04-25 18:20:11.000000000 +0200
@@ -3,7 +3,7 @@
dnl -- This file is generated by y2autoconf 2.16.7 - DO NOT EDIT! --
dnl (edit configure.in.in instead)
-AC_INIT(yast2-installation, 2.16.38, http://bugs.opensuse.org/, yast2-installation)
+AC_INIT(yast2-installation, 2.16.40, http://bugs.opensuse.org/, yast2-installation)
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.38"
+VERSION="2.16.40"
RPMNAME="yast2-installation"
MAINTAINER="Lukas Ocilka "
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-installation-2.16.39/src/clients/inst_new_desktop.ycp new/yast2-installation-2.16.40/src/clients/inst_new_desktop.ycp
--- old/yast2-installation-2.16.39/src/clients/inst_new_desktop.ycp 1970-01-01 01:00:00.000000000 +0100
+++ new/yast2-installation-2.16.40/src/clients/inst_new_desktop.ycp 2008-04-25 16:47:54.000000000 +0200
@@ -0,0 +1,289 @@
+/**
+ * File: clients/inst_software_selection.ycp
+ * Package: Installation
+ * Summary: New Desktop Selection (bnc #379157)
+ * Authors: Lukas Ocilka
+ * Stephan Kulow
+ *
+ * $Id$
+ *
+ */
+
+{
+
+textdomain "installation";
+
+import "ProductFeatures";
+import "InstData";
+import "GetInstArgs";
+import "DefaultDesktop";
+import "Wizard";
+import "Packages";
+import "Popup";
+import "Stage";
+import "Directory";
+import "Icon";
+
+// do not offer the dialog if base selection is fixed
+if (ProductFeatures::GetFeature ("software", "selection_type") == `fixed)
+ return `auto;
+
+boolean text_mode = UI::GetDisplayInfo()["TextMode"]:false;
+
+// TRANSLATORS: help text, part 1
+string help = _("<p>At Linux <b>choice</b> is a top priority. <i>openSUSE</i> offers a number
+of different desktop environments. Below you see a list of the 2 major ones
+<b>GNOME</b> and <b>KDE</b> (in two different versions). Both provide an easy to use desktop
+with a large number of desktop applications such as email, file browser, games and many others.</p>") +
+
+// TRANSLATORS: help text, part 3
+_("Additionally, not only desktop but you can also chose a minimalistic
+installation that could fit your needs better.");
+
+if (DefaultDesktop::Desktop() == nil || DefaultDesktop::Desktop() == "") {
+ DefaultDesktop::Init();
+}
+
+map all_desktops = DefaultDesktop::GetAllDesktopsMap();
+
+void SelectSoftwareNow () {
+ y2milestone ("Selected desktop: %1", DefaultDesktop::Desktop());
+ DefaultDesktop::SetDesktop (DefaultDesktop::Desktop());
+
+ Packages::ForceFullRepropose();
+ Packages::Reset ([`product]);
+
+ foreach (string one_pattern, (list <string>) all_desktops[DefaultDesktop::Desktop(), "patterns"]:[], {
+ y2milestone ("Marking desktop pattern to be installed: %1", one_pattern);
+ Pkg::ResolvableInstall (one_pattern, `pattern);
+ });
+}
+
+string GetDesktopRadioButtonId (string desktop_name) {
+ if (desktop_name == nil || desktop_name == "") {
+ y2warning ("Wrong desktop name: %1", desktop_name);
+ return "";
+ }
+
+ return sformat ("selected_desktop_%1", desktop_name);
+}
+
+string GetDesktopDescriptionId (string desktop_name) {
+ if (desktop_name == nil || desktop_name == "") {
+ y2warning ("Wrong desktop name: %1", desktop_name);
+ return "";
+ }
+
+ return sformat ("desktop_description_%1", desktop_name);
+}
+
+list <string> other_desktops = [];
+
+term GetDesktops (string desktops, boolean show_descr) {
+ list <string> sort_order = maplist (string desktop_name, map one_desktop, all_desktops, {
+ return desktop_name;
+ });
+
+ sort_order = sort (string x, string y, sort_order, ``(all_desktops[x,"order"]:99 < all_desktops[y,"order"]:99));
+
+ if (desktops == "major") {
+ sort_order = filter (string desktop_name, sort_order, {
+ return (all_desktops[desktop_name,"order"]:99 == 1);
+ });
+ } else if (desktops == "minor") {
+ sort_order = filter (string desktop_name, sort_order, {
+ return (all_desktops[desktop_name,"order"]:99 > 1);
+ });
+ other_desktops = sort_order;
+ }
+
+ term ret = `VBox ();
+
+ integer counter = -1;
+ integer last_desktop_order = -1;
+
+ foreach (string desktop_name, sort_order, {
+ counter = counter + 1;
+
+ if (counter != 0 && desktops == "major") {
+ ret[counter] = `VSpacing (1);
+ counter = counter + 1;
+ }
+
+ integer desktop_order = all_desktops[desktop_name,"order"]:99;
+
+ term radio_opt = `opt (`notify, `boldFont);
+ if (desktops == "minor")
+ radio_opt = `opt (`notify);
+
+ ret[counter] =
+ `Left (`HBox (
+ `HSpacing ((desktops == "major" ? 2:8)),
+ `VBox (
+ `Left (`RadioButton (
+ `id (GetDesktopRadioButtonId (desktop_name)),
+ radio_opt,
+ all_desktops[desktop_name,"label"]:""
+ )),
+ (desktops == "major" && show_descr ?
+
+ `ReplacePoint (`id (GetDesktopDescriptionId (desktop_name)), `HBox (
+ `HSpacing ((text_mode ? 4:2)),
+ `Left (`Label (all_desktops[desktop_name,"description"]:"")),
+ `HSpacing (1)
+ ))
+ :
+ `Empty()
+ )
+ ),
+ (desktops == "major" ?
+
+ `Image (Directory::themedir + "/current/icons/64x64/apps/" + all_desktops[desktop_name,"icon"]:"yast" + ".png")
+ :
+ `Empty()
+ )
+ ));
+
+ last_desktop_order = desktop_order;
+ });
+
+ if (desktops == "major") {
+ counter = counter + 1;
+
+ if (counter != 0) {
+ ret[counter] = `VSpacing (1);
+ counter = counter + 1;
+ }
+
+ ret[counter] =
+ `Left (`HBox (
+ `HSpacing (2),
+ `VBox (
+ `Left (`RadioButton (
+ `id ("__other__"),
+ `opt (`notify, `boldFont),
+ _("Other")
+ ))
+ )
+ ));
+ }
+
+ return ret;
+}
+
+term major_desktops = GetDesktops ("major", true);
+term major_no_descr = GetDesktops ("major", false);
+term minor_desktops = GetDesktops ("minor", true);
+
+boolean current_minor_d_status = false;
+
+void ShowHideOther (boolean show) {
+ string currently_selected = (string) UI::QueryWidget (`id ("selected_desktop"), `Value);
+
+ if (show == true && current_minor_d_status == false) {
+ if (text_mode) UI::ReplaceWidget (`id ("major_options"), major_no_descr);
+ UI::ReplaceWidget (`id ("other_options"), minor_desktops);
+ current_minor_d_status = true;
+ } else if (show == false && current_minor_d_status == true) {
+ if (text_mode) UI::ReplaceWidget (`id ("major_options"), major_desktops);
+ UI::ReplaceWidget (`id ("other_options"), `Empty());
+ current_minor_d_status = false;
+ }
+
+ UI::ChangeWidget (`id ("selected_desktop"), `Value, currently_selected);
+ UI::SetFocus (`id (currently_selected));
+}
+
+term default_ui_minor = `Empty();
+
+string default_desktop = DefaultDesktop::Desktop();
+if (default_desktop != nil && default_desktop != "" && contains (other_desktops, default_desktop)) {
+ default_ui_minor = minor_desktops;
+ current_minor_d_status = true;
+}
+
+term contents = `Left (`HBox (
+ `HSquash (
+ `VBox (
+ `Label (_("openSUSE offers you a choice of user interfaces. The two major complete
+desktops are KDE and GNOME. Both provide an easy-to-use desktop with a full
+suite of applications including email, a file manager, games and utilities.
+
+As desktop selection is a matter of taste, we do not give a recommendation.")),
+ `VWeight (3, `VStretch()),
+ `RadioButtonGroup (
+ `id ("selected_desktop"),
+ `opt (`hstretch),
+ `VBox (
+ `ReplacePoint (`id ("major_options"), major_desktops),
+ `ReplacePoint (`id ("other_options"), default_ui_minor)
+ )
+ ),
+ `VWeight (5, `VStretch())
+ )
+ )
+));
+
+// TRANSLATORS: dialog caption
+string caption = _("Desktop Selection");
+
+// Set UI
+Wizard::SetContents (caption, contents, help,
+ Stage::initial() ? GetInstArgs::enable_back():true,
+ Stage::initial() ? GetInstArgs::enable_next():true
+);
+Wizard::SetTitleIcon ("yast-desktop-select");
+
+// Adjust default values
+if (! UI::WidgetExists (`id ("selected_desktop"))) {
+ y2error (-1, "Widget selected_desktop does not exist");
+} else if (default_desktop != nil && default_desktop != "") {
+ y2milestone ("Already selected desktop: %1", DefaultDesktop::Desktop());
+ UI::ChangeWidget (`id ("selected_desktop"), `Value, GetDesktopRadioButtonId (DefaultDesktop::Desktop()));
+}
+
+// UI wait loop
+any ret = nil;
+while (true) {
+ ret = UI::UserInput();
+
+ if (is (ret, string) && regexpmatch (tostring (ret), "^selected_desktop_.*")) {
+ string currently_selected = regexpsub (tostring (ret), "^selected_desktop_(.*)", "\\1");
+ if (! contains (other_desktops, currently_selected)) {
+ ShowHideOther (false);
+ }
+ } else if (ret == `next) {
+ string currently_selected = (string) UI::QueryWidget (`id ("selected_desktop"), `Value);
+ if (currently_selected == "__other__") {
+ Popup::Message (_("No system type was selected.
+Select the default type."));
+ continue;
+ }
+ DefaultDesktop::SetDesktop (regexpsub (tostring (currently_selected), "^selected_desktop_(.*)", "\\1"));
+
+ if (DefaultDesktop::Desktop() != nil && haskey (all_desktops, DefaultDesktop::Desktop())) {
+ SelectSoftwareNow ();
+ break;
+ }
+ Popup::Message (_("No system type was selected.
+Select the default type."));
+ continue;
+ } else if (ret == `abort || ret == `cancel) {
+ if (Popup::ConfirmAbort (Stage::initial () ? `painless : `incomplete)) {
+ ret = `abort;
+ break;
+ }
+ continue;
+ } else if (ret == `back) {
+ break;
+ } else if (ret == "__other__") {
+ ShowHideOther (true);
+ } else {
+ y2error ("Input %1 not handled", ret);
+ }
+}
+
+return (symbol) ret;
+
+/* EOF */
+}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-installation-2.16.39/VERSION new/yast2-installation-2.16.40/VERSION
--- old/yast2-installation-2.16.39/VERSION 2008-04-24 15:15:50.000000000 +0200
+++ new/yast2-installation-2.16.40/VERSION 2008-04-25 18:08:01.000000000 +0200
@@ -1 +1 @@
-2.16.39
+2.16.40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org