Author: jreidinger
Date: Thu Apr 2 12:52:59 2009
New Revision: 56572
URL: http://svn.opensuse.org/viewcvs/yast?rev=56572&view=rev
Log:
use CWMTable in bootloader
Modified:
trunk/bootloader/src/routines/global_widgets.ycp
trunk/bootloader/yast2-bootloader.spec.in
Modified: trunk/bootloader/src/routines/global_widgets.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/bootloader/src/routines/global_widgets.ycp?rev=56572&r1=56571&r2=56572&view=diff
==============================================================================
--- trunk/bootloader/src/routines/global_widgets.ycp (original)
+++ trunk/bootloader/src/routines/global_widgets.ycp Thu Apr 2 12:52:59 2009
@@ -22,6 +22,7 @@
import "CWM";
import "CWMTab";
+import "CWMTable";
import "Label";
import "Mode";
import "Storage";
@@ -157,7 +158,7 @@
info
);
});
- UI::ChangeWidget (`id (`sects), `Items, sec);
+ UI::ChangeWidget (`id (`_tw_table), `Items, sec);
}
/**
@@ -170,139 +171,84 @@
}
-/**
- * Handle function of a widget
- * @param widget string widget key
- * @param event map event description of event that occured
- * @return symbol to return to wizard sequencer, or nil
- */
-symbol SectionsHandle (string widget, map event) {
- any op = event["ID"]:nil;
- if (event["ID"]:nil == `sects
- && event["EventReason"]:"" == "Activated"
- && event["EventType"]:"" == "WidgetEvent")
- {
- op = `edit;
- }
- y2milestone ("Handling sections widget, event %1", op);
- string current = (string)UI::QueryWidget (`id (`sects), `CurrentItem);
- integer counter = 0;
- integer index = 0;
- foreach (map s, BootCommon::sections, {
- if (s["name"]:"" == current)
- index = counter;
- counter = counter + 1;
- });
- list