summaryrefslogtreecommitdiffstats
path: root/drakpxelinux.pl
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-06-10 04:53:22 +0000
committerOlivier Blin <oblin@mandriva.org>2005-06-10 04:53:22 +0000
commit70d18edea25dc3b926c10ff1c0b25d5dbc8716c3 (patch)
tree306751e83d3576cbcd8c5b576ea6c4a682ceddda /drakpxelinux.pl
parentd25d0cb11476936c253a25c708395caf2f67405f (diff)
downloaddrakpxelinux-70d18edea25dc3b926c10ff1c0b25d5dbc8716c3.tar
drakpxelinux-70d18edea25dc3b926c10ff1c0b25d5dbc8716c3.tar.gz
drakpxelinux-70d18edea25dc3b926c10ff1c0b25d5dbc8716c3.tar.bz2
drakpxelinux-70d18edea25dc3b926c10ff1c0b25d5dbc8716c3.tar.xz
drakpxelinux-70d18edea25dc3b926c10ff1c0b25d5dbc8716c3.zip
simplify show_help call, fix prototype
Diffstat (limited to 'drakpxelinux.pl')
-rw-r--r--drakpxelinux.pl6
1 files changed, 2 insertions, 4 deletions
diff --git a/drakpxelinux.pl b/drakpxelinux.pl
index 2ad081a..39a6bdf 100644
--- a/drakpxelinux.pl
+++ b/drakpxelinux.pl
@@ -608,7 +608,7 @@ sub cell_edited {
network::pxe::write_pxelinux_conf($pxelinux_conf);
}
-sub show_help { info_dialog("help",
+sub show_help() { info_dialog("help",
gtkpack_(gtkset_border_width(Gtk2::VBox->new, 3),
0, $help,
0, gtksignal_connect(set_help_tip(Gtk2::Button->new(N("online PXE documentation")), 'helponline'),
@@ -868,9 +868,7 @@ $W->add(gtkpack_(Gtk2::VBox->new(0,0),
. "\n\n" . $err);
}
}),
- 0, gtksignal_connect(new Gtk2::Button(N("Help")),
- clicked => sub { show_help }
- ),
+ 0, gtksignal_connect(new Gtk2::Button(N("Help")), clicked => \&show_help),
),
if_($::isEmbedded, 0, $okcancel),
),