diff options
| author | Manolo Gouy <Manolo> | 2017-12-04 17:39:19 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2017-12-04 17:39:19 +0000 |
| commit | 8612fea27712a41d7e8167cef964d7098b1d733d (patch) | |
| tree | 4a92a869d02394605364270525c467022d2fd24d /src/Fl_cocoa.mm | |
| parent | 6586b77975636da3d96d277d7556a8bbc8d0031b (diff) | |
Make Fl_Sys_Menu_Bar class usable in static initializers.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12579 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_cocoa.mm')
| -rw-r--r-- | src/Fl_cocoa.mm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index d48b5308e..e550aee2e 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -50,6 +50,7 @@ extern "C" { #include "drivers/Cocoa/Fl_Cocoa_Screen_Driver.H" #include "drivers/Cocoa/Fl_Cocoa_Window_Driver.H" #include "drivers/Darwin/Fl_Darwin_System_Driver.H" +#include "drivers/Cocoa/Fl_MacOS_Sys_Menu_Bar_Driver.H" #include <stdio.h> #include <stdlib.h> #include <unistd.h> @@ -2907,6 +2908,7 @@ Fl_X* Fl_Cocoa_Window_Driver::makeWindow() fl_open_display(); NSInteger winlevel = NSNormalWindowLevel; NSUInteger winstyle; + Fl_MacOS_Sys_Menu_Bar_Driver::new_driver(); // useful if run in a static initializer Fl_Window* w = pWindow; if (w->parent()) { w->border(0); |
