Enable double-clicking a file in file chooser dialog

This commit is contained in:
René Stadler 2007-11-22 13:48:47 +02:00 committed by Stefan Sauer
parent f21ca6638d
commit 8602b6ab63

View file

@ -964,11 +964,11 @@ class Window (object):
dialog = gtk.FileChooserDialog (None, self.gtk_window,
gtk.FILE_CHOOSER_ACTION_OPEN,
(gtk.STOCK_CANCEL, 1,
gtk.STOCK_OPEN, 0,))
(gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL,
gtk.STOCK_OPEN, gtk.RESPONSE_ACCEPT,))
response = dialog.run ()
dialog.hide ()
if response == 0:
if response == gtk.RESPONSE_ACCEPT:
self.set_log_file (dialog.get_filename ())
dialog.destroy ()