From 86930df464c57f84a461e4a98e5f813bff73952d Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 10 Dec 2009 13:04:51 +0100 Subject: applet: make animation stop after 1 minute. (closes bug 108) See https://fedorahosted.org/abrt/ticket/108 Signed-off-by: Denys Vlasenko --- src/Applet/CCApplet.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Applet/CCApplet.cpp') diff --git a/src/Applet/CCApplet.cpp b/src/Applet/CCApplet.cpp index b73b41d..e6b89d2 100644 --- a/src/Applet/CCApplet.cpp +++ b/src/Applet/CCApplet.cpp @@ -309,6 +309,9 @@ gboolean CApplet::update_icon(void *user_data) if(applet->m_iAnimationStage == ICON_STAGE_LAST){ applet->m_iAnimationStage = 0; } + if (--applet->m_iAnimCountdown == 0) { + applet->stop_animate_icon(); + } return true; } @@ -317,6 +320,7 @@ void CApplet::animate_icon() if(m_iAnimator == 0) { m_iAnimator = g_timeout_add(100, update_icon, this); + m_iAnimCountdown = 10 * 60; /* 60 sec */ } } -- cgit