[PD-cvs] SF.net SVN: pure-data: [9742] trunk/packages/patches/ update_window_list_on_saveas-0.41.4.patch

eighthave at users.sourceforge.net eighthave at users.sourceforge.net
Mon Apr 28 22:43:19 CEST 2008


Revision: 9742
          http://pure-data.svn.sourceforge.net/pure-data/?rev=9742&view=rev
Author:   eighthave
Date:     2008-04-28 13:43:19 -0700 (Mon, 28 Apr 2008)

Log Message:
-----------
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.

Added Paths:
-----------
    trunk/packages/patches/update_window_list_on_saveas-0.41.4.patch

Added: trunk/packages/patches/update_window_list_on_saveas-0.41.4.patch
===================================================================
--- trunk/packages/patches/update_window_list_on_saveas-0.41.4.patch	                        (rev 0)
+++ trunk/packages/patches/update_window_list_on_saveas-0.41.4.patch	2008-04-28 20:43:19 UTC (rev 9742)
@@ -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);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Pd-cvs mailing list