[PD-dev] [ pure-data-Patches-1939017 ] Unix: hidden files/folders in tk open/save dialogs

SourceForge.net noreply at sourceforge.net
Tue Sep 1 05:09:06 CEST 2009


Patches item #1939017, was opened at 2008-04-09 19:47
Message generated for change (Settings changed) made by eighthave
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=478072&aid=1939017&group_id=55736

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: puredata
Group: feature
>Status: Closed
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: Dan Wilcox (danomatika)
Assigned to: Nobody/Anonymous (nobody)
Summary: Unix: hidden files/folders in tk open/save dialogs

Initial Comment:
Howdy,

After some discussion on the pd list, I'd like to submit a patch to pd.tk that sets the tk variables for hiding hidden (.filename) files/folders in the Open/Save/Save As dialog boxes.  It also adds a button to show said hidden files.

In Windows and Mac, this behavior is inherited from the OS, so the associated code is only called for Unix environments.

I have tested this on my installation of pd-extended 0.39.3 and I believe this is a easy and useful addition to pd-vanilla.  I will submit this patch to pd-extended as well.

I haven't submitted a patch before, so forgive me if I somehow screw up the file.

--
Dan Wilcox
robotcowboy.com

----------------------------------------------------------------------

>Comment By: Hans-Christoph Steiner (eighthave)
Date: 2009-08-31 23:09

Message:
accepted by Miller in the first 0.43 SVN commit, the code comes from the
GUI rewrite:

http://pure-data.svn.sourceforge.net/viewvc/pure-data?view=rev&revision=11934


----------------------------------------------------------------------

Comment By: Hans-Christoph Steiner (eighthave)
Date: 2008-04-15 17:52

Message:
Logged In: YES 
user_id=27104
Originator: NO

I see now, this is a 'recommended' kludge :)

http://groups.google.com/group/comp.lang.tcl/tree/browse_frm/month/2006-03/488704329d14c644

I checked it into branches/pd-extended/0.40/.

----------------------------------------------------------------------

Comment By: Dan Wilcox (danomatika)
Date: 2008-04-15 17:48

Message:
Logged In: YES 
user_id=2032867
Originator: YES

Yeah as for the catch part, it doesn't actually open the panel, at least
in a noticeable way.  I'm not a tk/tcl expert at all, but from what I've
read, the panel needs to be called before changing the variables will hold.
 It's a sort of "soft" open.

----------------------------------------------------------------------

Comment By: Hans-Christoph Steiner (eighthave)
Date: 2008-04-15 17:38

Message:
Logged In: YES 
user_id=27104
Originator: NO

Does the "catch {tk_getOpenFile -with-invalid-argument}" part open the
panel?  Is seems like a kludge.  I suspect there is probably a cleaner way
to make those settings stick.

As for submitting a patch, this is find.  I think that making the changes
to the SVN-controlled sources, then using 'svn diff -x -w' makes the
cleanest patches in the easiest way.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=478072&aid=1939017&group_id=55736




More information about the Pd-dev mailing list