[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Renaissance and 'Open recent' menu
From: |
Philippe Roussel |
Subject: |
Renaissance and 'Open recent' menu |
Date: |
Thu, 19 Apr 2012 22:21:43 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 |
Hi all,
I didn't find a way to add a working 'Open recent' menu to a Renaissance
application so here is a trivial working patch. It is specific to
GNUstep as I don't know how that would work on OS X.
Comments ?
Thanks,
Philippe
Index: renaissance/Source/TagLibrary/GSMarkupTagMenu.m
===================================================================
--- renaissance/Source/TagLibrary/GSMarkupTagMenu.m (révision 35089)
+++ renaissance/Source/TagLibrary/GSMarkupTagMenu.m (copie de travail)
@@ -52,6 +52,12 @@
@end
#endif
+#ifdef GNUSTEP
address@hidden NSDocumentController (RecentMenu)
+- (void) _setRecentDocumentsMenu: (NSMenu *)menu;
address@hidden
+#endif
+
@implementation GSMarkupTagMenu
+ (NSString *) tagName
{
@@ -159,6 +165,13 @@
{
[NSApp setServicesMenu: platformObject];
}
+ else if ([type isEqualToString: @"recent"])
+ {
+#ifdef GNUSTEP
+ [[NSDocumentController sharedDocumentController]
+ _setRecentDocumentsMenu: platformObject];
+#endif
+ }
else if ([type isEqualToString: @"font"])
{
/* The menu has already been created as font menu. */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Renaissance and 'Open recent' menu,
Philippe Roussel <=