next
The base branch pool/gjs:factory has new changes
+ This is the alpha release for the GNOME 51 cycle.
+ Cairo.Context has gained a fontExtents() method, which returns
a property bag with properties corresponding to the fields of
`cairo_font_extents_t`, and a textPath() method, which renders
text as a path. Also, getFontMatrix() and setFontMatrix() which
return and accept property bags corresponding to the fields of
`cairo_matrix_t`.
+ Gtk.Widget has gained static methods add_binding(),
add_binding_action(), and add_binding_signal() (GTK 4 only),
for conveniently adding keyboard shortcuts to call a function,
invoke a Gtk.ShortcutAction, or emit a signal.
+ Some work-in-progress has been merged, making GNOME platform
objects more transparent to the JS garbage collector so that it
can make better choices about when to collect. This has the
additional bonus of making the info from System.dumpMemoryInfo
(visible in Sysprof or dumped to a JSON file) more accurate.
+ Backwards-incompatible change: Creating a GObject.Interface no
longer installs its methods as unbound static methods on the
constructor. This was based on as old, nonstandard custom of
"generic methods" from the old Mozilla days and modern JS
doesn't work like that. Additionally, this never worked as you
might expect: `Interface.method(obj)` would not call obj's
implementation of the interface method, but Interface's default
implementation, which might do nothing or throw
NotImplementedError. The only thing it was good for was
slightly shorter syntax when chaining up to the default
implementation. If you were using it that way, here's how to
migrate your code:
class MyClass extends GObject.Object {
static [GObject.Implements] = [MyInterface];
static { GObject.registerClass(MyClass); }
myMethod() {
return MyInterface.myMethod(this); // OLD
return MyInterface.prototype.myMethod.call(this); // NEW
}
}
+ Closed bugs and merge requests:
- Track memory usage for object prototypes
- Add Cairo font extents
- More accurate memory usage statistics for Cairo and GdkPixbuf
types
- Various maintenance
- Cairo/text path
- profiler: Write last value of memory counters
- testCommandLine's non UTF8 file names test fails on ZFS with
utf8only=on
- Cairo/fontMatrix
- overrides/Gtk: Support add_binding*() class methods
- More accurate memory usage statistics for GBytes type
- function: Avoid heap-allocating small argument arrays
- Arguments to `Gio.Application.run()` dropped by `runAsync()`
wrapper
Description
No description provided
Languages
XML
100%