Ticket #34805: patch-sparkle.diff
File patch-sparkle.diff, 2.1 KB (added by mojca (Mojca Miklavec), 12 years ago) |
---|
-
src/osx_helpers.h
33 33 extern "C" { 34 34 #endif 35 35 36 #ifdef USE_SPARKLE 36 37 // Sparkle helpers 37 38 void Sparkle_Initialize(); 38 39 void Sparkle_AddMenuItem(const char *title); 39 40 void Sparkle_Cleanup(); 41 #endif // USE_SPARKLE 40 42 41 43 // Spell checking 42 44 int SpellChecker_SetLang(const char *lang); -
src/osx_helpers.m
33 33 #import <AppKit/NSButton.h> 34 34 #import <AppKit/NSSpellChecker.h> 35 35 36 #ifdef USE_SPARKLE 36 37 #import <Sparkle/Sparkle.h> 37 38 38 39 // -------------------------------------------------------------------------------- … … void Sparkle_Cleanup() 75 76 [[NSUserDefaults standardUserDefaults] synchronize]; 76 77 [pool release]; 77 78 } 78 79 #endif // USE_SPARKLE 79 80 80 81 // -------------------------------------------------------------------------------- 81 82 // Spell checking -
macosx/make-bundle
for i in $top_srcdir/locales/*.mo ; do 85 85 cp $i $bundle/Contents/Resources/locale/$lang/LC_MESSAGES/poedit.mo 86 86 done 87 87 88 if [ -n "$WX_ROOT" ] ; then 89 (cd $WX_ROOT/share ; tar -c locale) | \ 90 (cd $bundle/Contents/Resources ; tar -x) 91 else 92 echo "WARNING: not copying wxWidgets message catalogs, point WX_ROOT" >&2 93 echo " environment variable to a directory with installed wx" >&2 94 fi 88 # TODO: there is no <lang>/LC_MESSAGES/wxstd.mo in wxWidgets-devel 89 # 90 #if [ -n "$WX_ROOT" ] ; then 91 # (cd $WX_ROOT/share ; tar -c locale) | \ 92 # (cd $bundle/Contents/Resources ; tar -x) 93 #else 94 # echo "WARNING: not copying wxWidgets message catalogs, point WX_ROOT" >&2 95 # echo " environment variable to a directory with installed wx" >&2 96 #fi 95 97 96 98 # 3rd party frameworks: 99 if [ "x$SPARKLE_FRAMEWORK" != "xno" ] ; then 97 100 if [ -n "$SPARKLE_FRAMEWORK" ] ; then 98 101 mkdir -p $bundle/Contents/Frameworks 99 102 cp -R $SPARKLE_FRAMEWORK $bundle/Contents/Frameworks … … else 101 104 echo "WARNING: not copying Sparkle framework, point SPARKLE_FRAMEWORK" >&2 102 105 echo " environment variable to it" >&2 103 106 fi 107 fi 104 108 105 109 echo "Installed message catalogs:" 106 110 find $bundle/Contents/Resources/locale -type f