summaryrefslogtreecommitdiffstats
path: root/external/languagetool/MessageBox-apichange.patch
blob: ceea259b88acd3f228154b114bbe15a3f492213e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--- misc/build/JLanguageTool-1.7.0/src/java/org/languagetool/openoffice/OOoAboutDialog.java	2013-07-11 13:33:26.681387525 +0100
+++ misc/build/JLanguageTool-1.7.0/src/java/org/languagetool/openoffice/OOoAboutDialog.java	2013-07-11 13:34:46.666424549 +0100
@@ -19,6 +19,7 @@
 package org.languagetool.openoffice;
 
 import com.sun.star.awt.Rectangle;
+import com.sun.star.awt.MessageBoxType;
 import com.sun.star.awt.XMessageBox;
 import com.sun.star.awt.XMessageBoxFactory;
 import com.sun.star.awt.XWindowPeer;
@@ -49,16 +50,14 @@
         .getString("guiMenuAbout"));
     final XMessageBoxFactory messageBoxFactory = (XMessageBoxFactory) UnoRuntime
         .queryInterface(XMessageBoxFactory.class, winPeer.getToolkit());
-    final Rectangle messageBoxRectangle = new Rectangle();
     final XMessageBox box = messageBoxFactory
         .createMessageBox(
             winPeer,
-            messageBoxRectangle,
-            "infobox",
+            MessageBoxType.INFOBOX,
             0,
             aboutDialogTitle,
             getAboutText());
     box.execute();
   }
   
-}
\ No newline at end of file
+}