You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gnome-vfs2/gnome-vfs-2.1.6-hide-with-e...

34 lines
1.1 KiB

auto-import changelog data from gnome-vfs2-2.2.2-4.src.rpm Mon Feb 24 2003 Elliot Lee <sopwith@redhat.com> - debuginfo rebuild Mon Feb 24 2003 Alexander Larsson <alexl@redhat.com> 2.2.2-3 - Added patch to fix smb crash (#84982) Mon Feb 24 2003 Alexander Larsson <alexl@redhat.com> 2.2.2-2 - Add patch to fix notify race (#84668) Wed Feb 12 2003 Alexander Larsson <alexl@redhat.com> 2.2.2-1 - 2.2.2, fixes bad memleak (#83791) Tue Feb 11 2003 Havoc Pennington <hp@redhat.com> 2.2.1-3 - kill menu editing again, it was very very broken Mon Feb 10 2003 Bill Nottingham <notting@redhat.com> 2.2.1-2 - fix file list (#68226) - prereq GConf2 Mon Feb 10 2003 Alexander Larsson <alexl@redhat.com> 2.2.1-1 - Update to 2.2.1. fixes gnome-theme-manager hang Thu Feb 06 2003 Havoc Pennington <hp@redhat.com> 2.2.0-7 - move to menu editing modules.conf by default, we'll see if it works Tue Jan 28 2003 Matt Wilson <msw@redhat.com> 2.2.0-6 - use LIBTOOL=/usr/bin/libtool Mon Jan 27 2003 Havoc Pennington <hp@redhat.com> - it would help to *install* the stupid menu edit conf file - update the vfolder-hacks patch with some fixes Fri Jan 24 2003 Havoc Pennington <hp@redhat.com> - hack up editable vfolder backend to maybe work (still not the default config file) Wed Jan 22 2003 Havoc Pennington <hp@redhat.com> - include a non-default config file to use new vfolder method - build the new vfolder method Wed Jan 22 2003 Tim Powers <timp@redhat.com> - rebuilt Tue Jan 21 2003 Alexander Larsson <alexl@redhat.com> - Update to 2.2.0 Mon Jan 13 2003 Havoc Pennington <hp@redhat.com> - variation on the subfolders hack to try to fix it Sat Jan 11 2003 Havoc Pennington <hp@redhat.com> - fix bug where empty folders with empty subfolders would still be visible. Sat Jan 11 2003 Havoc Pennington <hp@redhat.com> - finish adapting desktop-method.c to underscore-prefixing action Sat Jan 11 2003 Havoc Pennington <hp@redhat.com> - adapt desktop-method.c to underscore-prefixing action Sat Jan 11 2003 Havoc Pennington <hp@redhat.com> - hardcode <DontShowIfEmpty>, it's stupid to ever override this. Sat Jan 11 2003 Havoc Pennington <hp@redhat.com> - make network:/// use libdesktop.so, and modify libdesktop.so to support it Sat Jan 11 2003 Havoc Pennington <hp@redhat.com> - Revert to George's vfolder backend from gnome-vfs-2.0.2 or so - put back libdesktop.so - don't build the new vfolder backend Wed Jan 08 2003 Alexander Larsson <alexl@redhat.com> 2.1.6-2 - Removed __libdir fix that was fixed upstream Wed Jan 08 2003 Alexander Larsson <alexl@redhat.com> 2.1.6-1 - Update to 2.1.6 Tue Jan 07 2003 Nalin Dahyabhai <nalin@redhat.com> 2.1.5-3 - rebuild Mon Dec 16 2002 Tim Powers <timp@redhat.com> 2.1.5-2 - rebuild Mon Dec 16 2002 Alexander Larsson <alexl@redhat.com> 2.1.5-1 - Update to 2.1.5 Thu Dec 12 2002 Nalin Dahyabhai <nalin@redhat.com> - use OpenSSL's pkg-config information, if available
20 years ago
--- gnome-vfs-2.1.6/modules/vfolder-desktop-method.c.hide-with-empty-subfolders 2003-01-13 16:08:37.000000000 -0500
+++ gnome-vfs-2.1.6/modules/vfolder-desktop-method.c 2003-01-13 16:09:21.000000000 -0500
@@ -937,8 +937,19 @@
/* Include subfolders */
/* we always whack them onto the beginning */
if (folder->subfolders != NULL) {
- GSList *subfolders = g_slist_copy (folder->subfolders);
- g_slist_foreach (subfolders, (GFunc)entry_ref_alloc, NULL);
+ GSList *li;
+ GSList *subfolders;
+ subfolders = NULL;
+ li = folder->subfolders;
+ for (li = folder->subfolders; li != NULL; li = li->next) {
+ Folder *f = li->data;
+ /* always dont_show_if_empty */
+ if (f->entries != NULL) {
+ entry_ref_alloc (&f->entry);
+ subfolders = g_slist_prepend (subfolders, f);
+ }
+ }
+ subfolders = g_slist_reverse (subfolders);
folder->entries = g_slist_concat (subfolders, folder->entries);
}
@@ -1079,7 +1090,7 @@
GHashTable *entry_hash;
ensure_folder (info, folder,
- FALSE /* subfolders */,
+ TRUE /* subfolders */,
NULL /* except */,
FALSE /* ignore_unallocated */);
if (folder->sorted)