2007-06-05 Murray Cumming <murrayc@murrayc.com>
authorMurray Cumming <murrayc@murrayc.com>
Tue, 5 Jun 2007 14:45:33 +0000 (14:45 +0000)
committerMurray Cumming <murrayc@murrayc.com>
Tue, 5 Jun 2007 14:45:33 +0000 (14:45 +0000)
* src/maemo/modest-main-window.c: (create_details_widget):
Show the total size for memory card accounts too, instead of showing
the name again. Fixes bug projects.maemo.org bug NB#59307.

pmo-trunk-r2070

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

index 3d425c3..5bc678b 100644 (file)
@@ -1,5 +1,11 @@
 2007-06-05  Murray Cumming  <murrayc@murrayc.com>
 
 2007-06-05  Murray Cumming  <murrayc@murrayc.com>
 
+       * src/maemo/modest-main-window.c: (create_details_widget):
+       Show the total size for memory card accounts too, instead of showing 
+       the name again. Fixes bug projects.maemo.org bug NB#59307.
+
+2007-06-05  Murray Cumming  <murrayc@murrayc.com>
+
        * src/Makefile.am:
        * src/modest-tny-simple-folder-store.c:
        * src/modest-tny-simple-folder-store.h: Removed.
        * src/Makefile.am:
        * src/modest-tny-simple-folder-store.c:
        * src/modest-tny-simple-folder-store.h: Removed.
index a717865..1ce91ca 100644 (file)
@@ -1317,28 +1317,22 @@ create_details_widget (TnyAccount *account)
        } else if (TNY_IS_ACCOUNT(folder_store)) {
                TnyAccount *account = TNY_ACCOUNT(folder_store);
                
        } else if (TNY_IS_ACCOUNT(folder_store)) {
                TnyAccount *account = TNY_ACCOUNT(folder_store);
                
-               if (!strcmp (tny_account_get_id (account), MODEST_MMC_ACCOUNT_ID)) {
-                       gtk_box_pack_start (GTK_BOX (vbox), 
-                               gtk_label_new (tny_account_get_name (account)),
-                               FALSE, FALSE, 0);
-               } else {
-                       time_t last_updated;
-                       gchar *last_updated_string;
-                       /* Get last updated from configuration */
-                       last_updated = modest_account_mgr_get_int (modest_runtime_get_account_mgr (), 
-                                                                 tny_account_get_id (account), 
-                                                                 MODEST_ACCOUNT_LAST_UPDATED, 
-                                                                 TRUE);
-                       if (last_updated > 0) 
-                               last_updated_string = modest_text_utils_get_display_date(last_updated);
-                       else
-                               last_updated_string = g_strdup (_("FIXME: Never"));
-       
-                       label = g_strdup_printf ("%s: %s", _("mcen_ti_lastupdated"), last_updated_string);
-                       gtk_box_pack_start (GTK_BOX (vbox), gtk_label_new (label), FALSE, FALSE, 0);
-                       g_free (last_updated_string);
-                       g_free (label);
-               }
+               time_t last_updated;
+               gchar *last_updated_string;
+               /* Get last updated from configuration */
+               last_updated = modest_account_mgr_get_int (modest_runtime_get_account_mgr (), 
+                                                         tny_account_get_id (account), 
+                                                         MODEST_ACCOUNT_LAST_UPDATED, 
+                                                         TRUE);
+               if (last_updated > 0) 
+                       last_updated_string = modest_text_utils_get_display_date(last_updated);
+               else
+                       last_updated_string = g_strdup (_("FIXME: Never"));
+
+               label = g_strdup_printf ("%s: %s", _("mcen_ti_lastupdated"), last_updated_string);
+               gtk_box_pack_start (GTK_BOX (vbox), gtk_label_new (label), FALSE, FALSE, 0);
+               g_free (last_updated_string);
+               g_free (label);
        }
 
        /* Set alignment */
        }
 
        /* Set alignment */