r2173 - trunk/src/target/OM-2007/applications/openmoko-dialer/src

njp at sita.openmoko.org njp at sita.openmoko.org
Wed Jun 6 15:11:08 CEST 2007


Author: njp
Date: 2007-06-06 15:11:07 +0200 (Wed, 06 Jun 2007)
New Revision: 2173

Modified:
   trunk/src/target/OM-2007/applications/openmoko-dialer/src/dialer-window-history.c
   trunk/src/target/OM-2007/applications/openmoko-dialer/src/dialer-window-outgoing.c
Log:
Added some printf's for outgoing calls, to detect segfault

Modified: trunk/src/target/OM-2007/applications/openmoko-dialer/src/dialer-window-history.c
===================================================================
--- trunk/src/target/OM-2007/applications/openmoko-dialer/src/dialer-window-history.c	2007-06-06 10:37:53 UTC (rev 2172)
+++ trunk/src/target/OM-2007/applications/openmoko-dialer/src/dialer-window-history.c	2007-06-06 13:11:07 UTC (rev 2173)
@@ -236,13 +236,17 @@
 
   if (!gtk_tree_selection_get_selected (selection, &model, &iter))
   {
+    g_print ("History: No selection to delete\n");
     return;
   }
   
   gtk_tree_model_get (model, &iter, HISTORY_ENTRY_POINTER, &uid, -1);
   
   if (uid == NULL)
-        return;
+  {
+    g_print ("History: Unable to obtain the UID of the entry\n");
+    return;
+  }
   /* We need to show a dialog to make sure this is what the user wants */
   dialog = moko_message_dialog_new ();
   

Modified: trunk/src/target/OM-2007/applications/openmoko-dialer/src/dialer-window-outgoing.c
===================================================================
--- trunk/src/target/OM-2007/applications/openmoko-dialer/src/dialer-window-outgoing.c	2007-06-06 10:37:53 UTC (rev 2172)
+++ trunk/src/target/OM-2007/applications/openmoko-dialer/src/dialer-window-outgoing.c	2007-06-06 13:11:07 UTC (rev 2173)
@@ -84,6 +84,9 @@
 
   /* Set up window */
   window = moko_message_dialog_new ();
+
+  gtk_widget_realize (GTK_WIDGET (window));
+  
   moko_message_dialog_set_image (MOKO_MESSAGE_DIALOG (window), 
        gtk_image_new_from_file (PKGDATADIR G_DIR_SEPARATOR_S "outgoing_1.png"));
   gtk_window_set_title (GTK_WINDOW (window), "Outgoing Call");
@@ -148,6 +151,7 @@
   
   gulong progress_handler;
   
+  g_print ("Outgoing: creating new entry\n");
   /* create the journal entry for this call and add it to the journal */
   entry = moko_journal_entry_new (VOICE_JOURNAL_ENTRY);
   moko_journal_entry_set_direction (entry, DIRECTION_OUT);
@@ -157,15 +161,20 @@
   moko_journal_add_entry (data->journal, entry);
   /* FIXME: We should be able to associate a number with a contact uid, and 
             add that info to the entry */
-
+  
+  g_print ("Outgoing: Adding handler\n");
   /* connect our handler to track call progress */
   progress_handler = g_signal_connect (data->connection, "call-progress", 
                                        G_CALLBACK (call_progress_cb), data);
   g_object_set_data (G_OBJECT (data->window_outgoing), "current-number", number);
   moko_gsmd_connection_voice_dial (data->connection, number);
+
+  g_print ("Outgoing: Setting message\n");
   moko_message_dialog_set_message (MOKO_MESSAGE_DIALOG (data->window_outgoing),
                                    "Calling %s", number);               
-  
+
+  g_print ("Outgoing: Running dialog\n");
+
   if (gtk_dialog_run (GTK_DIALOG (data->window_outgoing)) == GTK_RESPONSE_OK)
   {
     /* call has connected, so open the talking window */





More information about the commitlog mailing list