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

njp at sita.openmoko.org njp at sita.openmoko.org
Thu Aug 2 17:27:02 CEST 2007


Author: njp
Date: 2007-08-02 17:27:01 +0200 (Thu, 02 Aug 2007)
New Revision: 2609

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):
	Double check for incoming status as new tabs keep appearing.

Modified: trunk/src/target/OM-2007.2/applications/openmoko-dialer2/ChangeLog
===================================================================
--- trunk/src/target/OM-2007.2/applications/openmoko-dialer2/ChangeLog	2007-08-02 14:33:49 UTC (rev 2608)
+++ trunk/src/target/OM-2007.2/applications/openmoko-dialer2/ChangeLog	2007-08-02 15:27:01 UTC (rev 2609)
@@ -1,5 +1,10 @@
 2007-08-02  Neil J. Patel  <njp at o-hand.com>
 
+	* src/moko-dialer.c: (on_incoming_call):
+	Double check for incoming status as new tabs keep appearing.
+
+2007-08-02  Neil J. Patel  <njp at o-hand.com>
+
 	* data/openmoko-dialer.desktop:
 	Execute openmoko-dialer -s, so the dialer always shows.
 

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 14:33:49 UTC (rev 2608)
+++ trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/moko-dialer.c	2007-08-02 15:27:01 UTC (rev 2609)
@@ -254,7 +254,7 @@
 
   g_return_if_fail (MOKO_IS_DIALER (dialer));
   priv = dialer->priv;
-
+  
   if (priv->status != DIALER_STATUS_INCOMING)
     return;
   
@@ -351,8 +351,12 @@
   priv = dialer->priv;
 
   /* We sometimes get the signals multiple times */
-  if (priv->status == DIALER_STATUS_INCOMING)
+  if (priv->status == DIALER_STATUS_INCOMING 
+        || GTK_IS_WIDGET (priv->talking->parent))
+  {
+    g_print ("We are already showing the incoming page");
     return;
+  }
 
   priv->status = DIALER_STATUS_INCOMING;
 





More information about the commitlog mailing list