Some debug output to help me with testing.
authorMurray Cumming <murrayc@murrayc.com>
Thu, 28 Jun 2007 10:31:04 +0000 (10:31 +0000)
committerMurray Cumming <murrayc@murrayc.com>
Thu, 28 Jun 2007 10:31:04 +0000 (10:31 +0000)
pmo-trunk-r2473

src/modest-tny-account.c
src/widgets/modest-folder-view.c

index 61e61c5..3998145 100644 (file)
@@ -460,13 +460,10 @@ on_modest_file_system_info(HildonFileSystemInfoHandle *handle,
                g_warning ("%s: error=%s", __FUNCTION__, error->message);
        }
        
-       if (error) {
-/*             printf ("  DEBUG: %s: error=%s\n", __FUNCTION__, error->message); */
-       }
-       
        const gchar *display_name = NULL;
        if (!error && info) {
                display_name = hildon_file_system_info_get_display_name(info);
+               printf ("DEBUG: %s: display name=%s\n", __FUNCTION__,  display_name);
        }
        
        TnyAccount *account = TNY_ACCOUNT (callback_data->account);
@@ -505,6 +502,7 @@ void modest_tny_account_get_mmc_account_name (TnyStoreAccount* self, ModestTnyAc
         * the same string. But why not? Why does hildon needs its own 
         * function for this?
         */
+       printf ("DEBUG: %s Calling hildon_file_system_info_async_new() with URI=%s\n", __FUNCTION__, uri);
        hildon_file_system_info_async_new(uri, 
                on_modest_file_system_info, callback_data /* user_data */);
 
index 17ba809..80870b6 100644 (file)
@@ -289,6 +289,8 @@ static gboolean on_model_foreach_set_name(GtkTreeModel *model, GtkTreePath *path
 
 void on_get_mmc_account_name (TnyStoreAccount* account, gpointer user_data)
 {
+       printf ("DEBUG: %s: account name=%s\n", __FUNCTION__, tny_account_get_name (TNY_ACCOUNT(account)));
+
        ModestFolderView *self = MODEST_FOLDER_VIEW (user_data);
        
        /* If this has been called then it means that the account name has