[pychess] push by gbtami - Fix the choose egtb directory button in preferences dialog on 2015-01-01 12:24 GMT

1 view
Skip to first unread message

pyc...@googlecode.com

unread,
Jan 1, 2015, 7:24:21 AM1/1/15
to pychess...@googlegroups.com
Revision: c3866862eec9
Branch: default
Author: gbtami
Date: Thu Jan 1 12:23:06 2015 UTC
Log: Fix the choose egtb directory button in preferences dialog
https://code.google.com/p/pychess/source/detail?r=c3866862eec9

Modified:
/lib/pychess/widgets/preferencesDialog.py

=======================================
--- /lib/pychess/widgets/preferencesDialog.py Thu Jan 1 08:30:37 2015 UTC
+++ /lib/pychess/widgets/preferencesDialog.py Thu Jan 1 12:23:06 2015 UTC
@@ -148,7 +148,7 @@

egtb_chooser_dialog = Gtk.FileChooserDialog(_("Select Gaviota TB
path"), None, Gtk.FileChooserAction.SELECT_FOLDER,
(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL, Gtk.STOCK_OPEN,
Gtk.ResponseType.OK))
- egtb_chooser_button = Gtk.FileChooserButton(egtb_chooser_dialog)
+ egtb_chooser_button =
Gtk.FileChooserButton.new_with_dialog(egtb_chooser_dialog)
egtb_chooser_button.set_current_folder(egtb_path)

self.widgets["egtbChooserDock"].add(egtb_chooser_button)
Reply all
Reply to author
Forward
0 new messages