[ekiga/v4_0] Fix crash when the new message sound key is unset
- From: Eugen Dedu <ededu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga/v4_0] Fix crash when the new message sound key is unset
- Date: Tue, 20 Aug 2013 10:54:52 +0000 (UTC)
commit 4ff4c1503267262348461020bb8bd53ee21cba05
Author: Eugen Dedu <Eugen Dedu pu-pm univ-fcomte fr>
Date: Tue Aug 20 12:54:37 2013 +0200
Fix crash when the new message sound key is unset
src/gui/main_window.cpp | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/src/gui/main_window.cpp b/src/gui/main_window.cpp
index 318ed5a..4083ebe 100644
--- a/src/gui/main_window.cpp
+++ b/src/gui/main_window.cpp
@@ -850,16 +850,10 @@ static void
on_chat_unread_alert (G_GNUC_UNUSED GtkWidget* widget,
gpointer data)
{
- if (!gm_conf_get_bool (SOUND_EVENTS_KEY "enable_new_message_sound"))
- return;
-
Ekiga::ServiceCore *core = (Ekiga::ServiceCore*)data;
boost::shared_ptr<Ekiga::AudioOutputCore> audiooutput_core = core->get<Ekiga::AudioOutputCore>
("audiooutput-core");
- std::string file_name_string = gm_conf_get_string (SOUND_EVENTS_KEY "new_message_sound");
-
- if (!file_name_string.empty ())
- audiooutput_core->play_file(file_name_string);
+ audiooutput_core->play_file("new_message_sound");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]