diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2008-04-28 20:43:19 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2008-04-28 20:43:19 +0000 |
commit | c9fdee25e7e25dec8f7d6ad04a3c0cb272dd643f (patch) | |
tree | 1db214ab089c3b9e3c7c66576975872158a43755 /packages/patches | |
parent | c6f2b11c2a61042a3ebdcaa899c8c180ca196841 (diff) |
Whenever saving, update the window list for the Window menu in case the save
was a "Save As" that changed the name of the window.
svn path=/trunk/; revision=9742
Diffstat (limited to 'packages/patches')
-rw-r--r-- | packages/patches/update_window_list_on_saveas-0.41.4.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/packages/patches/update_window_list_on_saveas-0.41.4.patch b/packages/patches/update_window_list_on_saveas-0.41.4.patch new file mode 100644 index 00000000..2d7d183c --- /dev/null +++ b/packages/patches/update_window_list_on_saveas-0.41.4.patch @@ -0,0 +1,16 @@ +Index: g_readwrite.c +=================================================================== +--- g_readwrite.c (revision 9740) ++++ g_readwrite.c (working copy) +@@ -705,7 +705,11 @@ + { + /* if not an abstraction, reset title bar and directory */ + if (!x->gl_owner) ++ { + canvas_rename(x, filename, dir); ++ /* update window list in case Save As changed the window name */ ++ canvas_updatewindowlist(); ++ } + post("saved to: %s/%s", dir->s_name, filename->s_name); + canvas_dirty(x, 0); + canvas_reload(filename, dir, &x->gl_gobj); |