|
Do the actually not like their users?Do the actually not like their users?Posted Apr 24, 2008 17:04 UTC (Thu) by allesfresser (subscriber, #216)In reply to: Do the actually not like their users? by allesfresser Parent article: The Grumpy Editor encounters the Hardy Heron
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 @@
GtkTreeIter *b,
gpointer user_data)
{
- COMPARE_DIRECTORIES;
- else
return strcmp (gtk_file_info_get_display_key (info_a), gtk_file_info_get_display_key (info_b));
}
@@ -6290,14 +6288,10 @@
GtkTreeIter *b,
gpointer user_data)
{
- COMPARE_DIRECTORIES;
- else
- {
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 @@
GtkTreeIter *b,
gpointer user_data)
{
- COMPARE_DIRECTORIES;
- else
- {
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
(Log in to post comments)
|
Copyright © 2008, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds
Powered by Rackspace Managed Hosting.