aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-03-15 17:07:41 +0000
committerThierry Vignaud <tv@mandriva.org>2007-03-15 17:07:41 +0000
commit67b28d639fdd1690ca90cd61744cc51fe4233ddb (patch)
tree5fa212c663342d30f3631bfc8faf8a0134a6a754
parent2e94ef6fca25b33c6e70d99b32536c1a461c7c4e (diff)
downloadrpmdrake-67b28d639fdd1690ca90cd61744cc51fe4233ddb.tar
rpmdrake-67b28d639fdd1690ca90cd61744cc51fe4233ddb.tar.gz
rpmdrake-67b28d639fdd1690ca90cd61744cc51fe4233ddb.tar.bz2
rpmdrake-67b28d639fdd1690ca90cd61744cc51fe4233ddb.tar.xz
rpmdrake-67b28d639fdd1690ca90cd61744cc51fe4233ddb.zip
(get_pkgs,perform_installation,perform_removal) fix transient hints
-rwxr-xr-xRpmdrake/pkg.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index 1dc8a7d4..9767f0c4 100755
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -190,7 +190,7 @@ sub get_pkgs {
myexit(-1) if 0; #FIXME
};
- Rpmdrake::gurpm::init(1 ? N("Please wait") : N("Package installation..."), N("Initializing..."), transient => $::w->{real_window});
+ Rpmdrake::gurpm::init(1 ? N("Please wait") : N("Package installation..."), N("Initializing..."), transient => $::main_window);
my $_guard = before_leaving { Rpmdrake::gurpm::end() };
my $_flush_guard = Gtk2::GUI_Update_Guard->new;
@@ -508,7 +508,7 @@ sub perform_installation { #- (partially) duplicated from /usr/sbin/urpmi :-(
my $_guard = before_leaving { urpm::removable::try_umounting_removables($urpm) };
- Rpmdrake::gurpm::init(1 ? N("Please wait") : N("Package installation..."), N("Initializing..."), transient => $::w->{real_window});
+ Rpmdrake::gurpm::init(1 ? N("Please wait") : N("Package installation..."), N("Initializing..."), transient => $::main_window);
my $canceled;
my (@errors);
my $something_installed;
@@ -789,7 +789,7 @@ sub perform_removal {
my ($urpm, $pkgs) = @_;
my @toremove = map { if_($pkgs->{$_}{selected}, $pkgs->{$_}{urpm_name}) } keys %$pkgs;
return if !@toremove;
- Rpmdrake::gurpm::init(1 ? N("Please wait") : N("Please wait, removing packages..."), N("Initializing..."), transient => $::w->{real_window});
+ Rpmdrake::gurpm::init(1 ? N("Please wait") : N("Please wait, removing packages..."), N("Initializing..."), transient => $::main_window);
my $_a = before_leaving { Rpmdrake::gurpm::end() };
my @results;