diff --git a/plugins/gtkgui/config.py b/plugins/gtkgui/config.py index 20ddb514c..d00e8c741 100644 --- a/plugins/gtkgui/config.py +++ b/plugins/gtkgui/config.py @@ -682,6 +682,12 @@ class preference_Window: col.pack_start(renderer) col.set_attributes(renderer, text=2) self.fill_sound_treeview() + + if not os.name == 'posix': + self.xml.get_widget('entry_soundplayer').set_sensitive(False) + self.sound_tree.set_sensitive(False) + self.xml.get_widget('entry_sounds').set_sensitive(False) + self.xml.get_widget('button_sounds').set_sensitive(False) #Autopopup st = self.plugin.config['autopopup'] diff --git a/plugins/gtkgui/gtkgui.py b/plugins/gtkgui/gtkgui.py index c75a67911..c2866c2bd 100644 --- a/plugins/gtkgui/gtkgui.py +++ b/plugins/gtkgui/gtkgui.py @@ -2625,6 +2625,8 @@ class plugin: def play_sound(self, event): + if not os.name == 'posix': + return if not self.config[event]: return file = self.config[event + '_file']