summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-03-05 23:31:13 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-03-05 23:31:13 +0000
commit01d4f69190a5664a4cee7d24096038621f9b82b1 (patch)
treed62e44537b30ec974dc192df529f646a0352abe8 /perl-install
parent289a6927014fd5eddede7c5458d4520581e4c56d (diff)
downloaddrakx-01d4f69190a5664a4cee7d24096038621f9b82b1.tar
drakx-01d4f69190a5664a4cee7d24096038621f9b82b1.tar.gz
drakx-01d4f69190a5664a4cee7d24096038621f9b82b1.tar.bz2
drakx-01d4f69190a5664a4cee7d24096038621f9b82b1.tar.xz
drakx-01d4f69190a5664a4cee7d24096038621f9b82b1.zip
XSetInputFocus now done in perl-GTK
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/c/stuff.xs.pm6
-rw-r--r--perl-install/my_gtk.pm2
2 files changed, 1 insertions, 7 deletions
diff --git a/perl-install/c/stuff.xs.pm b/perl-install/c/stuff.xs.pm
index 6ec613630..26b5004af 100644
--- a/perl-install/c/stuff.xs.pm
+++ b/perl-install/c/stuff.xs.pm
@@ -120,12 +120,6 @@ setMouseLive(display, type, emulate3buttons)
}
}
}
-
-void
-XSetInputFocus(window)
- int window
- CODE:
- XSetInputFocus(GDK_DISPLAY(), window, RevertToParent, CurrentTime);
';
print '
diff --git a/perl-install/my_gtk.pm b/perl-install/my_gtk.pm
index 13f5cd0c3..56ad24dc2 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 { eval { c::XSetInputFocus($w->window->XWINDOW) } }) if $my_gtk::force_focus || $o->{force_focus};
+ $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->set_uposition(@{$my_gtk::force_position || $o->{force_position}}) if $my_gtk::force_position || $o->{force_position};