Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 131669
Collapse All | Expand All

(-)timer-applet-2.0.1-orig/src/timerapplet/ui/Notifier.py (-5 / +9 lines)
Lines 25-36 Link Here
25
            if self._timeout_id is not None:
25
            if self._timeout_id is not None:
26
                gobject.source_remove(self._timeout_id)
26
                gobject.source_remove(self._timeout_id)
27
                self._timeout_id = None
27
                self._timeout_id = None
28
            self._notify.disconnect(self._handler_id)
28
            if self._handler_id is not None:
29
            self._handler_id = None
29
                self._notify.disconnect(self._handler_id)
30
            self._notify.close()
30
                self._handler_id = None
31
            self._notify = None
31
            try:
32
                self._notify.close()
33
                self._notify = None
34
            except:
35
                pass
32
            
36
            
33
    def _on_notification_closed(self, notification, get_reminder_message_func):
37
    def _on_notification_closed(self, notification, reason, get_reminder_message_func):
34
        self._timeout_id = gobject.timeout_add(Notifier._NOTIFICATION_REDISPLAY_INTERVAL_SECONDS * 1000,
38
        self._timeout_id = gobject.timeout_add(Notifier._NOTIFICATION_REDISPLAY_INTERVAL_SECONDS * 1000,
35
                                               self._on_notification_redisplay_timeout,
39
                                               self._on_notification_redisplay_timeout,
36
                                               get_reminder_message_func)
40
                                               get_reminder_message_func)

Return to bug 131669