/[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.2 by jmalonzo, Sun Sep 28 12:34:16 2003 UTC revision 1.3 by juri, Fri Nov 7 16:39:26 2003 UTC
# Line 60  class HIGAlert(gtk.Dialog): Line 60  class HIGAlert(gtk.Dialog):
60          self.vbox.add(hbox)          self.vbox.add(hbox)
61    
62      def online_check_toggled(self, *args):      def online_check_toggled(self, *args):
63          straw.config.offline = not straw.config.offline          config = straw.Config.get_instance()
64            config.offline = not config.offline
65    
66  def reportError(primaryText, secondaryText):  def reportError(primaryText, secondaryText):
67      alert = HIGAlert(primaryText, secondaryText,      alert = HIGAlert(primaryText, secondaryText,
# Line 70  def reportError(primaryText, secondaryTe Line 71  def reportError(primaryText, secondaryTe
71    
72  def reportOfflineStatus(primaryText, secondaryText, feed=None):  def reportOfflineStatus(primaryText, secondaryText, feed=None):
73      def response(*args):      def response(*args):
74          if not straw.config.offline:          if not straw.Config.get_instance().offline:
75              if feed is not None:              if feed is not None:
76                  straw.poll_manager.poll(feed)                  straw.poll_manager.poll(feed)
77              else:              else:

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

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