summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Ginies <aginies@mandriva.com>2004-07-28 05:23:48 +0000
committerAntoine Ginies <aginies@mandriva.com>2004-07-28 05:23:48 +0000
commitf40dcde9e9771b855692f481574000dfd79f49b0 (patch)
treeb65455c81313a3dade56557bdcc69c4fc8505657
parent48ce0b41855d27d193f8cf7a47aa4d6f480f5b31 (diff)
downloaddrakpxelinux-f40dcde9e9771b855692f481574000dfd79f49b0.tar
drakpxelinux-f40dcde9e9771b855692f481574000dfd79f49b0.tar.gz
drakpxelinux-f40dcde9e9771b855692f481574000dfd79f49b0.tar.bz2
drakpxelinux-f40dcde9e9771b855692f481574000dfd79f49b0.tar.xz
drakpxelinux-f40dcde9e9771b855692f481574000dfd79f49b0.zip
fix cancel button
-rw-r--r--drakpxelinux.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/drakpxelinux.pl b/drakpxelinux.pl
index 839def6..e9f5eb2 100644
--- a/drakpxelinux.pl
+++ b/drakpxelinux.pl
@@ -304,7 +304,7 @@ sub edit_box_item {
# file selection for kernel
my $file_dialogk = new Gtk2::FileSelection("File Selection");
$file_dialogk->set_modal(TRUE);
- $file_dialogk->signal_connect("destroy", sub { Gtk2->exit });
+ $file_dialogk->signal_connect("destroy", sub { $file_dialogk->hide });
$file_dialogk->ok_button->signal_connect(clicked => sub {
my $file = $file_dialogk->get_filename;
$kernel->set_text($file);
@@ -320,12 +320,13 @@ sub edit_box_item {
# file selection for initrd
my $file_dialog = new Gtk2::FileSelection("File Selection");
$file_dialog->set_modal(TRUE);
- $file_dialog->signal_connect("destroy", sub { Gtk2->exit });
+ $file_dialog->signal_connect("destroy", sub { $file_dialog->hide });
$file_dialog->ok_button->signal_connect(clicked => sub {
my $filei = $file_dialog->get_filename;
$initrd->set_text($filei);
$file_dialog->hide;
}, $file_dialog);
+ $file_dialog->cancel_button->signal_connect(clicked => sub { $file_dialog->hide });
my $buttoninitrd = Gtk2::Button->new("Select initrd");
$buttoninitrd->signal_connect(clicked => sub { $file_dialog->show });