From 3e9802ac87c34be16452072d4ed829d60d718c7b Mon Sep 17 00:00:00 2001 From: Antoine Ginies Date: Fri, 2 Sep 2005 10:23:40 +0000 Subject: improve GUI --- drakpxelinux.pl | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'drakpxelinux.pl') 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")), -- cgit v1.2.1