[ekiga] 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] Fix crash when the new message sound key is unset
- Date: Tue, 2 Apr 2013 08:27:18 +0000 (UTC)
commit 7d54888028eff84a1e476f9794cbe50f5ba343ad
Author: Eugen Dedu <Eugen Dedu pu-pm univ-fcomte fr>
Date: Tue Apr 2 10:23:09 2013 +0200
Fix crash when the new message sound key is unset
I think that the user unset the key through gconf-editor. Anyway,
this also cleans up the code, now play_file is only used in
preferences code, as it should.
src/gui/main_window.cpp | 9 +--------
1 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/src/gui/main_window.cpp b/src/gui/main_window.cpp
index 14f43da..d729861 100644
--- a/src/gui/main_window.cpp
+++ b/src/gui/main_window.cpp
@@ -859,14 +859,7 @@ on_chat_unread_alert (G_GNUC_UNUSED GtkWidget* widget,
gpointer self)
{
EkigaMainWindow *mw = EKIGA_MAIN_WINDOW (self);
-
- if (!gm_conf_get_bool (SOUND_EVENTS_KEY "enable_new_message_sound"))
- return;
-
- std::string file_name_string = gm_conf_get_string (SOUND_EVENTS_KEY "new_message_sound");
-
- if (!file_name_string.empty ())
- mw->priv->audiooutput_core->play_file(file_name_string);
+ mw->priv->audiooutput_core->play_event("new_message_sound");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]