summaryrefslogtreecommitdiffstats
path: root/draksnapshot-applet
diff options
context:
space:
mode:
authortv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2008-03-28 15:48:53 +0000
committertv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2008-03-28 15:48:53 +0000
commit45a4dd2db9afd428e5ab25644e05b2b25adc660f (patch)
tree54b44bc9b5ec561da363e0c43c959fa63ae128f8 /draksnapshot-applet
parent022fc69e0d555c2dc3941851c24a00d3c9d5d2e8 (diff)
downloaddraksnapshot-45a4dd2db9afd428e5ab25644e05b2b25adc660f.tar
draksnapshot-45a4dd2db9afd428e5ab25644e05b2b25adc660f.tar.gz
draksnapshot-45a4dd2db9afd428e5ab25644e05b2b25adc660f.tar.bz2
draksnapshot-45a4dd2db9afd428e5ab25644e05b2b25adc660f.tar.xz
draksnapshot-45a4dd2db9afd428e5ab25644e05b2b25adc660f.zip
(setup_cyclic_check) no more regularly run silentCheck() (preparing to
switch to using HAL) git-svn-id: http://svn.mandriva.com/svn/soft/draksnapshot/trunk@241087 99302b65-d5f7-0310-b3dd-f8cd6f4e3d94
Diffstat (limited to 'draksnapshot-applet')
-rwxr-xr-xdraksnapshot-applet13
1 files changed, 1 insertions, 12 deletions
diff --git a/draksnapshot-applet b/draksnapshot-applet
index c7e6764..43876a4 100755
--- a/draksnapshot-applet
+++ b/draksnapshot-applet
@@ -42,7 +42,7 @@ use Gtk2::Notify '-init', 'draksnapshot';
ugtk2::add_icon_path("/usr/share/draksnapshot/pixmaps/");
-my ($menu, $timeout, @discs, $state_global);
+my ($menu, @discs, $state_global);
my $localfile = "$ENV{HOME}/.draksnapshot";
@@ -84,7 +84,6 @@ shouldStart() or die "$localfile should be set to TRUE: please use --force or -f
go2State('okay');
gtkflush();
silentCheck();
-setup_cyclic_check();
$SIG{USR1} = 'IGNORE';
@@ -156,15 +155,6 @@ sub silentCheck() {
gtkset_mousecursor_normal($w) if !$insensitive_while_running_a_child;
}
-sub setup_cyclic_check() {
- $timeout = Glib::Timeout->add(
- 5000,
- sub { # default to 2sec
- silentCheck();
- 1;
- });
-}
-
sub go2State {
my $state = shift;
$menu->destroy if $menu;
@@ -263,6 +253,5 @@ sub setAutoStart {
}
sub mainQuit() {
- Glib::Source->remove($timeout) if $timeout;
Gtk2->main_quit;
}