Author: lslezak Date: Fri Apr 3 11:59:05 2009 New Revision: 56608 URL: http://svn.opensuse.org/viewcvs/yast?rev=56608&view=rev Log: - Display more details in lirc error popup, describe the details (bnc#449327) - 2.18.2 Modified: trunk/tv/VERSION trunk/tv/package/yast2-tv.changes trunk/tv/src/irc_ui.ycp trunk/tv/src/misc.ycp Modified: trunk/tv/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/tv/VERSION?rev=56608&r1=56607&r2=56608&view=diff ============================================================================== --- trunk/tv/VERSION (original) +++ trunk/tv/VERSION Fri Apr 3 11:59:05 2009 @@ -1 +1 @@ -2.18.1 +2.18.2 Modified: trunk/tv/package/yast2-tv.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/tv/package/yast2-tv.changes?rev=56608&r1=56607&r2=56608&view=diff ============================================================================== --- trunk/tv/package/yast2-tv.changes (original) +++ trunk/tv/package/yast2-tv.changes Fri Apr 3 11:59:05 2009 @@ -3,6 +3,9 @@ - Do not try installing unavailable packages (TV applications) (bnc #480179) +- Display more details in lirc error popup, describe the details + (bnc#449327) +- 2.18.2 ------------------------------------------------------------------- Thu Mar 26 08:20:36 CET 2009 - lslezak@suse.cz Modified: trunk/tv/src/irc_ui.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/tv/src/irc_ui.ycp?rev=56608&r1=56607&r2=56608&view=diff ============================================================================== --- trunk/tv/src/irc_ui.ycp (original) +++ trunk/tv/src/irc_ui.ycp Fri Apr 3 11:59:05 2009 @@ -39,10 +39,10 @@ * start with temporary LIRC configuration to enable the test * @return empty string on success, error message otherwise */ - define string lirc_tmp_start () ``{ + define map lirc_tmp_start () ``{ if (!modified) - return ""; + return $[]; // store old configuration orig_module = (string) SCR::Read (.sysconfig.lirc.LIRC_MODULE); if (SCR::Read (.target.size, "/etc/lircd.conf") != -1) @@ -69,7 +69,7 @@ out = (map) SCR::Execute (.target.bash_output, "rclirc restart"); else out = (map) SCR::Execute (.target.bash_output, "rclirc start"); - return out["stderr"]:""; + return out; } /** @@ -99,11 +99,11 @@ `Label(_("Initializing...")) ); - string start = lirc_tmp_start (); - if (start != "") + map start = lirc_tmp_start (); + if (start["exit"]:-1 != 0) { // error popup text - ErrorWithDetails (_("Starting the 'lirc' service failed."), start); + ErrorWithDetails (_("Starting the 'lirc' service failed."), _("Output from /etc/init.d/lirc command:\n\n") + start["stdout"]:"" + "\n" + start["stderr"]:""); UI::CloseDialog(); lirc_tmp_stop (); return false; Modified: trunk/tv/src/misc.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/tv/src/misc.ycp?rev=56608&r1=56607&r2=56608&view=diff ============================================================================== --- trunk/tv/src/misc.ycp (original) +++ trunk/tv/src/misc.ycp Fri Apr 3 11:59:05 2009 @@ -95,7 +95,7 @@ `VSpacing (0.5), // label `Left(`Heading (Label::ErrorMsg())), - `Label (error), + `Left(`Label (error)), `ReplacePoint (`id(`rp), `Empty()), `VSpacing (0.5), `Left(`CheckBox (`id(`details), `opt (`notify), @@ -113,7 +113,7 @@ if (ret == `details) { if ((boolean)UI::QueryWidget (`id(`details), `Value)) - UI::ReplaceWidget (`id(`rp), `VBox (`Label (details))); + UI::ReplaceWidget (`id(`rp), `Frame(_("Details"), `Left(`Label (details)))); else UI::ReplaceWidget (`id(`rp), `Empty()); } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org