Revision: 4864 http://geany.svn.sourceforge.net/geany/?rev=4864&view=rev Author: eht16 Date: 2010-04-27 15:09:34 +0000 (Tue, 27 Apr 2010)
Log Message: ----------- When switching documents, don't call document_set_text_changed() as this does much more than necessary. Instead call the necessary UI update functions explicitly.
Modified Paths: -------------- trunk/ChangeLog trunk/src/callbacks.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2010-04-27 11:52:51 UTC (rev 4863) +++ trunk/ChangeLog 2010-04-27 15:09:34 UTC (rev 4864) @@ -1,3 +1,11 @@ +2010-04-27 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de> + + * src/callbacks.c: + When switching documents, don't call document_set_text_changed() + as this does much more than necessary. Instead call the necessary + UI update functions explicitly. + + 2010-04-27 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* tagmanager/vstring.c:
Modified: trunk/src/callbacks.c =================================================================== --- trunk/src/callbacks.c 2010-04-27 11:52:51 UTC (rev 4863) +++ trunk/src/callbacks.c 2010-04-27 15:09:34 UTC (rev 4864) @@ -687,7 +687,9 @@ if (doc != NULL) { sidebar_select_openfiles_item(doc); - document_set_text_changed(doc, doc->changed); /* also sets window title and status bar */ + ui_save_buttons_toggle(doc->changed); + ui_set_window_title(doc); + ui_update_statusbar(doc, -1); ui_update_popup_reundo_items(doc); ui_document_show_hide(doc); /* update the document menu */ build_menu_update(doc);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.