summaryrefslogtreecommitdiff
path: root/src/Fl_cocoa.mm
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2022-02-03 21:56:42 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2022-02-03 21:57:47 +0100
commite73f9d466da578f31af7b24d5f016eaa927a5c91 (patch)
tree631c800c9d68f32c46529de4f632eef8e9097b87 /src/Fl_cocoa.mm
parentc483c4c5de8ffa732eac2a8710008a1c67a23955 (diff)
Rearrange "Print Button Window" functions
- Rename Fl_Screen_Driver::print_or_copy_window() to fl_print_or_copy_window() - Add header file src/print_button.h - Update dependencies
Diffstat (limited to 'src/Fl_cocoa.mm')
-rw-r--r--src/Fl_cocoa.mm3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm
index 1b86fd4f7..4518ba8bf 100644
--- a/src/Fl_cocoa.mm
+++ b/src/Fl_cocoa.mm
@@ -40,6 +40,7 @@ extern "C" {
#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 "print_button.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
@@ -3953,7 +3954,7 @@ static PrintWithTitlebarItem *print_with_titlebar_item = NULL;
{
bool grab_decoration = ([print_with_titlebar_item state] == NSOnState);
fl_lock_function();
- Fl_Screen_Driver::print_or_copy_window(Fl::first_window(), grab_decoration, 1);
+ fl_print_or_copy_window(Fl::first_window(), grab_decoration, 1);
fl_unlock_function();
}
- (void)terminate:(id)sender