summaryrefslogtreecommitdiffstats
path: root/drakpxelinux.pl
diff options
context:
space:
mode:
authorAntoine Ginies <aginies@mandriva.com>2005-09-02 10:23:40 +0000
committerAntoine Ginies <aginies@mandriva.com>2005-09-02 10:23:40 +0000
commit3e9802ac87c34be16452072d4ed829d60d718c7b (patch)
treec8a00329ec45add66e83f6e141bfd10d5fff40cd /drakpxelinux.pl
parent02b02783bfc8743bd703908f06945129625f0c8a (diff)
downloaddrakpxelinux-3e9802ac87c34be16452072d4ed829d60d718c7b.tar
drakpxelinux-3e9802ac87c34be16452072d4ed829d60d718c7b.tar.gz
drakpxelinux-3e9802ac87c34be16452072d4ed829d60d718c7b.tar.bz2
drakpxelinux-3e9802ac87c34be16452072d4ed829d60d718c7b.tar.xz
drakpxelinux-3e9802ac87c34be16452072d4ed829d60d718c7b.zip
improve GUI
Diffstat (limited to 'drakpxelinux.pl')
-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")),