Fix #132467 - Now that the Mac PutFile dialogs support a format menu allow pre-selecting the menu item. r=ccarlen,sr=sfraser,a=scc
git-svn-id: svn://10.0.0.236/trunk@117395 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
f483783b5d
commit
a7953d7749
@ -235,6 +235,17 @@ pascal void nsFilePicker :: FileDialogEventHandlerProc(NavEventCallbackMessage m
|
||||
}
|
||||
break;
|
||||
|
||||
case kNavCBStart:
|
||||
{
|
||||
NavMenuItemSpec menuItem;
|
||||
menuItem.version = kNavMenuItemSpecVersion;
|
||||
menuItem.menuType = self->mSelectedType;
|
||||
menuItem.menuCreator = self->mSelectedType;
|
||||
menuItem.menuItemName[0] = 0;
|
||||
(void)::NavCustomControl(cbRec->context, kNavCtlSelectCustomType, &menuItem);
|
||||
}
|
||||
break;
|
||||
|
||||
case kNavCBPopupMenuSelect:
|
||||
// Format menu boinked - see what's happening
|
||||
if (self)
|
||||
@ -1125,7 +1136,7 @@ NS_IMETHODIMP nsFilePicker::GetFilterIndex(PRInt32 *aFilterIndex)
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
//
|
||||
// Set the filter index - currently not used but here to balance GetFilterIndex
|
||||
// Set the filter index
|
||||
//
|
||||
//-------------------------------------------------------------------------
|
||||
NS_IMETHODIMP nsFilePicker::SetFilterIndex(PRInt32 aFilterIndex)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user