r2605 - in trunk/src/target/OM-2007.2/applications/openmoko-dialer2: . src

njp at sita.openmoko.org njp at sita.openmoko.org
Thu Aug 2 12:38:23 CEST 2007


Author: njp
Date: 2007-08-02 12:38:22 +0200 (Thu, 02 Aug 2007)
New Revision: 2605

Modified:
   trunk/src/target/OM-2007.2/applications/openmoko-dialer2/ChangeLog
   trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/moko-dialer.c
Log:
2007-08-02  Neil J. Patel  <njp at o-hand.com>

	* src/moko-dialer.c: (on_incoming_call):
	Check if we have already set the incoming call status, otherwise each
	ring causes MokoGsmdConnection to emit a incoming call, and we keep 
	creating talking widgets.

Modified: trunk/src/target/OM-2007.2/applications/openmoko-dialer2/ChangeLog
===================================================================
--- trunk/src/target/OM-2007.2/applications/openmoko-dialer2/ChangeLog	2007-08-02 10:02:07 UTC (rev 2604)
+++ trunk/src/target/OM-2007.2/applications/openmoko-dialer2/ChangeLog	2007-08-02 10:38:22 UTC (rev 2605)
@@ -1,3 +1,10 @@
+2007-08-02  Neil J. Patel  <njp at o-hand.com>
+
+	* src/moko-dialer.c: (on_incoming_call):
+	Check if we have already set the incoming call status, otherwise each
+	ring causes MokoGsmdConnection to emit a incoming call, and we keep 
+	creating talking widgets.
+
 2007-08-01  Neil J. Patel  <njp at o-hand.com>
 
 	* src/moko-dialer.c: (on_pin_requested),

Modified: trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/moko-dialer.c
===================================================================
--- trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/moko-dialer.c	2007-08-02 10:02:07 UTC (rev 2604)
+++ trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/moko-dialer.c	2007-08-02 10:38:22 UTC (rev 2605)
@@ -350,6 +350,10 @@
   g_return_if_fail (MOKO_IS_DIALER (dialer));
   priv = dialer->priv;
 
+  /* We sometimes get the signals multiple times */
+  if (priv->status == DIALER_STATUS_INCOMING)
+    return;
+
   priv->status = DIALER_STATUS_INCOMING;
 
   moko_talking_incoming_call (MOKO_TALKING (priv->talking), NULL, NULL);





More information about the commitlog mailing list