diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2003-01-27 08:32:14 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2003-01-27 08:32:14 +0000 |
commit | bc2f2ce46c7497bfc9af98f80ad6373ad3398df4 (patch) | |
tree | c1adf5d1fa807363c2d0018b00e528bf32321e1a | |
parent | ff023c2adbe51b81e93b42cc5e19b20f560851d7 (diff) | |
download | control-center-bc2f2ce46c7497bfc9af98f80ad6373ad3398df4.tar control-center-bc2f2ce46c7497bfc9af98f80ad6373ad3398df4.tar.gz control-center-bc2f2ce46c7497bfc9af98f80ad6373ad3398df4.tar.bz2 control-center-bc2f2ce46c7497bfc9af98f80ad6373ad3398df4.tar.xz control-center-bc2f2ce46c7497bfc9af98f80ad6373ad3398df4.zip |
simplify run_darea->expose_event() logic
-rwxr-xr-x | control-center | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/control-center b/control-center index 4bc11f6a..c145b4a3 100755 --- a/control-center +++ b/control-center @@ -567,8 +567,7 @@ $run_darea->signal_connect(expose_event => sub { $right_back_pixbuf->render_to_drawable($window, $gc, 0, 0, 0, 0, $width, $height, 'normal', 0, 0); $pixbuf->render_to_drawable($window, $gc, 0, 0, 0, 0, $width, $height, 'normal', 0, 0); $run_counter += $run_counter_add; - $run_counter_add = -$run_counter_add if $run_counter < 100; - $run_counter_add = -$run_counter_add if 245 < $run_counter; + $run_counter_add = -$run_counter_add if $run_counter < 100 || 245 < $run_counter; }); gtkflush(); |