summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-04-26 09:23:12 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-04-26 09:23:12 +0000
commitc0690322c6dd9c24fc86549d9e56288c475a24dc (patch)
treea14c1ff9db099e85777bac47271439853a2d1821 /perl-install
parentd2ea9bf02aa22ec0e3c5e3180f7828e833a44d7a (diff)
downloaddrakx-c0690322c6dd9c24fc86549d9e56288c475a24dc.tar
drakx-c0690322c6dd9c24fc86549d9e56288c475a24dc.tar.gz
drakx-c0690322c6dd9c24fc86549d9e56288c475a24dc.tar.bz2
drakx-c0690322c6dd9c24fc86549d9e56288c475a24dc.tar.xz
drakx-c0690322c6dd9c24fc86549d9e56288c475a24dc.zip
don't use ->set_uposition anymore, use ->move instead (as suggested on gtk-perl mailing list)
Diffstat (limited to 'perl-install')
-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;