<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.18.3">
</HEAD>
<BODY>
On Tue, 2008-08-12 at 11:13 +0800, Chris McCormick wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
&gt; &gt;On Tue, Aug 05, 2008 at 06:27:54PM -0500, Dan Wilcox wrote:
&gt; &gt;&gt;I've been using s-arranger as a song sequencer for a while and  
&gt; &gt;&gt;it's been
&gt; &gt;&gt;great.  As of newer pd-extended 0.40.3 builds, s-arranger objects  
&gt; &gt;&gt;have
&gt; &gt;&gt;been asking to save their contents (&quot;Discard changes ...?&quot;) on patch
&gt; &gt;&gt;close, as if I had opened them and saved to base s-arranger, not that
&gt; &gt;&gt;instance.

&gt; On Aug 9, 2008, at 4:17 AM, Chris McCormick wrote:
&gt; &gt;When I follow your instructions I don't get the discard changes  
&gt; &gt;dialog.
&gt; &gt;Seems to work fine for me. I wonder if there is an older, crappier
&gt; &gt;version of it in pd-extended?  I'll try to get the version in
&gt; &gt;pd-extended updated some time soon.

On Mon, Aug 11, 2008 at 04:56:59PM -0400, Hans-Christoph Steiner wrote:
&gt; I am cc'ing the list, since this is probably of general interest.
&gt; 
&gt; This might be related to the dirty flag being set when an IEMGUI's  
&gt; properties are changed.  It was changed it so that when the  
&gt; properties of an IEMGUI was changed, the dirty flag was set.  I  
&gt; suppose there should be differentiation between it happening with  
&gt; messages and it happening when the user makes the change in the  
&gt; Properties panel.

That can't be it because [s-arranger] doesn't have any IEMGUIs that hold
state. There are two possibilities:

1. Some older bugger version of s-arranger is in pd-extended because I
haven't checked my changes into the official repository for ages.
Because of the way that s-arranger is patched, I find this less likely
than:

2. There is a bug in pd-extended.

Chris.
</PRE>
</BLOCKQUOTE>
<BR>
I think its the donecanvasdialog message.&nbsp; If you dont send that message to resize the gop, then the patch closes properly.&nbsp; So the act of resizing the gop sets the dirty bit ... which makes sense of course except when you're creating guis dynamically within objects.&nbsp; Was this updated in 0.40.3 because I only noticed this occurring recently.<BR>
<BR>
I checked s-arranger, if you open it up and remove the control line to the 2 resize messages in [pd setup] it works properly. <BR>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
---<BR>
Dan Wilcox<BR>
<A HREF="http://www.robotcowboy.com">robotcowboy.com</A>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>