summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drakpxelinux.pl22
1 files changed, 12 insertions, 10 deletions
diff --git a/drakpxelinux.pl b/drakpxelinux.pl
index 0aedd3f..70c8f11 100644
--- a/drakpxelinux.pl
+++ b/drakpxelinux.pl
@@ -600,6 +600,7 @@ sub edit_box_item {
# update value in cells
set_pxelinux_entry_at_iter($model, $iter, $entry);
+ write_conf($pxelinux_conf, $treeview);
$dialog->destroy;
network::pxe::add_in_help($entry->{label}, $entry->{info});
},
@@ -1125,7 +1126,7 @@ gtkpack($w->{window}, gtknew('VBox', spacing => 0, children => [
1, gtknew('ScrolledWindow', width => 500, height => 300, child => $treeview),
0, gtknew('VBox', children => [
0, gtknew('Label', text => N("Profiles list")),
- 0, gtknew('ScrolledWindow', height => 260, child => $profiles),
+ 1, gtknew('ScrolledWindow', child => $profiles),
0, gtknew('VButtonBox', layout => 'start', children_loose => [
gtksignal_connect(gtknew('Button', text => N("Add profile")), clicked => \&add_profile),
gtksignal_connect(gtknew('Button', text => N("Clone profile")), clicked => sub {
@@ -1136,9 +1137,16 @@ gtkpack($w->{window}, gtknew('VBox', spacing => 0, children => [
network::pxe::remove_profile($profiles_conf, $profiles->{data}[$_][0]) foreach $profiles->get_selected_indices;
refresh_profiles();
}),
- ]),
- ]),
- ]
+ ]
+ ),
+ 0, gtknew('VButtonBox', layout => 'start', children_loose => [
+ gtknew('Label', text => N("Default boot:")),
+ $menu_combo = gtknew('ComboBox'),
+ ]
+ ),
+ ]
+ ),
+ ]
),
0, gtknew('HButtonBox', layout => 'start', children => [
0, gtksignal_connect(set_help_tip(Gtk2::Button->new(N("Add an entry")), 'addpxe'), clicked => sub {
@@ -1168,12 +1176,6 @@ gtkpack($w->{window}, gtknew('VBox', spacing => 0, children => [
edit_box_item($model, $treeview, $pxelinux_conf);
write_conf($pxelinux_conf, $treeview);
}),
- 0, gtksignal_connect(set_help_tip(Gtk2::Button->new(N("Apply to profile")), 'apply'), clicked => sub {
- my $pxelinux_conf = get_pxelinux_conf_from_profile();
- write_conf($pxelinux_conf, $treeview);
- }),
- 0, gtknew('Label', text => N("Default boot:")),
- 0, $menu_combo = gtknew('ComboBox'),
]),
]),
gtknew('Label', text => N("Systems")),