summaryrefslogtreecommitdiffstats
path: root/perl-install/my_gtk.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-03-05 17:08:37 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-03-05 17:08:37 +0000
commit446257bc249b35d8e68e7b3d82c9e750b69814d4 (patch)
treee3d2311805588a44efcf7ccbeb54395b0a6a2a72 /perl-install/my_gtk.pm
parentd2306af52acf4cce830a0998e897a72ac8e2f414 (diff)
downloaddrakx-446257bc249b35d8e68e7b3d82c9e750b69814d4.tar
drakx-446257bc249b35d8e68e7b3d82c9e750b69814d4.tar.gz
drakx-446257bc249b35d8e68e7b3d82c9e750b69814d4.tar.bz2
drakx-446257bc249b35d8e68e7b3d82c9e750b69814d4.tar.xz
drakx-446257bc249b35d8e68e7b3d82c9e750b69814d4.zip
(_create_window): don't care about c::XSetInputFocus not existing
Diffstat (limited to 'perl-install/my_gtk.pm')
-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 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};