From: msweet Date: Fri, 18 Dec 2015 22:07:41 +0000 (+0000) Subject: Wrap all uses of notify_post with #ifdef's. X-Git-Tag: v2.2b1~134 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=684d1464e6ade8ebbe2196f1e041a5c8d0d62918;p=thirdparty%2Fcups.git Wrap all uses of notify_post with #ifdef's. git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@13025 a1ca3aef-8c08-0410-bb20-df032aa958be --- diff --git a/cups/dest.c b/cups/dest.c index 2affdb22cd..0ca5b33398 100644 --- a/cups/dest.c +++ b/cups/dest.c @@ -402,7 +402,10 @@ _cupsAppleSetDefaultPaperID( { CFPreferencesSetAppValue(kDefaultPaperIDKey, name, kCUPSPrintingPrefs); CFPreferencesAppSynchronize(kCUPSPrintingPrefs); + +# ifdef HAVE_NOTIFY_POST notify_post("com.apple.printerPrefsChange"); +# endif /* HAVE_NOTIFY_POST */ } @@ -490,7 +493,10 @@ _cupsAppleSetDefaultPrinter( CFPreferencesSetAppValue(kLastUsedPrintersKey, newlocations, kCUPSPrintingPrefs); CFPreferencesAppSynchronize(kCUPSPrintingPrefs); + +# ifdef HAVE_NOTIFY_POST notify_post("com.apple.printerPrefsChange"); +# endif /* HAVE_NOTIFY_POST */ } if (newlocations) @@ -519,7 +525,10 @@ _cupsAppleSetUseLastPrinter( uselast ? kCFBooleanTrue : kCFBooleanFalse, kCUPSPrintingPrefs); CFPreferencesAppSynchronize(kCUPSPrintingPrefs); + +# ifdef HAVE_NOTIFY_POST notify_post("com.apple.printerPrefsChange"); +# endif /* HAVE_NOTIFY_POST */ } #endif /* __APPLE__ */