Not logged in
Log in now
Create an account
Subscribe to LWN
LWN.net Weekly Edition for December 5, 2013
Deadline scheduling: coming soon?
LWN.net Weekly Edition for November 27, 2013
ACPI for ARM?
LWN.net Weekly Edition for November 21, 2013
Could you please post, where I have to change this? Patch or filename+number would be OK. TIA.
Do the actually not like their users?
Posted Apr 24, 2008 16:53 UTC (Thu) by allesfresser (subscriber, #216)
When I patched it out before, it was lines 5644 to 5707 of
gtk+-2.10.14/gtk/gtkfilechooserdefault.c. You'll probably be able to see what to cut out and
rearrange (essentially, remove the COMPARE_DIRECTORIES macro calls). I'm grabbing 2.12.9
right now, and I'll see if it's the same way--if so, I'll post a diff.
Posted Apr 24, 2008 17:04 UTC (Thu) by allesfresser (subscriber, #216)
It is still the same in 2.12.9. Following is a patch. I didn't choose to remove the definition for the COMPARE_DIRECTORIES macro, because it won't make any difference in the generated code, but you can take it out if you want to be extra-neat.
--- gtk+-2.12.9-orig/gtk/gtkfilechooserdefault.c 2008-04-24 09:57:46.000000000 -0700
+++ gtk+-2.12.9-modified/gtk/gtkfilechooserdefault.c 2008-04-24 09:59:23.000000000 -0700
@@ -6278,8 +6278,6 @@
return strcmp (gtk_file_info_get_display_key (info_a), gtk_file_info_get_display_key (info_b));
@@ -6290,14 +6288,10 @@
gint64 size_a = gtk_file_info_get_size (info_a);
gint64 size_b = gtk_file_info_get_size (info_b);
return size_a > size_b ? -1 : (size_a == size_b ? 0 : 1);
/* Sort callback for the mtime column */
@@ -6307,14 +6301,10 @@
GtkFileTime ta = gtk_file_info_get_modification_time (info_a);
GtkFileTime tb = gtk_file_info_get_modification_time (info_b);
return ta > tb ? -1 : (ta == tb ? 0 : 1);
/* Callback used when the sort column changes. We cache the sort order for use
Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds