[gedit] Fix compilation on macOS with gtk 3.24.14
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Fix compilation on macOS with gtk 3.24.14
- Date: Wed, 11 Mar 2020 18:17:35 +0000 (UTC)
commit c6ca8a0baaae5ac39582a253aab4437f9b478e8e
Author: Tom Schoonjans <Tom Schoonjans rfi ac uk>
Date: Fri Mar 6 14:51:10 2020 +0000
Fix compilation on macOS with gtk 3.24.14
gedit/gedit-app-osx.m | 4 ++++
gedit/gedit-file-chooser-dialog-osx.m | 2 ++
2 files changed, 6 insertions(+)
---
diff --git a/gedit/gedit-app-osx.m b/gedit/gedit-app-osx.m
index 07774cc53..5df1b94da 100644
--- a/gedit/gedit-app-osx.m
+++ b/gedit/gedit-app-osx.m
@@ -32,6 +32,10 @@
#include "gedit-commands.h"
#include "gedit-commands-private.h"
#include "gedit-recent.h"
+#import <AppKit/AppKit.h>
+
+NSWindow *gdk_quartz_window_get_nswindow(GdkWindow *window);
+NSEvent *gdk_quartz_event_get_nsevent(GdkEvent *event);
static GeditWindow *
ensure_window (GeditAppOSX *app,
diff --git a/gedit/gedit-file-chooser-dialog-osx.m b/gedit/gedit-file-chooser-dialog-osx.m
index ecfbee62a..f897c81cd 100644
--- a/gedit/gedit-file-chooser-dialog-osx.m
+++ b/gedit/gedit-file-chooser-dialog-osx.m
@@ -29,6 +29,8 @@
#include "gedit-encodings-dialog.h"
#include "gedit-utils.h"
+NSWindow *gdk_quartz_window_get_nswindow(GdkWindow *window);
+
struct _GeditFileChooserDialogOSX
{
GObject parent_instance;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]