Update the symbol list when starting a new document.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1180 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2007-01-13 15:25:45 +00:00
parent 6044ff1f50
commit 9a131ece20
2 changed files with 5 additions and 0 deletions

View File

@ -7,6 +7,8 @@
src/ui_utils.c, src/symbols.h:
Move utils_compare_symbol(), GeanySymbol, recreate_tag_list()
to symbols.c.
* src/document.c:
Update the symbol list when starting a new document.
2007-01-12 Nick Treleaven <nick.treleaven@btinternet.com>

View File

@ -414,8 +414,11 @@ void document_new_file(filetype *ft)
if (ft == NULL) filetypes[GEANY_FILETYPES_ALL]->style_func_ptr(doc_list[idx].sci);
ui_set_window_title(idx);
build_menu_update(idx);
doc_list[idx].mtime = time(NULL);
doc_list[idx].changed = FALSE;
document_update_tag_list(idx, FALSE);
document_set_text_changed(idx);
ui_document_show_hide(idx); //update the document menu