now you can type the path to sounds and it gets applied

This commit is contained in:
Nikos Kouremenos 2005-06-06 15:03:41 +00:00
parent 79ddc9d228
commit 147e14eeec
2 changed files with 7 additions and 0 deletions

View File

@ -1008,6 +1008,12 @@ class Preferences_window:
model.set_value(iter, 2, file) model.set_value(iter, 2, file)
model.set_value(iter, 1, 1) 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): def on_open_advanced_editor_button_clicked(self, widget, data = None):
if self.plugin.windows.has_key('advanced_config'): if self.plugin.windows.has_key('advanced_config'):
self.plugin.windows['advanced_config'].window.present() self.plugin.windows['advanced_config'].window.present()

View File

@ -4775,6 +4775,7 @@
<property name="has_frame">True</property> <property name="has_frame">True</property>
<property name="invisible_char">*</property> <property name="invisible_char">*</property>
<property name="activates_default">False</property> <property name="activates_default">False</property>
<signal name="changed" handler="on_sounds_entry_changed" last_modification_time="Tue, 06 Jun 2005 19:59:41 GMT"/>
</widget> </widget>
<packing> <packing>
<property name="padding">0</property> <property name="padding">0</property>