Revision: 9704 http://pure-data.svn.sourceforge.net/pure-data/?rev=9704&view=rev Author: eighthave Date: 2008-04-15 14:51:45 -0700 (Tue, 15 Apr 2008)
Log Message: ----------- checked in danomatika's patch 1939017 to allow hiding of hidden files on GNU/Linux open/save panels.
Modified Paths: -------------- branches/pd-extended/v0-40/pd/src/u_main.tk
Modified: branches/pd-extended/v0-40/pd/src/u_main.tk =================================================================== --- branches/pd-extended/v0-40/pd/src/u_main.tk 2008-04-15 21:31:19 UTC (rev 9703) +++ branches/pd-extended/v0-40/pd/src/u_main.tk 2008-04-15 21:51:45 UTC (rev 9704) @@ -66,7 +66,19 @@
# end Pd-extended font hacks -----------------------------
+# begin hack to hide hidden files/folder in tk browser on unix ---------- +if {$pd_nt == 0} { + # load the dialog once, otherwise setting the vars will not work + catch {tk_getOpenFile -with-invalid-argument}
+ # change the environment variables + namespace eval ::tk::dialog::file { + variable showHiddenBtn 1 + variable showHiddenVar 0 + } +} +# end hidden files/folder hack ------------------ + # Tearoff is set to true by default: set pd_tearoff 1
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.