From e2cbffc6422fc59ee624c2c399e79109c21c7cc4 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 14 Mar 2000 09:25:40 +0000 Subject: no_comment --- perl-install/my_gtk.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'perl-install/my_gtk.pm') diff --git a/perl-install/my_gtk.pm b/perl-install/my_gtk.pm index 89944f342..5970a1e7c 100644 --- a/perl-install/my_gtk.pm +++ b/perl-install/my_gtk.pm @@ -320,6 +320,8 @@ sub _create_window($$) { $w->signal_connect(delete_event => sub { undef $o->{retval}; Gtk->main_quit }); $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'); + $w->signal_connect("key_press_event" => sub { my $d = ${{ 65470 => 'help', 65481 => 'next', -- cgit v1.2.1