Mailinglist Archive: yast-commit (883 mails)

< Previous Next >
[yast-commit] r57841 - in /trunk/autoinstallation: package/autoyast2.changes src/include/conftree.ycp
  • From: ug@xxxxxxxxxxxxxxxx
  • Date: Thu, 02 Jul 2009 10:40:33 -0000
  • Message-id: <E1MMJiT-0007iU-Ki@xxxxxxxxxxxxxxxx>
Author: ug
Date: Thu Jul 2 12:40:33 2009
New Revision: 57841

URL: http://svn.opensuse.org/viewcvs/yast?rev=57841&view=rev
Log:
fixed order of groups in UI

Modified:
trunk/autoinstallation/package/autoyast2.changes
trunk/autoinstallation/src/include/conftree.ycp

Modified: trunk/autoinstallation/package/autoyast2.changes
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/autoinstallation/package/autoyast2.changes?rev=57841&r1=57840&r2=57841&view=diff
==============================================================================
--- trunk/autoinstallation/package/autoyast2.changes (original)
+++ trunk/autoinstallation/package/autoyast2.changes Thu Jul 2 12:40:33 2009
@@ -1,4 +1,9 @@
-------------------------------------------------------------------
+Thu Jul 2 12:39:47 CEST 2009 - ug@xxxxxxx
+
+- fixed order of groups in UI
+
+-------------------------------------------------------------------
Wed Jul 1 11:19:42 CEST 2009 - ug@xxxxxxx

- <feedback_type> for scripts invented

Modified: trunk/autoinstallation/src/include/conftree.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/autoinstallation/src/include/conftree.ycp?rev=57841&r1=57840&r2=57841&view=diff
==============================================================================
--- trunk/autoinstallation/src/include/conftree.ycp (original)
+++ trunk/autoinstallation/src/include/conftree.ycp Thu Jul 2 12:40:33 2009
@@ -57,7 +57,15 @@
*/
term groups( string selectedGroup ){
list<term> itemList = [];
- foreach(string k, map v, Y2ModuleConfig::GroupMap, {
+ list<string> sortedGroups = maplist( string k, map v,
Y2ModuleConfig::GroupMap, { return k; } ); // keys()
+ sortedGroups = sort( string a, string b, sortedGroups,
+ ``{ integer aa =
tointeger(Y2ModuleConfig::GroupMap[a, "SortKey"]:"500");
+ integer bb =
tointeger(Y2ModuleConfig::GroupMap[b, "SortKey"]:"500");
+ return ( aa != bb ) ? (aa < bb):(a < b); // by
"SortKey" or alphabetical
+ });
+
+ foreach(string k, sortedGroups, {
+ map v = Y2ModuleConfig::GroupMap[k]:$[];
string desktop_file = substring( v["X-SuSE-DocTeamID"]:"", 4 );
string translation = dpgettext("desktop_translations",
"/usr/share/locale/", "Name("+desktop_file+".desktop): "+v["Name"]:"" );
if( translation == "Name("+desktop_file+".desktop): "+v["Name"]:"" )

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages