--- a/finch/meson.build Tue Oct 15 03:58:49 2019 +0000
+++ b/finch/meson.build Tue Oct 15 03:59:57 2019 +0000
@@ -2,7 +2,9 @@
if get_option('consoleui')
libgnt_dep = dependency('gnt3', version : '>= 3.0.0', required : false)
- libgnt_gir = ['Gnt-3.0']
+ if enable_introspection + libgnt_gir = ['Gnt-3.0'] libgnt_proj = subproject('libgnt',
@@ -10,7 +12,10 @@
libgnt_dep = libgnt_proj.get_variable('libgnt_dep')
- libgnt_gir = libgnt_proj.get_variable('libgnt_gir')
+ if enable_introspection + libgnt_gir = libgnt_proj.get_variable('libgnt_gir') #######################################################################
--- a/meson.build Tue Oct 15 03:58:49 2019 +0000
+++ b/meson.build Tue Oct 15 03:59:57 2019 +0000
@@ -307,8 +307,8 @@
talkatu_dep = dependency('talkatu', version: '>=0.1.0', required : false)
- talkatu_gir = 'Talkatu-0.0'
- if get_option('introspection')
+ if enable_introspection + talkatu_gir = 'Talkatu-0.0' talkatu_include_directories = include_directories(
join_paths(talkatu_dep.get_pkgconfig_variable('prefix'),
@@ -324,7 +324,9 @@
talkatu_dep = talkatu_proj.get_variable('talkatu_dep')
- talkatu_gir = talkatu_proj.get_variable('talkatu_gir')[0]
+ if enable_introspection + talkatu_gir = talkatu_proj.get_variable('talkatu_gir')[0] talkatu_include_directories = []
@@ -629,8 +631,8 @@
#######################################################################
gplugin_dep = dependency('gplugin', version : '>= 0.28.0', required : false)
- gplugin_gir = 'GPlugin-0.0'
- if get_option('introspection')
+ if enable_introspection + gplugin_gir = 'GPlugin-0.0' gplugin_include_directories = include_directories(
join_paths(gplugin_dep.get_pkgconfig_variable('prefix'),
@@ -646,7 +648,9 @@
gplugin_dep = gplugin_proj.get_variable('gplugin_dep')
- gplugin_gir = gplugin_proj.get_variable('gplugin_gir')[0]
+ if enable_introspection + gplugin_gir = gplugin_proj.get_variable('gplugin_gir')[0] gplugin_include_directories = []
--- a/pidgin/gtkconv.c Tue Oct 15 03:58:49 2019 +0000
+++ b/pidgin/gtkconv.c Tue Oct 15 03:59:57 2019 +0000
@@ -23,7 +23,7 @@
--- a/pidgin/gtkidle.c Tue Oct 15 03:58:49 2019 +0000
+++ b/pidgin/gtkidle.c Tue Oct 15 03:59:57 2019 +0000
@@ -24,6 +24,16 @@
+/* HAVE_UNISTD_H must have a value, see + * https://forums.developer.apple.com/thread/86887 +# define HAVE_UNISTD_H 1 +# define HAVE_UNISTD_H 0 # include <CoreFoundation/CoreFoundation.h>
# include <IOKit/IOKitLib.h>
@@ -73,27 +83,29 @@
/* Query the IOKit API */
- static io_service_t macIOsrvc = NULL;
- uint64_t idle_time = 0; /* nanoseconds */
- IOMasterPort(MACH_PORT_NULL, &master);
- macIOsrvc = IOServiceGetMatchingService(master,
- IOServiceMatching("IOHIDSystem"));
+ double idleSeconds = -1; + io_iterator_t iter = 0; + if (IOServiceGetMatchingServices(kIOMasterPortDefault, IOServiceMatching("IOHIDSystem"), &iter) == KERN_SUCCESS) { + io_registry_entry_t entry = IOIteratorNext(iter); + CFMutableDictionaryRef dict = NULL; + status = IORegistryEntryCreateCFProperties(entry, &dict, kCFAllocatorDefault, 0); + if (status == KERN_SUCCESS) { + CFNumberRef obj = CFDictionaryGetValue(dict, CFSTR("HIDIdleTime")); + int64_t nanoseconds = 0; + if (CFNumberGetValue(obj, kCFNumberSInt64Type, &nanoseconds)) { + idleSeconds = (double) nanoseconds / NSEC_PER_SEC; + IOObjectRelease(entry);
- property = IORegistryEntryCreateCFProperty(macIOsrvc, CFSTR("HIDIdleTime"),
- kCFAllocatorDefault, 0);
- CFNumberGetValue((CFNumberRef)property,
- kCFNumberSInt64Type, &idle_time);
- /* convert nanoseconds to seconds */
- return idle_time / 1000000000;