I was just browsing through g_canvas.c and saw there's a "dirty" message in 0.42 you can use to manually set the dirty flag for a canvas. So once you're abstraction has initialized, just send it a "dirty 0" message.
Any reason this message hasn't been documented yet? Or was it documented somewhere and I just missed it? -Jonathan --- On Thu, 9/23/10, Husk 00 <[email protected]> wrote: > From: Husk 00 <[email protected]> > Subject: Re: [PD] [Pd-announce] mediagrid v0.1 > To: "Jonathan Wilkes" <[email protected]> > Cc: "[email protected] List" <[email protected]>, "Hans-Christoph Steiner" > <[email protected]> > Date: Thursday, September 23, 2010, 12:28 PM > On Thu, Sep 23, 2010 at 2:54 AM, > Jonathan Wilkes <[email protected]> > wrote: > > That's really nice! > > > thanks! > > > Unfortunately when your abstraction initializes > itself, something > > you are doing is setting the dirty flag. This means > for each > > instance you'll get a dialog asking if you want to > save the > > changes. (I think it's because you are sending a > > Yes, I know this problem and I didn't know that in 0.43 > it's solved > (thanks Joao!). For this reason when I use a mediagrid > istance with a > lot of elements I usually use a killall -9 command (by > shell object or > popen) in order to close pd. I know it's not elegant but it > works. > Waiting for 0.43 ;) > > > donecanvasdialog message to a canvas somewhere.) > > > Yes, I use this message for draw the GOP. So I guess is > this. > > > This is on Pd version 0.42.5-extended in Ubuntu > Hardy. > > > > I think matju has an object called [#many] in Gridflow > that is > > an abstraction that dynamically creates GUI content on > a GOP. > > I can't remember if it sets the dirty flag or not-- if > not, you > > might see how he does it and use whatever method he > uses. > > > > -Jonathan > > > > Thanks Jonathan for the suggestion. I know and apreciate > gridflow, but > I need to keep mediagrid easy to share (and right now I > have two > "important" dependence like pyext and ffmpeg) > > husk > > > > --- On Wed, 9/22/10, Hans-Christoph Steiner <[email protected]> > wrote: > > > >> From: Hans-Christoph Steiner <[email protected]> > >> Subject: Re: [PD] [Pd-announce] mediagrid v0.1 > >> To: "[email protected] > List" <[email protected]> > >> Date: Wednesday, September 22, 2010, 11:34 PM > >> > >> Wow, the GUI is impressive, that's Pd? > Downloading > >> now. You should post this on the library > downloads > >> page: > >> > >> http://puredata.info/community/projects/software/ > >> > >> Also, you don't need httpS, http just works and > without the > >> certificate warning: > >> > >> http://code.autistici.org/trac/planetQ/wiki/mediagrid > >> > >> .hc > >> > >> On Sep 22, 2010, at 2:10 PM, Husk 00 wrote: > >> > >> > Hi list, > >> > just to share this abstraction I'm using in > my recent > >> patches. > >> > Mediagrid is a graphical file chooser. > >> > It is based on videogrid external from Sergi > Lario and > >> Lluis Gomez i Bigorda. > >> > Apart to be an abstraction and not an > external, the > >> main difference is > >> > that mediagrid is cross-platform and you can > manage > >> audio file also > >> > and no just video or images. > >> > Here more infos and download: > >> > https://code.autistici.org/trac/planetQ/wiki/mediagrid > >> > > >> > cheers > >> > husk > >> > > >> > > >> > --when Art become pratical > >> > we call it technology. > >> > > >> > When Technology become useless > >> > we call it Art > >> > > >> > www.estereotips.net > >> > > >> > > _______________________________________________ > >> > Pd-announce mailing list > >> > [email protected] > >> > http://lists.puredata.info/listinfo/pd-announce > >> > >> > >> > ---------------------------------------------------------------------------- > >> > >> I hate it when they say, "He gave his life for > his > >> country." Nobody gives their life for anything. > >> We steal the lives of these kids. -Admiral Gene > >> LeRocque > >> > >> > >> _______________________________________________ > >> [email protected] > >> mailing list > >> UNSUBSCRIBE and account-management -> > >> http://lists.puredata.info/listinfo/pd-list > >> > > > > > > > > > > _______________________________________________ > > [email protected] > mailing list > > UNSUBSCRIBE and account-management -> > > http://lists.puredata.info/listinfo/pd-list > > > > > > -- > when Art become pratical > we call it technology. > > When Technology become useless > we call it Art > > www.estereotips.net > _______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
