mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-03-13 14:13:02 +00:00
Revert windows-specific hacks by German to make project-type choice work. They would crash when using PC without the WinUX theme.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@38111 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5dcf71e0a8
commit
90b0b362c8
3 changed files with 6 additions and 41 deletions
|
@ -1,3 +1,9 @@
|
|||
2014-10-07 Riccardo Mottola <rm@gnu.org>
|
||||
|
||||
* Framework/PCProjectManager.m
|
||||
* PCAppController.m
|
||||
Revert windows-specific hacks by German to make project-type choice work. They would crash when using PC without the WinUX theme.
|
||||
|
||||
2014-09-08 German Arias <germanandre@gmx.es>
|
||||
|
||||
* Modules/Editors/ProjectCenter/Resources/LineJumper.gorm: Remove
|
||||
|
|
|
@ -812,9 +812,6 @@ NSString *PCActiveProjectDidChangeNotification = @"PCActiveProjectDidChange";
|
|||
NSString *projectType;
|
||||
PCProject *project;
|
||||
|
||||
#ifdef WIN32
|
||||
types = [NSArray arrayWithObject: @"pcproj"];
|
||||
#endif
|
||||
|
||||
[self createProjectTypeAccessaryView];
|
||||
|
||||
|
@ -846,11 +843,7 @@ NSString *PCActiveProjectDidChangeNotification = @"PCActiveProjectDidChange";
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef WIN32
|
||||
projectType = [(NSMenuItem *)sender title];
|
||||
#else
|
||||
projectType = [projectTypePopup titleOfSelectedItem];
|
||||
#endif
|
||||
|
||||
if (!(project = [self createProjectOfType:projectType path:filePath]))
|
||||
{
|
||||
|
|
|
@ -70,40 +70,6 @@
|
|||
{
|
||||
[menuController setAppController:self];
|
||||
[menuController setProjectManager:projectManager];
|
||||
|
||||
#ifdef WIN32
|
||||
NSMenuItem *item;
|
||||
NSMenu *typeMenu = [NSMenu new];
|
||||
|
||||
[[typeMenu addItemWithTitle: @"Aggregate"
|
||||
action: @selector(projectNew:)
|
||||
keyEquivalent: @""] setTarget: menuController];
|
||||
[[typeMenu addItemWithTitle: @"Application"
|
||||
action: @selector(projectNew:)
|
||||
keyEquivalent: @""] setTarget: menuController];
|
||||
[[typeMenu addItemWithTitle: @"Bundle"
|
||||
action: @selector(projectNew:)
|
||||
keyEquivalent: @""] setTarget: menuController];
|
||||
[[typeMenu addItemWithTitle: @"Framework"
|
||||
action: @selector(projectNew:)
|
||||
keyEquivalent: @""] setTarget: menuController];
|
||||
[[typeMenu addItemWithTitle: @"Library"
|
||||
action: @selector(projectNew:)
|
||||
keyEquivalent: @""] setTarget: menuController];
|
||||
[[typeMenu addItemWithTitle: @"Resource Set"
|
||||
action: @selector(projectNew:)
|
||||
keyEquivalent: @""] setTarget: menuController];
|
||||
[[typeMenu addItemWithTitle: @"Tool"
|
||||
action: @selector(projectNew:)
|
||||
keyEquivalent: @""] setTarget: menuController];
|
||||
|
||||
item = [[[[NSApp mainMenu] itemWithTitle: _(@"Project")] submenu]
|
||||
itemWithTitle: _(@"New...")];
|
||||
[item setTitle: _(@"New")];
|
||||
[item setKeyEquivalent: @""];
|
||||
[item setSubmenu: typeMenu];
|
||||
[typeMenu release];
|
||||
#endif
|
||||
}
|
||||
|
||||
//============================================================================
|
||||
|
|
Loading…
Reference in a new issue