diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2002-07-12 04:53:33 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2002-07-12 04:53:33 +0800 |
commit | 8d4ff95e73eb30d7fd841637423bbfa489c156cd (patch) | |
tree | 1561df2c7a6e9b1b7ef1b8ab0a3321d76f43c2a6 /my-evolution/e-summary-preferences.c | |
parent | f87d11c476413fa6a48648dbdd5dcab1fbd1a28d (diff) | |
download | gsoc2013-evolution-8d4ff95e73eb30d7fd841637423bbfa489c156cd.tar.gz gsoc2013-evolution-8d4ff95e73eb30d7fd841637423bbfa489c156cd.tar.zst gsoc2013-evolution-8d4ff95e73eb30d7fd841637423bbfa489c156cd.zip |
(set_selected_folders): Set the
customIconName part to the empty string. [#27616]
Also, set_release on the sequence to TRUE.
svn path=/trunk/; revision=17423
Diffstat (limited to 'my-evolution/e-summary-preferences.c')
-rw-r--r-- | my-evolution/e-summary-preferences.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/my-evolution/e-summary-preferences.c b/my-evolution/e-summary-preferences.c index 61b4932e71..46ca5f6bfd 100644 --- a/my-evolution/e-summary-preferences.c +++ b/my-evolution/e-summary-preferences.c @@ -1325,21 +1325,25 @@ set_selected_folders (GNOME_Evolution_StorageSetView view) list->_maximum = count; list->_buffer = CORBA_sequence_GNOME_Evolution_Folder_allocbuf (count); + CORBA_sequence_set_release (list->_buffer, TRUE); + for (i = 0, l = global_preferences->display_folders; l; i++, l = l->next) { ESummaryPrefsFolder *folder = l->data; - /* Set duff values execpt for physicalUri & evolutionUri*/ list->_buffer[i].type = CORBA_string_dup (""); list->_buffer[i].description = CORBA_string_dup (""); list->_buffer[i].displayName = CORBA_string_dup (""); - if (strncmp (folder->evolution_uri, "evolution:", 10) == 0) { + + if (strncmp (folder->evolution_uri, "evolution:", 10) == 0) list->_buffer[i].evolutionUri = CORBA_string_dup (folder->evolution_uri + 10); - } else { + else list->_buffer[i].evolutionUri = CORBA_string_dup (folder->evolution_uri); - } + list->_buffer[i].physicalUri = CORBA_string_dup (folder->physical_uri); list->_buffer[i].unreadCount = 0; list->_buffer[i].canSyncOffline = TRUE; + list->_buffer[i].sortingPriority = 0; + list->_buffer[i].customIconName = CORBA_string_dup (""); } CORBA_exception_init (&ev); |