ecere:FileDialog:ide:documentor: use native decorations on all platforms
authorRejean Loyer <rejean.loyer@gmail.com>
Mon, 15 Aug 2011 01:22:58 +0000 (21:22 -0400)
committerRejean Loyer <rejean.loyer@gmail.com>
Mon, 15 Aug 2011 01:22:58 +0000 (21:22 -0400)
documentor/src/Documentor.ec
ecere/src/gui/dialogs/FileDialog.ec
ide/src/ide.ec

index efe60de..e12e6b5 100644 (file)
@@ -1992,6 +1992,8 @@ class MainForm : Window
    hasMinimize = true;
    text = "API Documentation Browser";
 
+   nativeDecorations = true;
+
    BitmapResource icons[CodeObjectType];
 
    MainForm()
index 89b8b6e..89820bd 100644 (file)
@@ -248,9 +248,7 @@ public class FileDialog : Window
    borderStyle = sizable;
    tabCycle = true;
    autoCreate = false;
-#ifdef __WIN32__
    nativeDecorations = true;
-#endif
    minClientSize = { 500, 300 };
 
 public:
index 5cfb387..1aad023 100644 (file)
@@ -199,10 +199,7 @@ void DrawLineMarginIcon(Surface surface, BitmapResource resource, int line, int
 
 class IDE : Window
 {
-#if defined(__WIN32__)
-   // Native decorations on Windows works pretty well now! Let's get them going good on X and make it the default there as well.
    nativeDecorations = true;
-#endif
    icon = { ":icon.png" };
    text = titleECEREIDE;
    background = Color { 85, 85, 85 };