ekiga r7599 - trunk/src/gui
- From: jpuydt svn gnome org
- To: svn-commits-list gnome org
- Subject: ekiga r7599 - trunk/src/gui
- Date: Fri, 23 Jan 2009 20:40:48 +0000 (UTC)
Author: jpuydt
Date: Fri Jan 23 20:40:48 2009
New Revision: 7599
URL: http://svn.gnome.org/viewvc/ekiga?rev=7599&view=rev
Log:
Made the accounts window connect directly to the opal bank for message waiting events
Modified:
trunk/src/gui/accounts.cpp
Modified: trunk/src/gui/accounts.cpp
==============================================================================
--- trunk/src/gui/accounts.cpp (original)
+++ trunk/src/gui/accounts.cpp Fri Jan 23 20:40:48 2009
@@ -39,6 +39,7 @@
#include "account.h"
#include "bank.h"
+#include "opal-bank.h"
#include "account-core.h"
#include "audiooutput-core.h"
@@ -256,18 +257,17 @@
static void
-on_mwi_event (const Ekiga::Account & account,
+on_mwi_event (const Ekiga::Account* account,
std::string mwi,
gpointer self)
{
- if (gm_accounts_window_update_account_state (GTK_WIDGET (self), false, account, NULL, mwi.c_str ())) {
+ if (gm_accounts_window_update_account_state (GTK_WIDGET (self), false, *account, NULL, mwi.c_str ())) {
std::string::size_type loc = mwi.find ("/", 0);
if (loc != std::string::npos) {
GmAccountsWindow *aw = gm_aw_get_aw (GTK_WIDGET (self));
- gmref_ptr<Ekiga::AudioOutputCore> audiooutput_core
- = aw->core.get ("audiooutput-core");
+ gmref_ptr<Ekiga::AudioOutputCore> audiooutput_core = aw->core.get ("audiooutput-core");
std::stringstream new_messages;
int i;
new_messages << mwi.substr (0, loc);
@@ -769,15 +769,15 @@
/* Engine Signals callbacks */
// FIXME sigc::connection conn;
- gmref_ptr<Ekiga::AccountCore> account_core
- = core.get ("account-core");
+ gmref_ptr<Ekiga::AccountCore> account_core = core.get ("account-core");
+ gmref_ptr<Opal::Bank> bank = core.get ("opal-account-store");
account_core->bank_added.connect (sigc::bind (sigc::ptr_fun (on_bank_added), window));
account_core->account_added.connect (sigc::bind (sigc::ptr_fun (on_account_added), window));
account_core->account_updated.connect (sigc::bind (sigc::ptr_fun (on_account_updated), window));
account_core->account_removed.connect (sigc::bind (sigc::ptr_fun (on_account_removed), window));
account_core->questions.add_handler (sigc::bind (sigc::ptr_fun (on_handle_questions), (gpointer) window));
account_core->registration_event.connect (sigc::bind (sigc::ptr_fun (on_registration_event), (gpointer) window));
- account_core->mwi_event.connect (sigc::bind (sigc::ptr_fun (on_mwi_event), (gpointer) window));
+ bank->mwi_event.connect (sigc::bind (sigc::ptr_fun (on_mwi_event), (gpointer) window));
return window;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]