From 8d4ff95e73eb30d7fd841637423bbfa489c156cd Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Thu, 11 Jul 2002 20:53:33 +0000 Subject: (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 --- my-evolution/ChangeLog | 6 ++++++ my-evolution/e-summary-preferences.c | 12 ++++++++---- 2 files changed, 14 insertions(+), 4 deletions(-) (limited to 'my-evolution') diff --git a/my-evolution/ChangeLog b/my-evolution/ChangeLog index e3cab6c49c..07f1791545 100644 --- a/my-evolution/ChangeLog +++ b/my-evolution/ChangeLog @@ -1,3 +1,9 @@ +2002-07-11 Ettore Perazzoli + + * e-summary-preferences.c (set_selected_folders): Set the + customIconName part to the empty string. [#27616] + Also, set_release on the sequence to TRUE. + 2002-06-28 Dan Winship * e-summary-mail.c (e_summary_mail_idle_get_info): Add this, to 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); -- cgit v1.2.3