Create new patch 04_HONOR_DISPLAY_PROPERTIES.dpatch.
authorgregor herrmann <gregoa@debian.org>
Tue, 9 Oct 2007 16:57:36 +0000 (16:57 -0000)
committergregor herrmann <gregoa@debian.org>
Tue, 9 Oct 2007 16:57:36 +0000 (16:57 -0000)
debian/changelog
debian/patches/00list
debian/patches/04_HONOR_DISPLAY_PROPERTIES.dpatch [new file with mode: 0755]

index 9d7fc1bab112aa86e9c99a8fbed89d8b9f3ef3d3..3e12a76e547d5f2fcbc2cb00d25c5bf383f5b399 100644 (file)
@@ -8,8 +8,9 @@ jabref (2.3~beta3-1) UNRELEASED; urgency=low
     debian/rules. Move ant from Build-Depends-Indep to Build-Depends.
   * Update patch 03_external_apps.
   * Remove patch 04_logger, not needed anymore.
+  * Create new patch 04_HONOR_DISPLAY_PROPERTIES.dpatch.
 
- -- gregor herrmann <gregor+debian@comodo.priv.at>  Tue, 09 Oct 2007 18:44:30 +0200
+ -- gregor herrmann <gregor+debian@comodo.priv.at>  Tue, 09 Oct 2007 18:56:21 +0200
 
 jabref (2.3~beta2-1) unstable; urgency=low
 
index eaab941117fe377bd0ced1ff13c92e5d258c35d4..4626e1dd1dd18eb422833c95b89f8c8f49c8e262 100644 (file)
@@ -1,2 +1,3 @@
 01_free_javac
 03_external_apps
+04_HONOR_DISPLAY_PROPERTIES
diff --git a/debian/patches/04_HONOR_DISPLAY_PROPERTIES.dpatch b/debian/patches/04_HONOR_DISPLAY_PROPERTIES.dpatch
new file mode 100755 (executable)
index 0000000..546b558
--- /dev/null
@@ -0,0 +1,26 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 04_HONOR_DISPLAY_PROPERTIES.dpatch by  <gregor+debian@comodo.priv.at>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: JEditorPane.HONOR_DISPLAY_PROPERTIES not understood by java-gcj-compat-dev ...
+
+@DPATCH@
+diff -urNad jabref~/src/java/net/sf/jabref/JabRefMain.java jabref/src/java/net/sf/jabref/JabRefMain.java
+--- jabref~/src/java/net/sf/jabref/JabRefMain.java     2007-10-08 21:51:47.000000000 +0200
++++ jabref/src/java/net/sf/jabref/JabRefMain.java      2007-10-09 18:55:12.000000000 +0200
+@@ -109,7 +109,6 @@
+                 "We are sorry for the trouble and thanks for reporting problems with JabRef!</html>");\r
+             pane.setEditable(false);\r
+             pane.setOpaque(false);\r
+-            pane.putClientProperty(JEditorPane.HONOR_DISPLAY_PROPERTIES, Boolean.TRUE);\r
+             \r
+             Component componentToDisplay;\r
+             if (pane.getPreferredSize().getHeight() > 700){\r
+@@ -157,7 +156,6 @@
+                 "<p>For more information visit <b>http://jabref.sf.net/faq.php</b>.</p></html>");\r
+             pane.setEditable(false);\r
+             pane.setOpaque(false);\r
+-            pane.putClientProperty(JEditorPane.HONOR_DISPLAY_PROPERTIES, Boolean.TRUE);\r
+             \r
+             JOptionPane.showMessageDialog(null, pane, "Insufficient Java Version Installed", JOptionPane.ERROR_MESSAGE);\r
+         }\r