Hi,

Germán Arias wrote:
Just until now I remember this problem.

The most easy and logic (I think) solution, is make to PC use a different 
extension for each type of project. This is the BIG problem with PC. Other 
document based apps (Ink and Gorm) works perfectly with native panels and don't 
require changes, and you can switch the theme without problems. The changes I 
did in WinUXTheme achieves this. With PC the native panels don't have idea 
about how handle the differents documents because all use the same extension. 
So, for this reason PC needs special tweaks.
your change in PC is "windows specific" which is not good. I have backed it out and attach it to this mail, so ti remains archived for the future. Sorry for now.

Without these changes, PC now works again for me (gnustep theme) and I can both build and launch projects.

A theme-dependent, not windows-dependent in the code solution must be seeked. Eventually after a release.

Riccardo
Index: Framework/PCProjectManager.m
===================================================================
--- Framework/PCProjectManager.m        (revision 38096)
+++ Framework/PCProjectManager.m        (working copy)
@@ -812,9 +812,6 @@
   NSString  *projectType;
   PCProject *project;
 
-#ifdef WIN32
-  types = [NSArray arrayWithObject: @"pcproj"];
-#endif
 
   [self createProjectTypeAccessaryView];
   
@@ -846,11 +843,7 @@
            }
        }
       
-#ifdef WIN32
-      projectType = [(NSMenuItem *)sender title];
-#else
       projectType = [projectTypePopup titleOfSelectedItem];
-#endif
 
       if (!(project = [self createProjectOfType:projectType path:filePath]))
        {
Index: PCAppController.m
===================================================================
--- PCAppController.m   (revision 38096)
+++ PCAppController.m   (working copy)
@@ -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
 }
 
 //============================================================================
_______________________________________________
Discuss-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to