From 147e14eeece9c1e46324f61ae4304d35a64c6b7c Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Mon, 6 Jun 2005 15:03:41 +0000 Subject: [PATCH] now you can type the path to sounds and it gets applied --- src/config.py | 6 ++++++ src/gtkgui.glade | 1 + 2 files changed, 7 insertions(+) diff --git a/src/config.py b/src/config.py index 7c5047b38..cd7e736f1 100644 --- a/src/config.py +++ b/src/config.py @@ -1008,6 +1008,12 @@ class Preferences_window: model.set_value(iter, 2, file) model.set_value(iter, 1, 1) + def on_sounds_entry_changed(self, widget): + path_to_file = widget.get_text() + model, iter = self.sound_tree.get_selection().get_selected() + model.set_value(iter, 2, path_to_file) + model.set_value(iter, 1, 1) + def on_open_advanced_editor_button_clicked(self, widget, data = None): if self.plugin.windows.has_key('advanced_config'): self.plugin.windows['advanced_config'].window.present() diff --git a/src/gtkgui.glade b/src/gtkgui.glade index 3e4b91b1b..62a1f144d 100644 --- a/src/gtkgui.glade +++ b/src/gtkgui.glade @@ -4775,6 +4775,7 @@ True * False + 0