From 1090b0c598712a8375e6189447b461ddd3d781b6 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Wed, 18 Feb 2009 13:29:54 +0000 Subject: 2.5 Several things in one commit; could not split this up easily, one job invoked another, and so on. :) - Added pulldowns for save/load .blend file in top bar. - To enable "Save" without further popups (save over) I've added a signaling function in window header to indicate a succesful save. - On any undo push it now signals 'file changed'. This goes by notifiers nicely, but now registers only the undopushes, which is quite unreliable. "Changed" state shows in header as "Blender*" and for OSX with the standard close button black dot. - Made screencast show a button in top bar indicating such, and allowing quit. No hotkey for quit yet... but ESC will keep casting now. - Fixed new BLF_init(), which should be in WM_init() and not on any .B.blend read. - Fixed CTRL+F3 "Save Screenshot", which was still using old fileselect code. --- source/blender/editors/util/undo.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/blender/editors/util/undo.c') diff --git a/source/blender/editors/util/undo.c b/source/blender/editors/util/undo.c index 5d7ed72127e..15dba3fc951 100644 --- a/source/blender/editors/util/undo.c +++ b/source/blender/editors/util/undo.c @@ -78,6 +78,7 @@ static void sound_initialize_sounds() {} void ED_undo_push(bContext *C, char *str) { + wmWindowManager *wm= CTX_wm_manager(C); Object *obedit= CTX_data_edit_object(C); if(obedit) { @@ -105,6 +106,11 @@ void ED_undo_push(bContext *C, char *str) if(U.uiflag & USER_GLOBALUNDO) BKE_write_undo(C, str); } + + if(wm->file_saved) { + wm->file_saved= 0; + WM_event_add_notifier(C, NC_WM|ND_DATACHANGED, NULL); + } } void ED_undo_push_op(bContext *C, wmOperator *op) -- cgit v1.2.3