Revision: 5728 http://geany.svn.sourceforge.net/geany/?rev=5728&view=rev Author: eht16 Date: 2011-04-17 13:41:54 +0000 (Sun, 17 Apr 2011)
Log Message: ----------- Use document_compare_by_tab_order() as default compare function to sort the document list in the document notebook tab menu, this fixes the currently broken default ordering.
Modified Paths: -------------- trunk/ChangeLog trunk/src/ui_utils.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2011-04-17 13:40:04 UTC (rev 5727) +++ trunk/ChangeLog 2011-04-17 13:41:54 UTC (rev 5728) @@ -4,6 +4,10 @@ plugins/geanyfunctions.h: Add document_compare_by_tab_order() and document_compare_by_tab_order_reverse() to the plugin API. + * src/ui_uitls.c: + Use document_compare_by_tab_order() as default compare function + to sort the document list in the document notebook tab menu, this + fixes the currently broken default ordering.
2011-04-15 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: trunk/src/ui_utils.c =================================================================== --- trunk/src/ui_utils.c 2011-04-17 13:40:04 UTC (rev 5727) +++ trunk/src/ui_utils.c 2011-04-17 13:41:54 UTC (rev 5728) @@ -2430,9 +2430,11 @@ { g_ptr_array_add(sorted_documents, documents[i]); } + if (compare_func == NULL) + compare_func = document_compare_by_tab_order; + /* and now sort it */ - if (compare_func != NULL) - g_ptr_array_sort(sorted_documents, compare_func); + g_ptr_array_sort(sorted_documents, compare_func);
for (i = 0; i < sorted_documents->len; i++) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.