[ekiga/ds-gsettings] GmPrefs: Fixed sound event playing if full filename is provided.



commit 203a458453e0a0f25ea0a144a1b4e9a0882dee4a
Author: Damien Sandras <dsandras beip be>
Date:   Sat Apr 13 19:17:36 2013 +0200

    GmPrefs: Fixed sound event playing if full filename is provided.
    
    This probably also affects 4.0.x.

 lib/engine/gui/gtk-frontend/preferences-window.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/lib/engine/gui/gtk-frontend/preferences-window.cpp 
b/lib/engine/gui/gtk-frontend/preferences-window.cpp
index 3dd7fa6..c55c9bd 100644
--- a/lib/engine/gui/gtk-frontend/preferences-window.cpp
+++ b/lib/engine/gui/gtk-frontend/preferences-window.cpp
@@ -1108,7 +1108,10 @@ sound_event_play_cb (G_GNUC_UNUSED GtkWidget *widget,
       pw->core.get<Ekiga::AudioOutputCore> ("audiooutput-core");
 
     if (sound_event) {
-      audiooutput_core->play_event(sound_event);
+      if (!g_path_is_absolute (sound_event))
+        audiooutput_core->play_event(sound_event);
+      else
+        audiooutput_core->play_file(sound_event);
       g_free (sound_event);
     }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]