aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-08-13 22:04:30 +0000
committerThierry Vignaud <tv@mandriva.org>2007-08-13 22:04:30 +0000
commitfeeaba060b1061febb8dc5c8fe3a7371d8611626 (patch)
tree5ab1730d1671069b7e778f687cbb236bc81af90d /Rpmdrake
parenta6adee9408d54ac03d87a0d38b28ff889ed3c83e (diff)
downloadrpmdrake-feeaba060b1061febb8dc5c8fe3a7371d8611626.tar
rpmdrake-feeaba060b1061febb8dc5c8fe3a7371d8611626.tar.gz
rpmdrake-feeaba060b1061febb8dc5c8fe3a7371d8611626.tar.bz2
rpmdrake-feeaba060b1061febb8dc5c8fe3a7371d8611626.tar.xz
rpmdrake-feeaba060b1061febb8dc5c8fe3a7371d8611626.zip
(progress) prevent gtk+ warnings
Diffstat (limited to 'Rpmdrake')
-rwxr-xr-xRpmdrake/gurpm.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/Rpmdrake/gurpm.pm b/Rpmdrake/gurpm.pm
index 4a3468bf..255cee11 100755
--- a/Rpmdrake/gurpm.pm
+++ b/Rpmdrake/gurpm.pm
@@ -57,7 +57,10 @@ sub label {
}
sub progress {
- $progressbar->set_fraction($_[0]);
+ my ($fraction) = @_;
+ $fraction = 0 if $fraction < 0;
+ $fraction = 1 if 1 < $fraction;
+ $progressbar->set_fraction($fraction);
$mainw->flush;
}