Feed of "java-gi/java-gi"https://codeberg.org/java-gi/java-gi2026-06-20T23:25:39+02:00GObject-Introspection bindings generator for Javajwharm deleted branch gtk-template-ui-target from java-gi/java-gi2026-06-20T14:31:27+02:00159016829: https://codeberg.org/java-gi/java-gijwharm[email protected]jwharm merged pull request java-gi/java-gi#3742026-06-20T14:31:26+02:00159016823: https://codeberg.org/java-gi/java-gi/pulls/374Load Gtk template from classpath or filenameLoad Gtk template from classpath or filenamejwharm[email protected]jwharm pushed to main at java-gi/java-gi2026-06-20T14:31:26+02:00159016817: https://codeberg.org/java-gi/java-gi/compare/6867fbfcf5384debb92dccaec8ae524058331fdd...84a54eb2e3b33c25e24a8cacb5de211698e91129<a href="https://codeberg.org/java-gi/java-gi/commit/84a54eb2e3b33c25e24a8cacb5de211698e91129" rel="nofollow">84a54eb2e3b33c25e24a8cacb5de211698e91129</a>
Merge pull request 'Load Gtk template from classpath or filename' (#374) from gtk-template-ui-target into main
<a href="https://codeberg.org/java-gi/java-gi/commit/7fb8c7a36b8b957f1072250fe74a04ff88c76eb1" rel="nofollow">7fb8c7a36b8b957f1072250fe74a04ff88c76eb1</a>
Load Gtk template from classpath or filename<a href="https://codeberg.org/java-gi/java-gi/commit/84a54eb2e3b33c25e24a8cacb5de211698e91129">84a54eb2e3b33c25e24a8cacb5de211698e91129</a>
Merge pull request 'Load Gtk template from classpath or filename' (#374) from gtk-template-ui-target into main
<a href="https://codeberg.org/java-gi/java-gi/commit/7fb8c7a36b8b957f1072250fe74a04ff88c76eb1">7fb8c7a36b8b957f1072250fe74a04ff88c76eb1</a>
Load Gtk template from classpath or filenamejwharm[email protected]jwharm created pull request java-gi/java-gi#3742026-06-20T14:31:08+02:00159016724: https://codeberg.org/java-gi/java-gi/pulls/374<p dir="auto">Java-GI will now lookup the <code>ui</code> parameter of a GtkTemplate first as a GResource path, then on the classpath, and if that also fails, as a filename.</p>
374#Load Gtk template from classpath or filename#jwharm[email protected]jwharm pushed to gtk-template-ui-target at java-gi/java-gi2026-06-20T14:30:49+02:00159016514: https://codeberg.org/java-gi/java-gi/commit/7fb8c7a36b8b957f1072250fe74a04ff88c76eb1<a href="https://codeberg.org/java-gi/java-gi/commit/7fb8c7a36b8b957f1072250fe74a04ff88c76eb1" rel="nofollow">7fb8c7a36b8b957f1072250fe74a04ff88c76eb1</a>
Load Gtk template from classpath or filename<a href="https://codeberg.org/java-gi/java-gi/commit/7fb8c7a36b8b957f1072250fe74a04ff88c76eb1">7fb8c7a36b8b957f1072250fe74a04ff88c76eb1</a>
Load Gtk template from classpath or filenamejwharm[email protected]jwharm created branch gtk-template-ui-target in java-gi/java-gi2026-06-20T14:30:49+02:00159016508: https://codeberg.org/java-gi/java-gi/src/branch/gtk-template-ui-targetjwharm[email protected]ombrelin commented on issue java-gi/java-gi#3732026-06-14T21:42:53+02:00155629805: https://codeberg.org/java-gi/java-gi/issues/373#issuecomment-17468609Docs for Widgets
<p dir="auto">Hi, thanks for your feedback ! Will start working on this <span class="emoji" aria-label="thumbs up" data-alias="+1">👍</span></p>
Docs for Widgets
<p dir="auto">Hi, thanks for your feedback ! Will start working on this <span class="emoji" aria-label="thumbs up" data-alias="+1">👍</span></p>
ombrelin[email protected]jwharm commented on issue java-gi/java-gi#3732026-06-14T20:42:12+02:00155602379: https://codeberg.org/java-gi/java-gi/issues/373#issuecomment-17465759Docs for Widgets
<p dir="auto">Yes of course! Very happy to add such a section.</p>
Docs for Widgets
<p dir="auto">Yes of course! Very happy to add such a section.</p>
jwharm[email protected]ombrelin opened issue java-gi/java-gi#3732026-06-14T19:49:37+02:00155575883: https://codeberg.org/java-gi/java-gi/issues/373<p dir="auto">Hi,<br/>
I'd like to contribute some pages to the docs in order to have java-gi specific, standalone and idiomatic examples for the most commonly used GTK widgets.<br/>
Because I usually find myself browsing the C or pygobjects (python) docs of GTK and sometime struggling to find the right (and most simple / straightforward) java-gi equivalent.</p>
<p dir="auto">Would you be open to a PR adding such a section in the docs ?</p>
<p dir="auto">Anyway, thanks for the great work on Java-gi, I really enjoy it !</p>
373#Docs for Widget#ombrelin[email protected]jwharm deleted branch new-functions from java-gi/java-gi2026-06-14T17:49:01+02:00155524130: https://codeberg.org/java-gi/java-gijwharm[email protected]jwharm pushed to main at java-gi/java-gi2026-06-14T17:49:00+02:00155524124: https://codeberg.org/java-gi/java-gi/compare/1ae05860fcd3465251990ca9bf8e6f659478885a...6867fbfcf5384debb92dccaec8ae524058331fdd<a href="https://codeberg.org/java-gi/java-gi/commit/6867fbfcf5384debb92dccaec8ae524058331fdd" rel="nofollow">6867fbfcf5384debb92dccaec8ae524058331fdd</a>
Merge pull request 'Strip "new_" prefix from constructor functions' (#372) from new-functions into main
<a href="https://codeberg.org/java-gi/java-gi/commit/b649c9adb8d760ee9926f548cce69d1d5df8fc72" rel="nofollow">b649c9adb8d760ee9926f548cce69d1d5df8fc72</a>
Update testcase
<a href="https://codeberg.org/java-gi/java-gi/commit/e70d37a1e1589654ff664468e610f52ded25cce7" rel="nofollow">e70d37a1e1589654ff664468e610f52ded25cce7</a>
Strip "new_" prefix from constructor functions<a href="https://codeberg.org/java-gi/java-gi/commit/6867fbfcf5384debb92dccaec8ae524058331fdd">6867fbfcf5384debb92dccaec8ae524058331fdd</a>
Merge pull request 'Strip "new_" prefix from constructor functions' (#372) from new-functions into main
<a href="https://codeberg.org/java-gi/java-gi/commit/b649c9adb8d760ee9926f548cce69d1d5df8fc72">b649c9adb8d760ee9926f548cce69d1d5df8fc72</a>
Update testcase
<a href="https://codeberg.org/java-gi/java-gi/commit/e70d37a1e1589654ff664468e610f52ded25cce7">e70d37a1e1589654ff664468e610f52ded25cce7</a>
Strip "new_" prefix from constructor functionsjwharm[email protected]jwharm merged pull request java-gi/java-gi#3722026-06-14T17:49:00+02:00155524118: https://codeberg.org/java-gi/java-gi/pulls/372Strip "new_" prefix from constructor functionsStrip "new_" prefix from constructor functionsjwharm[email protected]jwharm pushed to new-functions at java-gi/java-gi2026-06-14T17:48:28+02:00155523698: https://codeberg.org/java-gi/java-gi/compare/e8009d276cb399a37d62b5c12303cf069337563d...b649c9adb8d760ee9926f548cce69d1d5df8fc72<a href="https://codeberg.org/java-gi/java-gi/commit/b649c9adb8d760ee9926f548cce69d1d5df8fc72" rel="nofollow">b649c9adb8d760ee9926f548cce69d1d5df8fc72</a>
Update testcase
<a href="https://codeberg.org/java-gi/java-gi/commit/e70d37a1e1589654ff664468e610f52ded25cce7" rel="nofollow">e70d37a1e1589654ff664468e610f52ded25cce7</a>
Strip "new_" prefix from constructor functions
<a href="https://codeberg.org/java-gi/java-gi/commit/1ae05860fcd3465251990ca9bf8e6f659478885a" rel="nofollow">1ae05860fcd3465251990ca9bf8e6f659478885a</a>
Merge pull request 'Rename IOException to GIOException' (#371) from gioexception into main<a href="https://codeberg.org/java-gi/java-gi/commit/b649c9adb8d760ee9926f548cce69d1d5df8fc72">b649c9adb8d760ee9926f548cce69d1d5df8fc72</a>
Update testcase
<a href="https://codeberg.org/java-gi/java-gi/commit/e70d37a1e1589654ff664468e610f52ded25cce7">e70d37a1e1589654ff664468e610f52ded25cce7</a>
Strip "new_" prefix from constructor functions
<a href="https://codeberg.org/java-gi/java-gi/commit/1ae05860fcd3465251990ca9bf8e6f659478885a">1ae05860fcd3465251990ca9bf8e6f659478885a</a>
Merge pull request 'Rename IOException to GIOException' (#371) from gioexception into mainjwharm[email protected]jwharm pushed to new-functions at java-gi/java-gi2026-06-14T17:46:32+02:00155522882: https://codeberg.org/java-gi/java-gi/commit/e8009d276cb399a37d62b5c12303cf069337563d<a href="https://codeberg.org/java-gi/java-gi/commit/e8009d276cb399a37d62b5c12303cf069337563d" rel="nofollow">e8009d276cb399a37d62b5c12303cf069337563d</a>
Update testcase<a href="https://codeberg.org/java-gi/java-gi/commit/e8009d276cb399a37d62b5c12303cf069337563d">e8009d276cb399a37d62b5c12303cf069337563d</a>
Update testcasejwharm[email protected]jwharm created pull request java-gi/java-gi#3722026-06-14T17:41:22+02:00155520581: https://codeberg.org/java-gi/java-gi/pulls/372<p dir="auto">Java-GI has, since a long time, renamed constructors from "new_with_some_property" to "with_some_property", stripping the "new_" prefix. However, there are also some functions (static methods in Java) that act as factories for new instances, that use this naming scheme. With this PR, these functions are also renamed.</p>
<p dir="auto">Because in some cases, the "new_" prefix actually improves the name, only functions starting with the following prefixes are renamed:</p>
<ul dir="auto">
<li><code>new_for_...</code></li>
<li><code>new_with_...</code></li>
<li><code>new_build_...</code></li>
<li><code>new_take_...</code> and <code>new_take</code></li>
<li><code>new_from_...</code></li>
</ul>
<p dir="auto"><strong>Warning:</strong> The old methods are removed! Generating deprecated fallbacks would be a rather large change, and even though this could break some existing code, the fix will be very simple.</p>
<p dir="auto">The following methods will been renamed with this change:</p>
<table>
<thead>
<tr>
<th>Namespace</th>
<th>Enclosing type</th>
<th>Old function name</th>
<th>New function name</th>
</tr>
</thead>
<tbody>
<tr>
<td>Gdk</td>
<td>Pixbuf</td>
<td>newFromStreamAsync</td>
<td>fromStreamAsync</td>
</tr>
<tr>
<td>Gdk</td>
<td>Pixbuf</td>
<td>newFromStreamAtScaleAsync</td>
<td>fromStreamAtScaleAsync</td>
</tr>
<tr>
<td>Gio</td>
<td>File</td>
<td>newBuildFilename</td>
<td>buildFilename</td>
</tr>
<tr>
<td>Gio</td>
<td>File</td>
<td>newBuildFilenamev</td>
<td>buildFilenamev</td>
</tr>
<tr>
<td>Gio</td>
<td>File</td>
<td>newForCommandLineArg</td>
<td>forCommandLineArg</td>
</tr>
<tr>
<td>Gio</td>
<td>File</td>
<td>newForCommandLineArgAndCwd</td>
<td>forCommandLineArgAndCwd</td>
</tr>
<tr>
<td>Gio</td>
<td>File</td>
<td>newForPath</td>
<td>forPath</td>
</tr>
<tr>
<td>Gio</td>
<td>File</td>
<td>newForUri</td>
<td>forUri</td>
</tr>
<tr>
<td>Gio</td>
<td>Icon</td>
<td>newForString</td>
<td>forString</td>
</tr>
<tr>
<td>GLib</td>
<td>PathBuf</td>
<td>newFromPath</td>
<td>fromPath</td>
</tr>
<tr>
<td>GstAudio</td>
<td>AudioChannelMixer</td>
<td>newWithMatrix</td>
<td>withMatrix</td>
</tr>
<tr>
<td>GstBase</td>
<td>BitWriter</td>
<td>newWithData</td>
<td>withData</td>
</tr>
<tr>
<td>GstBase</td>
<td>BitWriter</td>
<td>newWithSize</td>
<td>withSize</td>
</tr>
<tr>
<td>GstBase</td>
<td>ByteWriter</td>
<td>newWithData</td>
<td>withData</td>
</tr>
<tr>
<td>GstBase</td>
<td>ByteWriter</td>
<td>newWithSize</td>
<td>withSize</td>
</tr>
<tr>
<td>GstBase</td>
<td>QueueArray</td>
<td>newForStruct</td>
<td>forStruct</td>
</tr>
<tr>
<td>GstBase</td>
<td>VecDequeue</td>
<td>newForStruct</td>
<td>forStruct</td>
</tr>
<tr>
<td>GstVideo</td>
<td>VideoConverter</td>
<td>newWithPool</td>
<td>withPool</td>
</tr>
</tbody>
</table>
372#Strip "new_" prefix from constructor functions#jwharm[email protected]jwharm pushed to new-functions at java-gi/java-gi2026-06-14T17:37:40+02:00155518865: https://codeberg.org/java-gi/java-gi/commit/a905dcdacaefa681e2667c441ec1df0787287ffb<a href="https://codeberg.org/java-gi/java-gi/commit/a905dcdacaefa681e2667c441ec1df0787287ffb" rel="nofollow">a905dcdacaefa681e2667c441ec1df0787287ffb</a>
Strip "new_" prefix from constructor functions<a href="https://codeberg.org/java-gi/java-gi/commit/a905dcdacaefa681e2667c441ec1df0787287ffb">a905dcdacaefa681e2667c441ec1df0787287ffb</a>
Strip "new_" prefix from constructor functionsjwharm[email protected]jwharm created branch new-functions in java-gi/java-gi2026-06-14T17:37:39+02:00155518859: https://codeberg.org/java-gi/java-gi/src/branch/new-functionsjwharm[email protected]jwharm deleted branch gioexception from java-gi/java-gi2026-06-14T13:52:16+02:00155417438: https://codeberg.org/java-gi/java-gijwharm[email protected]jwharm pushed to main at java-gi/java-gi2026-06-14T13:52:08+02:00155417426: https://codeberg.org/java-gi/java-gi/compare/31e086e6933bc48969e739f3d8453f56a986948c...1ae05860fcd3465251990ca9bf8e6f659478885a<a href="https://codeberg.org/java-gi/java-gi/commit/1ae05860fcd3465251990ca9bf8e6f659478885a" rel="nofollow">1ae05860fcd3465251990ca9bf8e6f659478885a</a>
Merge pull request 'Rename IOException to GIOException' (#371) from gioexception into main
<a href="https://codeberg.org/java-gi/java-gi/commit/19ceb59d529f88071ea0e387985130a83f0da569" rel="nofollow">19ceb59d529f88071ea0e387985130a83f0da569</a>
Rename IOException to GIOException<a href="https://codeberg.org/java-gi/java-gi/commit/1ae05860fcd3465251990ca9bf8e6f659478885a">1ae05860fcd3465251990ca9bf8e6f659478885a</a>
Merge pull request 'Rename IOException to GIOException' (#371) from gioexception into main
<a href="https://codeberg.org/java-gi/java-gi/commit/19ceb59d529f88071ea0e387985130a83f0da569">19ceb59d529f88071ea0e387985130a83f0da569</a>
Rename IOException to GIOExceptionjwharm[email protected]jwharm merged pull request java-gi/java-gi#3712026-06-14T13:52:07+02:00155417420: https://codeberg.org/java-gi/java-gi/pulls/371Rename IOException to GIOExceptionRename IOException to GIOExceptionjwharm[email protected]jwharm created pull request java-gi/java-gi#3712026-06-14T13:51:29+02:00155417306: https://codeberg.org/java-gi/java-gi/pulls/371<p dir="auto">Starting with Java-GI 1.0.0-RC1, there are exception classes for GError types. The name is based on the error domain, so <code>GLib.RegexError</code> will throw a <code>RegexException</code>. However, for <code>Gio.IOError</code> this results in a class <code>org.gnome.gio.IOException</code>. This will cause a lot of confusion in code that handles <code>java.io.IOException</code> in the same file. Therefore, the exception for <code>Gio.IOError</code> will now be <code>org.gnome.gio.GIOException</code>.</p>
<p dir="auto">The old class <code>org.gnome.gio.IOException</code> will be removed. It was only added in RC1 so I don't expect it to be used a lot in existing code. And the fix would be simple.</p>
371#Rename IOException to GIOException#jwharm[email protected]jwharm pushed to gioexception at java-gi/java-gi2026-06-10T22:34:18+02:00153435401: https://codeberg.org/java-gi/java-gi/commit/19ceb59d529f88071ea0e387985130a83f0da569<a href="https://codeberg.org/java-gi/java-gi/commit/19ceb59d529f88071ea0e387985130a83f0da569" rel="nofollow">19ceb59d529f88071ea0e387985130a83f0da569</a>
Rename IOException to GIOException<a href="https://codeberg.org/java-gi/java-gi/commit/19ceb59d529f88071ea0e387985130a83f0da569">19ceb59d529f88071ea0e387985130a83f0da569</a>
Rename IOException to GIOExceptionjwharm[email protected]jwharm created branch gioexception in java-gi/java-gi2026-06-10T22:34:18+02:00153435395: https://codeberg.org/java-gi/java-gi/src/branch/gioexceptionjwharm[email protected]jwharm deleted branch fix-list-double-free from java-gi/java-gi2026-06-10T22:18:57+02:00153426158: https://codeberg.org/java-gi/java-gijwharm[email protected]jwharm merged pull request java-gi/java-gi#3702026-06-10T22:18:50+02:00153426116: https://codeberg.org/java-gi/java-gi/pulls/370Fix a double-free in GList/GSListFix a double-free in GList/GSListjwharm[email protected]jwharm pushed to main at java-gi/java-gi2026-06-10T22:18:50+02:00153426110: https://codeberg.org/java-gi/java-gi/compare/f0c1821db0cfbff7898c690109399699b345db4f...31e086e6933bc48969e739f3d8453f56a986948c<a href="https://codeberg.org/java-gi/java-gi/commit/31e086e6933bc48969e739f3d8453f56a986948c" rel="nofollow">31e086e6933bc48969e739f3d8453f56a986948c</a>
Merge pull request 'Fix a double-free in GList/GSList' (#370) from fix-list-double-free into main
<a href="https://codeberg.org/java-gi/java-gi/commit/d23b437b419285db33ca7a57ad724388fbe999d9" rel="nofollow">d23b437b419285db33ca7a57ad724388fbe999d9</a>
GList/GSList: Add deprecated constructors
<a href="https://codeberg.org/java-gi/java-gi/commit/2f4ad3beb0bfc38f452a3f7fd8605160864f7f38" rel="nofollow">2f4ad3beb0bfc38f452a3f7fd8605160864f7f38</a>
Fix a double-free in GList/GSList<a href="https://codeberg.org/java-gi/java-gi/commit/31e086e6933bc48969e739f3d8453f56a986948c">31e086e6933bc48969e739f3d8453f56a986948c</a>
Merge pull request 'Fix a double-free in GList/GSList' (#370) from fix-list-double-free into main
<a href="https://codeberg.org/java-gi/java-gi/commit/d23b437b419285db33ca7a57ad724388fbe999d9">d23b437b419285db33ca7a57ad724388fbe999d9</a>
GList/GSList: Add deprecated constructors
<a href="https://codeberg.org/java-gi/java-gi/commit/2f4ad3beb0bfc38f452a3f7fd8605160864f7f38">2f4ad3beb0bfc38f452a3f7fd8605160864f7f38</a>
Fix a double-free in GList/GSListjwharm[email protected]jwharm pushed to fix-list-double-free at java-gi/java-gi2026-06-10T22:18:31+02:00153426029: https://codeberg.org/java-gi/java-gi/commit/d23b437b419285db33ca7a57ad724388fbe999d9<a href="https://codeberg.org/java-gi/java-gi/commit/d23b437b419285db33ca7a57ad724388fbe999d9" rel="nofollow">d23b437b419285db33ca7a57ad724388fbe999d9</a>
GList/GSList: Add deprecated constructors<a href="https://codeberg.org/java-gi/java-gi/commit/d23b437b419285db33ca7a57ad724388fbe999d9">d23b437b419285db33ca7a57ad724388fbe999d9</a>
GList/GSList: Add deprecated constructorsjwharm[email protected]jwharm created pull request java-gi/java-gi#3702026-06-10T22:10:07+02:00153421571: https://codeberg.org/java-gi/java-gi/pulls/370<p dir="auto">When a GList or GSList contains GObjects, a double free bug makes the application segfault: The lifetime of the elements is managed by the InstanceCache, but the list tries to free them anyway.</p>
<p dir="auto">The fix is to not free GObject elements. This was difficult to implement because, thanks to Java generic type erasure, we don't know the element type at runtime. So the GList and GSList constructors now take a GType argument, so we know the type.</p>
370#Fix a double-free in GList/GSList#jwharm[email protected]jwharm pushed to fix-list-double-free at java-gi/java-gi2026-06-10T22:07:41+02:00153420029: https://codeberg.org/java-gi/java-gi/commit/2f4ad3beb0bfc38f452a3f7fd8605160864f7f38<a href="https://codeberg.org/java-gi/java-gi/commit/2f4ad3beb0bfc38f452a3f7fd8605160864f7f38" rel="nofollow">2f4ad3beb0bfc38f452a3f7fd8605160864f7f38</a>
Fix a double-free in GList/GSList<a href="https://codeberg.org/java-gi/java-gi/commit/2f4ad3beb0bfc38f452a3f7fd8605160864f7f38">2f4ad3beb0bfc38f452a3f7fd8605160864f7f38</a>
Fix a double-free in GList/GSListjwharm[email protected]jwharm created branch fix-list-double-free in java-gi/java-gi2026-06-10T22:07:41+02:00153420023: https://codeberg.org/java-gi/java-gi/src/branch/fix-list-double-freejwharm[email protected]