From 45a4dd2db9afd428e5ab25644e05b2b25adc660f Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 28 Mar 2008 15:48:53 +0000 Subject: (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 --- draksnapshot-applet | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'draksnapshot-applet') 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; } -- cgit v1.2.1