/[ascend]/trunk/pygtk/interface/gtkbrowser.py
ViewVC logotype

Diff of /trunk/pygtk/interface/gtkbrowser.py

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

revision 328 by johnpye, Fri Feb 24 06:05:10 2006 UTC revision 329 by johnpye, Fri Feb 24 06:16:31 2006 UTC
# Line 846  class Browser: Line 846  class Browser:
846              (gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL,              (gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL,
847              gtk.STOCK_OPEN, gtk.RESPONSE_OK))              gtk.STOCK_OPEN, gtk.RESPONSE_OK))
848          dialog.set_default_response(gtk.RESPONSE_OK)          dialog.set_default_response(gtk.RESPONSE_OK)
849            dialog.set_transient_for(self.window)
850            dialog.set_modal(True)
851    
852          filter = gtk.FileFilter()          filter = gtk.FileFilter()
853          filter.set_name("*.a4c, *.a4l")          filter.set_name("*.a4c, *.a4l")
# Line 860  class Browser: Line 862  class Browser:
862    
863          response = dialog.run()          response = dialog.run()
864          _filename = dialog.get_filename()          _filename = dialog.get_filename()
865          dialog.destroy()          print "FILENAME SELECTED:",_filename
866            dialog.hide()
867    
868          if response == gtk.RESPONSE_OK:          if response == gtk.RESPONSE_OK:
869              self.reporter.reportNote("File %s selected." % dialog.get_filename() )              self.reporter.reportNote("File %s selected." % dialog.get_filename() )
870              self.library.clear()              self.library.clear()
871              self.do_open( _filename)              self.do_open( _filename)          
             
872    
873      def reload_click(self,*args):      def reload_click(self,*args):
874          _type = None          _type = None

Legend:
Removed from v.328  
changed lines
  Added in v.329

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22