Author: lslezak Date: Thu Oct 7 09:06:22 2010 New Revision: 62558 URL: http://svn.opensuse.org/viewcvs/yast?rev=62558&view=rev Log: - use Icon.ycp module for displaying icon - 2.20.0 Modified: trunk/tune/VERSION trunk/tune/hwinfo/src/hwinfo.ycp trunk/tune/package/yast2-tune.changes Modified: trunk/tune/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/tune/VERSION?rev=62558&r1=62557&r2=62558&view=diff ============================================================================== --- trunk/tune/VERSION (original) +++ trunk/tune/VERSION Thu Oct 7 09:06:22 2010 @@ -1 +1 @@ -2.18.1 +2.20.0 Modified: trunk/tune/hwinfo/src/hwinfo.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/tune/hwinfo/src/hwinfo.ycp?rev=62558&r1=62557&r2=62558&view=diff ============================================================================== --- trunk/tune/hwinfo/src/hwinfo.ycp (original) +++ trunk/tune/hwinfo/src/hwinfo.ycp Thu Oct 7 09:06:22 2010 @@ -17,6 +17,7 @@ import "Arch"; import "Directory"; import "CommandLine"; +import "Icon"; //include "hwinfo/classnames.ycp"; include "hwinfo/routines.ycp"; @@ -26,21 +27,6 @@ */ boolean abortPressed = false; -term Icon (string icon_name) { - map ui_info = UI::GetDisplayInfo(); - if ((boolean) ui_info["HasLocalImageSupport"]:false == false) return `Empty(); - - return `Image ( - sformat ( - "%1/current/icons/22x22/apps/%2.png", - Directory::themedir, - icon_name - ), - "[x]" - ); -} - - /* * open progress bar window */ @@ -52,7 +38,7 @@ `VBox( `HSpacing(40), `HBox( - `HSquash (`MarginBox (0.5, 0.2, Icon("yast-hwinfo"))), + `HSquash (`MarginBox (0.5, 0.2, Icon::Image("yast-hwinfo", $[]))), // translators: popup heading `Left (`Heading(`id(`heading), _("Probing Hardware..."))) ), Modified: trunk/tune/package/yast2-tune.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/tune/package/yast2-tune.changes?rev=62558&r1=62557&r2=62558&view=diff ============================================================================== --- trunk/tune/package/yast2-tune.changes (original) +++ trunk/tune/package/yast2-tune.changes Thu Oct 7 09:06:22 2010 @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Oct 7 07:01:30 UTC 2010 - lslezak@suse.cz + +- use Icon.ycp module for displaying icon +- 2.20.0 + ------------------------------------------------------------------ Wed Jan 13 18:56:03 CET 2010 - kmachalkova@suse.cz -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org