aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-02-28 10:29:17 +0000
committerThierry Vignaud <tv@mandriva.org>2007-02-28 10:29:17 +0000
commitacb949469d5a3e74bf18c196509e5b05b5669ca0 (patch)
tree190381afe3031dd5465d3a081400e8e27211c3cd /Rpmdrake
parent6e067845d0f6f412a8ab13707081ffa356a57d5d (diff)
downloadrpmdrake-acb949469d5a3e74bf18c196509e5b05b5669ca0.tar
rpmdrake-acb949469d5a3e74bf18c196509e5b05b5669ca0.tar.gz
rpmdrake-acb949469d5a3e74bf18c196509e5b05b5669ca0.tar.bz2
rpmdrake-acb949469d5a3e74bf18c196509e5b05b5669ca0.tar.xz
rpmdrake-acb949469d5a3e74bf18c196509e5b05b5669ca0.zip
(get_pkgs,perform_installation) fix freezed/gray/unrefreshed dialogs
while reading the package database or installing/removing packages (#15408)
Diffstat (limited to 'Rpmdrake')
-rwxr-xr-xRpmdrake/pkg.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index 09462be0..f5e83ff6 100755
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -192,6 +192,7 @@ sub get_pkgs {
Rpmdrake::gurpm::init(1 ? N("Please wait") : N("Package installation..."), N("Initializing..."), transient => $::w->{real_window});
my $_guard = before_leaving { Rpmdrake::gurpm::end() };
+ my $_flush_guard = Gtk2::GUI_Update_Guard->new;
$urpm = urpm->new;
$urpm->{fatal} = $fatal_handler;
@@ -429,6 +430,7 @@ sub perform_installation { #- (partially) duplicated from /usr/sbin/urpmi :-(
my $w = $::main_window;
$w->set_sensitive(0);
+ my $_flush_guard = Gtk2::GUI_Update_Guard->new;
my $group;
if ($::options{parallel} && (($group) = @{$::options{parallel}})) {