/[straw]/straw/src/lib/hig_alert.py
ViewVC logotype

Diff of /straw/src/lib/hig_alert.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by ScottDW, Sat Nov 8 00:43:17 2003 UTC revision 1.5 by juri, Sat Nov 8 16:50:17 2003 UTC
# Line 73  def reportError(primaryText, secondaryTe Line 73  def reportError(primaryText, secondaryTe
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)

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26