diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-08-13 22:04:30 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-08-13 22:04:30 +0000 |
commit | feeaba060b1061febb8dc5c8fe3a7371d8611626 (patch) | |
tree | 5ab1730d1671069b7e778f687cbb236bc81af90d /Rpmdrake | |
parent | a6adee9408d54ac03d87a0d38b28ff889ed3c83e (diff) | |
download | rpmdrake-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-x | Rpmdrake/gurpm.pm | 5 |
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; } |