summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/mygtk2.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/mygtk2.pm b/perl-install/mygtk2.pm
index 3dc27b7fa..0ee3b7bc2 100644
--- a/perl-install/mygtk2.pm
+++ b/perl-install/mygtk2.pm
@@ -107,7 +107,7 @@ sub _gtk {
$w->set_size_request(delete $opts->{width} || -1, delete $opts->{height} || -1) if exists $opts->{width} || exists $opts->{height};
if (my $position = delete $opts->{position}) {
- $w->set_uposition($position->[0], $position->[1]);
+ $w->move($position->[0], $position->[1]);
}
$w->set_name(delete $opts->{widget_name}) if exists $opts->{widget_name};
$w->can_focus(delete $opts->{can_focus}) if exists $opts->{can_focus};
@@ -721,8 +721,8 @@ sub _create_Window {
return if $w_size[2] == $wi && $w_size[3] == $he; #BUG
(undef, undef, $wi, $he) = @w_size;
- $w->set_uposition(max(0, $::rootwidth - ($::windowwidth + $wi) / 2),
- max(0, $::logoheight + ($::windowheight - $he) / 2));
+ $w->move(max(0, $::rootwidth - ($::windowwidth + $wi) / 2),
+ max(0, $::logoheight + ($::windowheight - $he) / 2));
});
#- without this, the focus is broken during install, though this is not needed during X test, why??
$w->show;