73 |
def reportOfflineStatus(primaryText, secondaryText, feed=None): |
def reportOfflineStatus(primaryText, secondaryText, feed=None): |
74 |
def response(*args): |
def response(*args): |
75 |
if not straw.Config.get_instance().offline: |
if not straw.Config.get_instance().offline: |
76 |
|
poll_manager = straw.PollManager.get_instance() |
77 |
if feed is not None: |
if feed is not None: |
78 |
straw.poll_manager.poll(feed) |
poll_manager.poll(feed) |
79 |
else: |
else: |
80 |
straw.poll_manager.poll() |
poll_manager.poll() |
81 |
|
|
82 |
alert = HIGAlert(primaryText, secondaryText, buttons=(gtk.STOCK_OK,gtk.RESPONSE_OK), status="offline") |
alert = HIGAlert(primaryText, secondaryText, buttons=(gtk.STOCK_OK,gtk.RESPONSE_OK), status="offline") |
83 |
alert.connect('response', response) |
alert.connect('response', response) |