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



commit 45efda46262881f078afe40a3690c941ae74ee40
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 |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/lib/engine/gui/gtk-frontend/preferences-window.cpp 
b/lib/engine/gui/gtk-frontend/preferences-window.cpp
index 130536e..0ff9cd8 100644
--- a/lib/engine/gui/gtk-frontend/preferences-window.cpp
+++ b/lib/engine/gui/gtk-frontend/preferences-window.cpp
@@ -75,27 +75,20 @@ typedef struct _GmPreferencesWindow
   GtkWidget *video_device;
   GtkWidget *iface;
   GtkWidget *fsbutton;
-<<<<<<< HEAD
   boost::shared_ptr<Ekiga::VideoInputCore> videoinput_core;
   boost::shared_ptr<Ekiga::AudioInputCore> audioinput_core;
   boost::shared_ptr<Ekiga::AudioOutputCore> audiooutput_core;
-=======
   GSettings *sound_events_settings;
-  Ekiga::ServiceCore& core;
->>>>>>> GSettings: Ported the sound events part of the preferences window.
   Ekiga::scoped_connections connections;
 } GmPreferencesWindow;
 
 #define GM_PREFERENCES_WINDOW(x) (GmPreferencesWindow *) (x)
 
-<<<<<<< HEAD
-=======
 _GmPreferencesWindow::_GmPreferencesWindow(Ekiga::ServiceCore &_core): core(_core)
 {
   sound_events_settings = g_settings_new (SOUND_EVENTS_SCHEMA);
 }
 
->>>>>>> GSettings: Ported the sound events part of the preferences window.
 _GmPreferencesWindow::~_GmPreferencesWindow()
 {
   g_clear_object (&sound_events_settings);
@@ -1042,7 +1035,14 @@ sound_event_play_cb (G_GNUC_UNUSED GtkWidget *widget,
 
GSettings: Ported the sound events part of the preferences window.
     if (sound_event) {
+<<<<<<< HEAD
       pw->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);
+>>>>>>> GmPrefs: Fixed sound event playing if full filename is provided.
       g_free (sound_event);
     }
 


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