summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwolfsuit <wolfsuit>2002-07-22 04:08:26 (GMT)
committerwolfsuit <wolfsuit>2002-07-22 04:08:26 (GMT)
commite013f51d592a99ad0cfebbb510c182070270c32e (patch)
tree4297a5d26431b11ad4db51dbcea514996fd754c4
parent0c26d08242fee1efff28cc5af0a3235211cf10f6 (diff)
downloadtk-e013f51d592a99ad0cfebbb510c182070270c32e.zip
tk-e013f51d592a99ad0cfebbb510c182070270c32e.tar.gz
tk-e013f51d592a99ad0cfebbb510c182070270c32e.tar.bz2
Set the kNavSupportPackages flag on the tk_getOpenFile dialog so you can
choose App packages.
-rw-r--r--macosx/tkMacOSXDialog.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/macosx/tkMacOSXDialog.c b/macosx/tkMacOSXDialog.c
index 53e8745..fd1d56a 100644
--- a/macosx/tkMacOSXDialog.c
+++ b/macosx/tkMacOSXDialog.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkMacOSXDialog.c,v 1.1.2.6 2002/07/21 11:11:55 vincentdarley Exp $
+ * RCS: @(#) $Id: tkMacOSXDialog.c,v 1.1.2.7 2002/07/22 04:08:26 wolfsuit Exp $
*/
#include <Carbon/Carbon.h>
@@ -777,7 +777,14 @@ NavServicesGetFile(
diagOptions.optionFlags += kNavNoTypePopup;
diagOptions.popupExtension = NULL;
}
-
+
+ /*
+ * This is required to allow App packages to be selectable in the
+ * file dialogs...
+ */
+
+ diagOptions.optionFlags += kNavSupportPackages;
+
diagOptions.clientName = CFStringCreateWithCString(NULL, "Wish", encoding);
if (message == NULL) {
diagOptions.message = NULL;