From d7759908b432ca8fd8942622ce4aa85a28354000 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 10 Jan 2005 17:15:08 +0000 Subject: - XFdrake test is not standalone, it is the non install nor standalone state (used when there is no window manager) - get rid of now unused $ugtk2::force_center --- perl-install/ugtk2.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'perl-install/ugtk2.pm') diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm index 72e22c8f0..3984ebb63 100644 --- a/perl-install/ugtk2.pm +++ b/perl-install/ugtk2.pm @@ -2,7 +2,7 @@ package ugtk2; use diagnostics; use strict; -use vars qw(@ISA %EXPORT_TAGS @EXPORT_OK @icon_paths $wm_icon $force_center_at_pos $force_center $force_focus $grab $border); #- leave it on one line, for automatic removal of the line at package creation +use vars qw(@ISA %EXPORT_TAGS @EXPORT_OK @icon_paths $wm_icon $force_center_at_pos $force_focus $grab $border); #- leave it on one line, for automatic removal of the line at package creation @ISA = qw(Exporter); %EXPORT_TAGS = ( @@ -839,7 +839,7 @@ sub new { if ($o->{pop_it}) { $o->{rwindow} = _create_window( title => $title, - position_policy => $force_center ? 'center_always' : 'center-on-parent', + position_policy => !$::isInstall && !$::isStandalone ? 'center_always' : 'center-on-parent', modal => $grab || $o->{grab} || $o->{modal}, if_(!$::isInstall, icon_no_error => wm_icon()), if_($o->{transient} && $o->{transient} =~ /Gtk2::Window/, transient_for => $o->{transient}), -- cgit v1.2.1