Skip to content

Commit 80d4c13

Browse files
rm5248dblock
authored andcommitted
Added jnacontrib.x11.api.X.Window.getSubwindows and fixed jnacontrib.x11.api.X.Window.getXXXProperty, returns null if the window property is not found.
1 parent da45b9b commit 80d4c13

File tree

3 files changed

+308
-68
lines changed

3 files changed

+308
-68
lines changed

CHANGES.md

+18-16
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,19 @@ Features
1111
* [#290](https://github.com/twall/jna/pull/290): Improved the stacktrace for the exceptions thrown by `com.sun.jna.Structure` - [@ebourg](https://github.com/ebourg).
1212
* [#332](https://github.com/twall/jna/pull/332): Added Win32 Monitor Configuration API in `com.sun.jna.platform.win32.Dxva2` - [@msteiger](https://github.com/msteiger).
1313
* Added Winspool monitor sample and updated Kernel32, WinBase, Winspool - [@wolftobias](https://github.com/wolftobias).
14-
* Added Some minor changes to MS Office samples Test and small changes to the MS Office samples Bug Fixes - [@wolftobias](https://github.com/wolftobias).
1514
* [#333](https://github.com/twall/jna/pull/333): Added `CoTaskMemAlloc`, `CoTaskMemRealloc` and `CoTaskMemFree` to `com.sun.jna.platform.win32.Ole32` - [@msteiger](https://github.com/msteiger).
1615
* [#334](https://github.com/twall/jna/pull/334): Added `com.sun.jna.platform.win32.Shell32.SHGetKnownFolderPath` and `KnownFolders` GUID constants - [@msteiger](https://github.com/msteiger).
1716
* [#338](https://github.com/twall/jna/pull/338): Added `com.sun.jna.platform.mac.XAttr` and `com.sun.jna.platform.mac.XAttrUtil` JNA wrapper for `<sys/xattr.h>` for Mac OS X - [@rednoah](https://github.com/rednoah).
1817
* [#339](https://github.com/twall/jna/pull/339): Added `GetWindowPlacement`, `SetWindowPlacement`, `AdjustWindowRect`, `AdjustWindowRectEx`, `ExitWindowsEx`, and `LockWorkstation` to `com.sun.jna.platform.win32.User32` - [@Timeroot](https://github.com/Timeroot).
1918
* [#286](https://github.com/twall/jna/pull/286): Added in com.sun.jna.platform.win32.Kernel32: CreateRemoteThread, WritePocessMemory and ReadProcessMemory - [@sstokic-tgm](https://github.com/sstokic-tgm).
19+
* [#350](https://github.com/twall/jna/pull/350): Added `jnacontrib.x11.api.X.Window.getSubwindows` - [@rm5248](https://github.com/rm5248).
20+
* Improved `contrib/msoffice` sample - [@wolftobias](https://github.com/wolftobias).
2021

2122
Bug Fixes
2223
---------
2324
* [#319](https://github.com/twall/jna/pull/319): Fix direct-mapping type-mapped pointer result types - [@marco2357](https://github.com/marco2357).
24-
* Added Variant and TlbImp Fixes - [@wolftobias](https://github.com/wolftobias).
25+
* [#350](https://github.com/twall/jna/pull/350): Fix `jnacontrib.x11.api.X.Window.getXXXProperty`, returns `null` if the window property is not found - [@rm5248](https://github.com/rm5248).
26+
* Fixed `com.sun.jna.platform.win32.Variant` and `TlbImp` - [@wolftobias](https://github.com/wolftobias).
2527

2628
Release 4.1
2729
===========
@@ -182,7 +184,7 @@ Bug Fixes
182184
* Fix runtime error in some instances where Structure.setFieldOrder is used (never return self when sharing AutoAllocated memory).
183185
* [#107](https://github.com/twall/jna/issues/107): `Structure.clear()` always calls `ensureAllocated()` to avoid NPE.
184186
* Ensure internal memory pointer is *always* allocated when calling `Structure.useMemory()`, even if layout is not yet determined.
185-
187+
186188
Release 3.4.1
187189
=============
188190

@@ -218,7 +220,7 @@ threads.
218220
* linux/arm 32-bit support (hardware provided by Alex Lam).
219221
* linux/ppc 32-bit support (hardware provided by Fritiof Hedman).
220222
* Preliminary linux/ia64, linux/ppc64 support (thanks to Laurent Guerby and the GCC compile farm).
221-
* Windows CE/Mobile support (w32ce-arm) (resources provided by andrea antonello and Hydrologis SRL).
223+
* Windows CE/Mobile support (w32ce-arm) (resources provided by andrea antonello and Hydrologis SRL).
222224
* linux multi-arch support (kohsuke).
223225
* Added REG_QWORD registry type support
224226
* Add to `platform.unix.x11`: `XGrabKey`, `XUngrabKey`, `XSetErrorHandler`.
@@ -367,7 +369,7 @@ Bug Fixes
367369

368370
* Fix WindowUtils exception on mouse over TrayIcon.
369371
* Fix bug toggling windows transparent/opaque (win32/OSX).
370-
* Avoid overwriting unchanged Pointer values in arrays (function calls with Pointer[] and Structure.read).
372+
* Avoid overwriting unchanged Pointer values in arrays (function calls with Pointer[] and Structure.read).
371373
* Ensure Structure fields marked `final` are never written.
372374
* Fix bug preventing proper population Structure.ByReference fields on Structure read.
373375
* Ensure double buffering is disabled in components added to a transparent window.
@@ -387,7 +389,7 @@ Bug Fixes
387389
---------
388390

389391
* Fix crash with direct mapping if NULL struct* used (Issue 125).
390-
* Fix case where null-valued Structure fields would get non-null values on write.
392+
* Fix case where null-valued Structure fields would get non-null values on write.
391393
* Synch callback Structure/Structure[] arguments on callback return.
392394
* Fix NPE when mapping an interface to the current process.
393395
* Automatically load proper C library version from current process on Linux (avoids crashing bug on Ubuntu with libc-i686 packages active).
@@ -417,7 +419,7 @@ Features
417419

418420
* Handle String, Structure, Callback, Buffer, and primitive arrays in direct mappings. Handle NativeMapped and TypeMapper, with optimized paths for IntegerType and PointerType.
419421
* Optionally throw errno/GetLastError as an exception. This is preferred to (and more efficient than) calling Native.getLastError().
420-
* Unload/delete native library unpacked from jna.jar if Native class is garbage collected. Only install shutdown hook if using the system class loader.
422+
* Unload/delete native library unpacked from jna.jar if Native class is garbage collected. Only install shutdown hook if using the system class loader.
421423
* Auto-write contiguous Structure arrays when first element is written.
422424
* Support NativeMapped[] as function arguments for interface-mapped libraries (Issue 90).
423425
* Enable function lookup within current process on Windows.
@@ -435,7 +437,7 @@ Release 3.1.0
435437
Features
436438
--------
437439

438-
* Add raw JNI mapping of static Java methods. Performance is about 10X that of traditional JNA interface mapping, although with less type conversion functionality.
440+
* Add raw JNI mapping of static Java methods. Performance is about 10X that of traditional JNA interface mapping, although with less type conversion functionality.
439441
* Add library option to allow passing/return of Java Objects.
440442
* Allow handling of uncaught callback exceptions (Issue 63).
441443
* Object oriented interface to X server (see contrib/x11)
@@ -449,7 +451,7 @@ Features
449451
Bug Fixes
450452
---------
451453

452-
* Run tests with libjsig.so, if available, which fixes some crashes when running tests on 64-bit platforms.
454+
* Run tests with libjsig.so, if available, which fixes some crashes when running tests on 64-bit platforms.
453455
* Fix Issue 104.
454456
* Fix Issue 94 (Java 1.6 update 10 regression).
455457
* Fix Issue 51 (Java 1.6 update 10 regression).
@@ -510,7 +512,7 @@ Bug Fixes
510512
* Avoid overwriting unchanged Structure fields of type Pointer.
511513
* Avoid more content dragging on OSX or warn if it's too late.
512514
* Fix UnsatisfiedLinkError using transparent window on Win2K.
513-
* Fix memory leak with callbacks called from native threads with no Java context (johnwallace).
515+
* Fix memory leak with callbacks called from native threads with no Java context (johnwallace).
514516
* Defer structure size calculation if type mapper not yet set, allowing type mapper to be set in derived constructors (colinwalters).
515517
* Ensure structure memory is allocated in Structure.read/writeField.
516518

@@ -567,7 +569,7 @@ Features
567569

568570
* Enable build/run using IBM's J9 VM (leonardo).
569571
* Make StdCallFunctionMapper attempt a leading underscore if the simpler mapping doesn't work.
570-
* Allow Structure.read to overwrite final fields (may not work on some 1.4 VMs).
572+
* Allow Structure.read to overwrite final fields (may not work on some 1.4 VMs).
571573

572574
Bug Fixes
573575
---------
@@ -581,7 +583,7 @@ Bug Fixes
581583
* Fix callback allocation code on w32, solaris, freebsd, darwin (libffi was misconfigured).
582584
* Fix bug when NativeMapped fields are used in a Structure.ByValue instance.
583585
* Fix NPE calling Structure.read() before memory is initialized.
584-
* Fix NPE calling Structure.read/write with uninitialized NativeMapped fields.
586+
* Fix NPE calling Structure.read/write with uninitialized NativeMapped fields.
585587

586588
Release 3.0.2
587589
=============
@@ -628,7 +630,7 @@ Features
628630
* More supported platforms, via GCC's libffi (wmeissner)
629631
* Support struct by value as parameter and return value (duncan)
630632
* Support struct by reference within structures
631-
* Provide access to native peer for java.awt.Component
633+
* Provide access to native peer for java.awt.Component
632634
* Provide access to native peer on OS X.
633635
* Support MINGW32 builds (fullung)
634636
* Allow per-field Structure read/write by field name
@@ -643,7 +645,7 @@ Features
643645
* Support lookup of OSX framework libraries by name
644646
* Explicit access to shared library global data
645647
* Invocation interception to facilitate translation of C preprocessor macros and inline functions
646-
* Provide utility to determine Web Start native library cache location; auto-include this path if jnidispatch is included as a &lt;nativelib&gt; (robertengels)
648+
* Provide utility to determine Web Start native library cache location; auto-include this path if jnidispatch is included as a &lt;nativelib&gt; (robertengels)
647649
* Provide access to aligned memory
648650
* Versioning information embedded in jna.jar and native library
649651

@@ -676,7 +678,7 @@ Features
676678
* Optimized shaped windows (chris deckers & olivier chafik); instantiation time improved by about 2-3 orders of magnitude for large, mostly contiguous shapes
677679
* Provide type mapping in callback arguments/results
678680
* Provide access to ByteBuffer direct address as a Pointer
679-
* Provide customization of native string encoding with jna.encoding system property
681+
* Provide customization of native string encoding with jna.encoding system property
680682

681683
Bug Fixes
682684
---------
@@ -702,7 +704,7 @@ Features
702704
* Automatic handling of w32 UNICODE/ASCII variants
703705
* Automatic mapping of decorated w32 stdcall function names
704706
* Customizable, automatic type conversion of arguments and results (wmeissner)
705-
* Support char*[] arguments as Java String[]
707+
* Support char*[] arguments as Java String[]
706708
* Structure supports Callback members (wmeissner)
707709
* getByteBuffer from Pointer/Memory (wmeissner)
708710
* Allow GC of native libraries

0 commit comments

Comments
 (0)