diff -Nur Jubler-3.9.0/build.xml Jubler-3.9.0_patched/build.xml --- Jubler-3.9.0/build.xml 2008-05-14 16:13:30.000000000 +0300 +++ Jubler-3.9.0_patched/build.xml 2008-05-24 11:58:56.000000000 +0300 @@ -69,22 +69,6 @@ - - - - - - - @@ -397,9 +381,6 @@ - - - diff -Nur Jubler-3.9.0/resources/ffdecode/Makefile Jubler-3.9.0_patched/resources/ffdecode/Makefile --- Jubler-3.9.0/resources/ffdecode/Makefile 2008-03-18 00:01:03.000000000 +0200 +++ Jubler-3.9.0_patched/resources/ffdecode/Makefile 2008-05-24 12:00:50.000000000 +0300 @@ -12,9 +12,6 @@ # Name of the produced library PROJ=ffdecode -# Paths of include files -JAVA_HOME=${shell /bin/sh ../system/findjava.sh -j} - # Current Path CPATH=${shell pwd} @@ -106,7 +103,6 @@ CCPREF_NOS=${shell echo ${CCPREF} | sed -e 's/-$$//g' } DCONFIG=--with-mp4v2 --host=${CCPREF_NOS} -CC=${CCPREF}gcc RANLIB=${CCPREF}ranlib @@ -115,7 +111,7 @@ .SUFFIXES:.o .c .c.o: - ${CC} ${CFLAGS} ${GCCOPTS} -std=c99 -pedantic -O3 -Wall ${INCS} -I${JAVA_HOME}/include -I${JAVA_HOME}/include/${SYSTEM} -c -o $@ $? + ${CC} ${CFLAGS} ${GCCOPTS} -std=c99 -pedantic -Wall ${INCS} -I${JAVA_HOME}/include -I${JAVA_HOME}/include/${SYSTEM} -c -o $@ $? develop:javacheck @@ -157,7 +153,6 @@ ${LIBNAME}:${LIBRARYREQ} ${OBJS} ${RANLIBREQ} ${LD} ${GCCOPTS} -o ${LIBNAME} ${OBJS} ${LIBS} - ${STRIP} ${LIBNAME} clean: diff -Nur Jubler-3.9.0/src/com/panayotis/jubler/information/HelpBrowser.java Jubler-3.9.0_patched/src/com/panayotis/jubler/information/HelpBrowser.java --- Jubler-3.9.0/src/com/panayotis/jubler/information/HelpBrowser.java 2008-03-30 23:04:05.000000000 +0300 +++ Jubler-3.9.0_patched/src/com/panayotis/jubler/information/HelpBrowser.java 2008-05-24 11:58:56.000000000 +0300 @@ -47,7 +47,7 @@ history = new ArrayList(); - String initpage = "file:"+SystemFileFinder.getJublerAppPath()+"/help/jubler-faq.html"; + String initpage = "file:"+SystemFileFinder.getJublerAppPath()+"/../help/jubler-faq.html"; setPage(initpage); history.add(initpage); diff -Nur Jubler-3.9.0/src/com/panayotis/jubler/Main.java Jubler-3.9.0_patched/src/com/panayotis/jubler/Main.java --- Jubler-3.9.0/src/com/panayotis/jubler/Main.java 2008-03-30 23:04:08.000000000 +0300 +++ Jubler-3.9.0_patched/src/com/panayotis/jubler/Main.java 2008-05-24 11:58:56.000000000 +0300 @@ -84,17 +84,9 @@ /* Load arguments, in a mac way */ SystemDependent.initApplication(); - /* Check current version in a new thread */ - Thread versioncheck = new Thread() { - public void run() { - StaticJubler.initVersion(); - } - }; - new Jubler(); // Display initial Jubler window splash.dispose(); // Hide splash screen loader.start(); // initialize loader - versioncheck.start(); } diff -Nur Jubler-3.9.0/src/com/panayotis/jubler/os/SystemDependent.java Jubler-3.9.0_patched/src/com/panayotis/jubler/os/SystemDependent.java --- Jubler-3.9.0/src/com/panayotis/jubler/os/SystemDependent.java 2008-03-31 02:00:49.000000000 +0300 +++ Jubler-3.9.0_patched/src/com/panayotis/jubler/os/SystemDependent.java 2008-05-24 11:58:56.000000000 +0300 @@ -25,10 +25,6 @@ import static com.panayotis.jubler.i18n.I18N._; -import com.apple.eawt.Application; -import com.apple.eawt.ApplicationAdapter; -import com.apple.eawt.ApplicationEvent; - import com.panayotis.jubler.Jubler; import com.panayotis.jubler.Main; import com.panayotis.jubler.StaticJubler; @@ -110,10 +106,6 @@ public static void initApplication() { - /* In Linux this is a dummy function */ - if (isMacOSX()) { - JublerApp japp = new JublerApp(); - } } @@ -328,36 +320,3 @@ return home+".jubler/output.log"; } } - - - -class JublerApp extends Application { - public JublerApp() { - setEnabledPreferencesMenu(true); - addApplicationListener(new ApplicationHandler()); - } -} - -class ApplicationHandler extends ApplicationAdapter { - - public ApplicationHandler() {} - - public void handleAbout(ApplicationEvent event) { - StaticJubler.showAbout(); - event.setHandled(true); - } - - public void handlePreferences(ApplicationEvent event) { - Jubler.prefs.showPreferencesDialog(); - event.setHandled(true); - } - - public void handleQuit(ApplicationEvent event) { - StaticJubler.quitAll(); - event.setHandled(false); - } - - public void handleOpenFile(ApplicationEvent event) { - Main.asyncAddSubtitle(event.getFilename()); - } -} diff -Nur Jubler-3.9.0/src/com/panayotis/jubler/os/SystemFileFinder.java Jubler-3.9.0_patched/src/com/panayotis/jubler/os/SystemFileFinder.java --- Jubler-3.9.0/src/com/panayotis/jubler/os/SystemFileFinder.java 2008-03-30 23:04:04.000000000 +0300 +++ Jubler-3.9.0_patched/src/com/panayotis/jubler/os/SystemFileFinder.java 2008-05-24 11:58:56.000000000 +0300 @@ -58,15 +58,12 @@ } public static boolean loadLibrary(String name) { - File libfile = findFile("lib"+pathseparator+System.mapLibraryName(name)); - if (libfile!=null) { try { - System.load(libfile.getAbsolutePath()); + System.loadLibrary(name); return true; } catch (UnsatisfiedLinkError e) { e.printStackTrace(); } - } return false; }