diff --git a/Applications/TextMate/resources/English.lproj/MainMenu.xib b/Applications/TextMate/resources/English.lproj/MainMenu.xib
index 32e9e346..27b4c2c3 100644
--- a/Applications/TextMate/resources/English.lproj/MainMenu.xib
+++ b/Applications/TextMate/resources/English.lproj/MainMenu.xib
@@ -2568,14 +2568,6 @@
39
-
showHelp:
@@ -3824,6 +3816,14 @@
792
+
+
+ runPageLayout:
+
+
+
+ 850
+
initialFirstResponder
@@ -6262,7 +6262,7 @@
- 846
+ 850
@@ -6279,6 +6279,7 @@
orderFrontFindPanel:
orderFrontGoToLinePanel:
performGoToLine:
+ runPageLayout:
showBundleEditor:
showBundleItemChooser:
showPreferences:
@@ -6293,6 +6294,7 @@
id
id
id
+ id
@@ -6304,6 +6306,7 @@
orderFrontFindPanel:
orderFrontGoToLinePanel:
performGoToLine:
+ runPageLayout:
showBundleEditor:
showBundleItemChooser:
showPreferences:
@@ -6330,6 +6333,10 @@
performGoToLine:
id
+
+ runPageLayout:
+ id
+
showBundleEditor:
id
diff --git a/Applications/TextMate/src/AppController.h b/Applications/TextMate/src/AppController.h
index c2414483..7993696c 100644
--- a/Applications/TextMate/src/AppController.h
+++ b/Applications/TextMate/src/AppController.h
@@ -39,6 +39,8 @@ namespace find_tags
- (IBAction)newDocumentAndActivate:(id)sender;
- (IBAction)openDocumentAndActivate:(id)sender;
+
+- (IBAction)runPageLayout:(id)sender;
@end
@interface AppController (Documents)
diff --git a/Applications/TextMate/src/AppController.mm b/Applications/TextMate/src/AppController.mm
index 5086d771..a2a24698 100644
--- a/Applications/TextMate/src/AppController.mm
+++ b/Applications/TextMate/src/AppController.mm
@@ -496,6 +496,11 @@ BOOL HasDocumentWindow (NSArray* windows)
// = Printing =
// ============
+- (IBAction)runPageLayout:(id)sender
+{
+ [[NSPageLayout pageLayout] runModal];
+}
+
- (void)printDocument:(id)sender
{
NSView* webView = [NSApp targetForAction:@selector(print:)];