Revision: 5712 http://geany.svn.sourceforge.net/geany/?rev=5712&view=rev Author: ntrel Date: 2011-04-11 16:29:01 +0000 (Mon, 11 Apr 2011)
Log Message: ----------- Remove unnecessary GEANY() macro usage. Avoid using DOC_VALID() macro.
Modified Paths: -------------- trunk/src/ui_utils.c
Modified: trunk/src/ui_utils.c =================================================================== --- trunk/src/ui_utils.c 2011-04-11 15:54:43 UTC (rev 5711) +++ trunk/src/ui_utils.c 2011-04-11 16:29:01 UTC (rev 5712) @@ -2428,17 +2428,16 @@ /* copy the documents_array into the new one */ foreach_document(i) { - g_ptr_array_add(sorted_documents, documents[i]); + if (documents[i]->is_valid) + g_ptr_array_add(sorted_documents, documents[i]); } /* and now sort it */ if (sort_func != NULL) g_ptr_array_sort(sorted_documents, sort_func);
- for (i = 0; i < GEANY(sorted_documents)->len; i++) + for (i = 0; i < sorted_documents->len; i++) { doc = g_ptr_array_index(sorted_documents, i); - if (! DOC_VALID(doc)) - continue;
base_name = g_path_get_basename(DOC_FILENAME(doc)); menu_item = gtk_image_menu_item_new_with_label(base_name);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.