Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Register interfaces and enums #163

Merged
merged 24 commits into from
Dec 12, 2024
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
143ebaf
Register interfaces and enumerations: Initial check-in
jwharm Nov 17, 2024
6216dac
Fixed bugs in the MemoryCleaner class
jwharm Nov 18, 2024
9fb6902
Moved GLib testcases
jwharm Nov 18, 2024
de51d19
Fix (well, ignore) warning about generic type in ArrayTest testcase
jwharm Nov 18, 2024
a6f00a4
Log and ignore missing flag definitions, and add placeholders for int…
jwharm Nov 25, 2024
59b1a88
Ignore records with a "_" prefix
jwharm Nov 29, 2024
efb0242
Rename methods that override final methods from java.lang.Object
jwharm Nov 29, 2024
a0be22e
Avoid dependency of generated code to an unreleased java-gi version
jwharm Nov 29, 2024
aadb122
Fix error in GdkModifierType workaround
jwharm Nov 29, 2024
d8f5f4d
Various cleanups and fixes. Fixes #154 but needs more work.
jwharm Dec 1, 2024
fa55547
Added custom ByteArray class
jwharm Dec 1, 2024
c9ec32c
Renamed constants for consistency
jwharm Dec 1, 2024
f789060
Use custom ByteArray class for GValues
jwharm Dec 1, 2024
62b4fa2
Bump org.gradle.toolchains.foojay-resolver-convention
dependabot[bot] Dec 2, 2024
b29a64c
Improve StrvArray testcase (fixes #145)
jwharm Dec 2, 2024
f34e381
Fix NullPointerException and improve console error output (fixes #159)
jwharm Dec 4, 2024
523bb93
Fix double-free issue on ownership transfer of array parameters
jwharm Dec 4, 2024
a8ae098
Changed JavaBuilderScope to not make any assumptions about method sig…
jwharm Dec 7, 2024
93fa71a
Fix bugs with registering an interface
jwharm Dec 9, 2024
5138879
Fix testcase
jwharm Dec 9, 2024
486f372
Fix generating null check
jwharm Dec 9, 2024
0f6b7d6
Register interface properties
jwharm Dec 10, 2024
de4d7cb
Fix array size calculation bug
jwharm Dec 12, 2024
7ba8e35
Fix registration of enums, add registration of flags types, add testcase
jwharm Dec 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Improve StrvArray testcase (fixes #145)
The testcase now uses a much broader search term so it should work on most systems.
jwharm committed Dec 7, 2024
commit b29a64c7f847418bc345e4e49e8cf77738e875ae
Original file line number Diff line number Diff line change
@@ -18,16 +18,19 @@ public void testStrvArrayToJava() {
// DesktopAppInfo is only available on Linux
assumeTrue("linux".equals(Platform.getRuntimePlatform()));

String[][] array = DesktopAppInfo.search("gnome");
// Unless there are absolutely no applications installed, searching
// for "e" should return a few usable results
String[][] array = DesktopAppInfo.search("e");
assertNotNull(array);
String result = "";
for (String[] inner : array) {
assertNotNull(inner);
for (String str : inner) {
if (str.contains("org.gnome"))
result = str;
// Check for NULL
assertNotNull(str);

// Check for valid strings
assertTrue(str.endsWith(".desktop"));
}
}
assertNotEquals("", result);
}
}