ekiga r7339 - in branches/gnome-2-24: . src/gui
- From: dsandras svn gnome org
- To: svn-commits-list gnome org
- Subject: ekiga r7339 - in branches/gnome-2-24: . src/gui
- Date: Thu, 13 Nov 2008 22:18:20 +0000 (UTC)
Author: dsandras
Date: Thu Nov 13 22:18:20 2008
New Revision: 7339
URL: http://svn.gnome.org/viewvc/ekiga?rev=7339&view=rev
Log:
Fixed a few warnings. Allow answering/rejecting calls from the main
window when the notification area is used.
Modified:
branches/gnome-2-24/ChangeLog
branches/gnome-2-24/src/gui/main.cpp
Modified: branches/gnome-2-24/src/gui/main.cpp
==============================================================================
--- branches/gnome-2-24/src/gui/main.cpp (original)
+++ branches/gnome-2-24/src/gui/main.cpp Thu Nov 13 22:18:20 2008
@@ -625,6 +625,7 @@
#else
gm_main_window_incoming_call_dialog_show (GTK_WIDGET (self), call);
#endif
+ mw->current_call = &call;
}
else {
gm_main_window_update_calling_state (GTK_WIDGET (self), Calling);
@@ -1043,8 +1044,8 @@
void
on_videooutput_device_error_cb (Ekiga::VideoOutputManager & /* manager */,
- Ekiga::VideoOutputErrorCodes error_code,
- gpointer self)
+ Ekiga::VideoOutputErrorCodes /* error_code */,
+ gpointer /*self*/)
{
PTRACE(1, "Error opening the output device");
}
@@ -1551,6 +1552,8 @@
gm_main_window_update_calling_state (GTK_WIDGET (data), Standby);
}
}
+ else if (mw->calling_state == Called && mw->current_call)
+ mw->current_call->answer ();
}
@@ -1578,10 +1581,14 @@
mw = gm_mw_get_mw (GTK_WIDGET (data));
- if (mw->current_call && gm_connect_button_get_connected (GM_CONNECT_BUTTON (mw->connect_button)))
+ if (gm_connect_button_get_connected (GM_CONNECT_BUTTON (mw->connect_button)))
hangup_call_cb (widget, data);
- else if (!mw->current_call && !gm_connect_button_get_connected (GM_CONNECT_BUTTON (mw->connect_button)))
- place_call_cb (widget, data);
+ else if (!gm_connect_button_get_connected (GM_CONNECT_BUTTON (mw->connect_button))) {
+ if (!mw->current_call)
+ place_call_cb (widget, data);
+ else
+ mw->current_call->answer ();
+ }
}
@@ -3307,7 +3314,7 @@
/* Update the connect button */
gm_connect_button_set_connected (GM_CONNECT_BUTTON (mw->connect_button),
- FALSE);
+ TRUE);
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]