diff options
-rwxr-xr-x | draksnapshot-applet | 13 |
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; } |