summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-03-08 17:03:09 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-03-08 17:03:09 +0000
commit35f4f0312580cb9ad07cc4af3e443881ab474534 (patch)
tree478f69fee2d6aa2efb5f61f72779c231099d2066
parent00fdbd21cc9d560643a7c72415c2d8e3a5947967 (diff)
downloaddrakx-backup-do-not-use-35f4f0312580cb9ad07cc4af3e443881ab474534.tar
drakx-backup-do-not-use-35f4f0312580cb9ad07cc4af3e443881ab474534.tar.gz
drakx-backup-do-not-use-35f4f0312580cb9ad07cc4af3e443881ab474534.tar.bz2
drakx-backup-do-not-use-35f4f0312580cb9ad07cc4af3e443881ab474534.tar.xz
drakx-backup-do-not-use-35f4f0312580cb9ad07cc4af3e443881ab474534.zip
(_create_window): on delete_event, destroy the window and raise wizcancel
-rw-r--r--perl-install/my_gtk.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/my_gtk.pm b/perl-install/my_gtk.pm
index 56ad24dc2..c2062e3dc 100644
--- a/perl-install/my_gtk.pm
+++ b/perl-install/my_gtk.pm
@@ -418,7 +418,7 @@ sub _create_window($$) {
$w->set_title($title);
$w->signal_connect(expose_event => sub { eval { $w->window->XSetInputFocus } }) if $my_gtk::force_focus || $o->{force_focus};
- $w->signal_connect(delete_event => sub { undef $o->{retval}; Gtk->main_quit });
+ $w->signal_connect(delete_event => sub { $w->destroy; die 'wizcancel' });
$w->set_uposition(@{$my_gtk::force_position || $o->{force_position}}) if $my_gtk::force_position || $o->{force_position};
$w->signal_connect(focus => sub { Gtk->idle_add(sub { $w->ensure_focus($_[0]); 0 }, $_[1]) }) if $w->can('ensure_focus');