Update of /cvsroot/gtkpod/gtkpod/src
In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv12943/src
Modified Files:
display_sorttabs.c
Log Message:
* src/display_sorttabs.c (on_st_switch_page): avoid CRITICAL
warning when the "Special" filter tab was selected. Thanks
to Audrius Meskauskas for pointing this out.
Index: display_sorttabs.c
===================================================================
RCS file: /cvsroot/gtkpod/gtkpod/src/display_sorttabs.c,v
retrieving revision 1.85
retrieving revision 1.86
diff -u -d -r1.85 -r1.86
--- display_sorttabs.c 20 Jun 2006 23:13:35 -0000 1.85
+++ display_sorttabs.c 16 Jan 2007 10:22:40 -0000 1.86
@@ -1,4 +1,4 @@
-/* Time-stamp: <2006-06-11 17:10:33 jcs>
+/* Time-stamp: <2007-01-16 19:20:13 jcs>
|
| Copyright (C) 2002-2005 Jorg Schuler <jcsjcs at users sourceforge net>
| Part of the gtkpod project.
@@ -269,12 +269,15 @@
/* printf ("switch_page: inst/page: %d/%d\n", inst, page_num); */
/* set compare function for strings (to speed up sorting) */
- buf = g_strdup_printf ("sort_ign_field_%d", ST_to_T (page_num));
- if (prefs_get_int (buf))
- sorttab[inst]->string_compare_func = compare_string_fuzzy;
- else
- sorttab[inst]->string_compare_func = compare_string;
- g_free (buf);
+ if (page_num != ST_CAT_SPECIAL)
+ {
+ buf = g_strdup_printf ("sort_ign_field_%d", ST_to_T (page_num));
+ if (prefs_get_int (buf))
+ sorttab[inst]->string_compare_func = compare_string_fuzzy;
+ else
+ sorttab[inst]->string_compare_func = compare_string;
+ g_free (buf);
+ }
space_data_update ();
st_page_selected (notebook, page_num);
}
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2