[jabref] 04/07: disable MacAdapter class

Tony Mancill tmancill at moszumanska.debian.org
Mon Nov 28 06:40:57 UTC 2016


This is an automated email from the git hooks/post-receive script.

tmancill pushed a commit to branch dev
in repository jabref.

commit db4002a79b4c9a7de6ce176626a43605af2537f5
Author: tony mancill <tmancill at debian.org>
Date:   Sun Nov 27 19:30:48 2016 -0800

    disable MacAdapter class
---
 debian/patches/disable_macadapter.patch | 46 +++++++++++++++++++++++++++++++++
 debian/patches/series                   |  1 +
 2 files changed, 47 insertions(+)

diff --git a/debian/patches/disable_macadapter.patch b/debian/patches/disable_macadapter.patch
new file mode 100644
index 0000000..03584d3
--- /dev/null
+++ b/debian/patches/disable_macadapter.patch
@@ -0,0 +1,46 @@
+--- a/src/main/java/osx/macadapter/MacAdapter.java
++++ b/src/main/java/osx/macadapter/MacAdapter.java
+@@ -14,6 +14,7 @@
+     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+ 
++/*
+ import java.io.File;
+ import java.util.List;
+ 
+@@ -32,7 +33,10 @@
+ import com.apple.eawt.PreferencesHandler;
+ import com.apple.eawt.QuitHandler;
+ import com.apple.eawt.QuitResponse;
++*/
+ 
++public class MacAdapter {
++/*
+ public class MacAdapter implements PreferencesHandler, AboutHandler, QuitHandler, OpenFilesHandler, AppReOpenedListener {
+ 
+     private JabRefFrame parentFrame;
+@@ -96,4 +100,5 @@
+     public void appReOpened(AppEvent.AppReOpenedEvent appReOpenedEvent) {
+         parentFrame.setVisible(true);
+     }
++*/
+ }
+--- a/src/main/java/net/sf/jabref/gui/JabRefFrame.java
++++ b/src/main/java/net/sf/jabref/gui/JabRefFrame.java
+@@ -654,6 +654,8 @@
+         //Note: The registration of Apple event is at the end of initialization, because
+         //if the events happen too early (ie when the window is not initialized yet), the
+         //opened (double-clicked) documents are not displayed.
++
++        /* Debian: not applicable
+         if (OS.OS_X) {
+             try {
+                 new MacAdapter().registerMacEvents(this);
+@@ -661,6 +663,7 @@
+                 LOGGER.fatal("Could not interface with Mac OS X methods.", e);
+             }
+         }
++        */
+ 
+     }
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 16fe31b..a271070 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -6,3 +6,4 @@
 gradle_build.patch
 disable_automatic_upgrade_check.patch
 xjc.patch
+disable_macadapter.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jabref.git



More information about the pkg-java-commits mailing list