summaryrefslogtreecommitdiffstats
path: root/draksnapshot-applet
diff options
context:
space:
mode:
authortv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2008-09-26 14:43:50 +0000
committertv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2008-09-26 14:43:50 +0000
commitaf32112cc6bf9f45982760100ca774cac51a7321 (patch)
tree991cc60c9d1796ee0c060f29bd47a1d8ea746629 /draksnapshot-applet
parentd3b13ed53d6c2a6666b57e7ce643e1eca6b7d9e2 (diff)
downloaddraksnapshot-af32112cc6bf9f45982760100ca774cac51a7321.tar
draksnapshot-af32112cc6bf9f45982760100ca774cac51a7321.tar.gz
draksnapshot-af32112cc6bf9f45982760100ca774cac51a7321.tar.bz2
draksnapshot-af32112cc6bf9f45982760100ca774cac51a7321.tar.xz
draksnapshot-af32112cc6bf9f45982760100ca774cac51a7321.zip
keep timeout value as a variable (needed for next commit)
git-svn-id: http://svn.mandriva.com/svn/soft/draksnapshot/trunk@246737 99302b65-d5f7-0310-b3dd-f8cd6f4e3d94
Diffstat (limited to 'draksnapshot-applet')
-rwxr-xr-xdraksnapshot-applet4
1 files changed, 3 insertions, 1 deletions
diff --git a/draksnapshot-applet b/draksnapshot-applet
index 6bbd849..d7050b0 100755
--- a/draksnapshot-applet
+++ b/draksnapshot-applet
@@ -52,6 +52,8 @@ my $localfile = "$ENV{HOME}/.draksnapshot";
my $insensitive_while_running_a_child;
+my $timeout = ($::testing ? 1 : 30) * 1000;
+
my %state = (
okay => {
@@ -123,7 +125,7 @@ shouldStart() or die "$localfile should be set to TRUE: please use --force or -f
go2State('okay');
gtkflush();
-Glib::Timeout->add(($::testing ? 1 : 30) * 1000, sub { firstCheck(); 0 });
+Glib::Timeout->add($timeout, sub { firstCheck(); 0 });
$SIG{USR1} = 'IGNORE';