Added useful debug output to help us figure out the no-messages bug.
authorMurray Cumming <murrayc@murrayc.com>
Thu, 14 Jun 2007 12:52:45 +0000 (12:52 +0000)
committerMurray Cumming <murrayc@murrayc.com>
Thu, 14 Jun 2007 12:52:45 +0000 (12:52 +0000)
pmo-trunk-r2232

ChangeLog2
src/maemo/modest-main-window.c
src/modest-ui-actions.c

index 0e3ec1c..503fa59 100644 (file)
@@ -1,3 +1,10 @@
+2007-06-14  set REAL_NAME environment variable  <set EMAIL_ADDRESS environment variable>
+
+       reviewed by: <delete if not using a buddy>
+
+       * src/maemo/modest-main-window.c: (_on_msg_count_changed):
+       * src/modest-ui-actions.c: (folder_refreshed_cb):
+
 2007-06-14  Murray Cumming  <murrayc@murrayc.com>
 
        * src/widgets/modest-folder-view.c: (filter_row):
index 135ab4f..860ea84 100644 (file)
@@ -1453,6 +1453,7 @@ _on_msg_count_changed (ModestHeaderView *header_view,
                       TnyFolderChange *change,
                       ModestMainWindow *main_window)
 {
+       printf ("DEBUG: %s\n", __FUNCTION__);
        gboolean folder_empty = FALSE;
        TnyFolderChangeChanged changed;
        
@@ -1468,6 +1469,8 @@ _on_msg_count_changed (ModestHeaderView *header_view,
        else
                folder_empty = (tny_folder_get_all_count (TNY_FOLDER (folder)) == 0);
        
+       printf ("DEBUG: %s: folder_empty=%d\n", __FUNCTION__, folder_empty);
+
        /* Set contents style of headers view */
        if (folder_empty)  {
                modest_main_window_set_contents_style (main_window,
index f8035d5..71ff9dc 100644 (file)
@@ -1255,6 +1255,7 @@ folder_refreshed_cb (const GObject *obj,
                     TnyFolder *folder, 
                     gpointer user_data)
 {
+       printf ("DEBUG: %s\n", __FUNCTION__);
        ModestMainWindow *win = NULL;
        GtkWidget *header_view;
 
@@ -1266,9 +1267,11 @@ folder_refreshed_cb (const GObject *obj,
 
        /* Check if folder is empty and set headers view contents style */
        if (tny_folder_get_all_count (folder) == 0) {
+       printf ("DEBUG: %s: tny_folder_get_all_count() returned 0.\n", __FUNCTION__);
                modest_main_window_set_contents_style (win,
                                                       MODEST_MAIN_WINDOW_CONTENTS_STYLE_EMPTY);
        } else {
+               printf ("DEBUG: %s: tny_folder_get_all_count() returned >0.\n", __FUNCTION__);
                /* Restore configuration. There is no need to set the
                   contents style to headers because it was already
                   being done in folder_selection_changed */