From 446257bc249b35d8e68e7b3d82c9e750b69814d4 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 5 Mar 2001 17:08:37 +0000 Subject: (_create_window): don't care about c::XSetInputFocus not existing --- perl-install/my_gtk.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perl-install/my_gtk.pm b/perl-install/my_gtk.pm index 27fc5e5ab..13f5cd0c3 100644 --- a/perl-install/my_gtk.pm +++ b/perl-install/my_gtk.pm @@ -417,7 +417,7 @@ sub _create_window($$) { $w->set_title($title); - $w->signal_connect(expose_event => sub { c::XSetInputFocus($w->window->XWINDOW); }) if $my_gtk::force_focus || $o->{force_focus}; + $w->signal_connect(expose_event => sub { eval { c::XSetInputFocus($w->window->XWINDOW) } }) if $my_gtk::force_focus || $o->{force_focus}; $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}; -- cgit v1.2.1