diff options
author | Bastien Nocera <hadess@hadess.net> | 2022-08-23 16:08:24 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2022-08-23 16:11:47 +0200 |
commit | ab2e8dac222a8efd68c874a9ffeadbbb34d33ad6 (patch) | |
tree | 976471b2faab0dc142d95468f36de23d20a66093 | |
parent | 2334239e822fe5a0f2838771b7b71df6a93af61a (diff) | |
download | gnome-bluetooth-ab2e8dac222a8efd68c874a9ffeadbbb34d33ad6.tar.gz |
lib: Fix enums being inaccessible from GJS
Add enum type generation code to the gir sources. This fixes enum types
showing up as 'undefined' in gjs.
The change did not impact Python.
--✀--
const {Gio, GLib, GnomeBluetooth, GObject} = imports.gi;
client = new GnomeBluetooth.Client();
client.connect('notify', () => {
print(client.default_adapter_state);
});
ml = new GLib.MainLoop(null, false);
ml.run()
--✀--
-rw-r--r-- | lib/meson.build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/meson.build b/lib/meson.build index 69ba8f58..ed1a881a 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -122,7 +122,7 @@ pkg.generate( ) if enable_gir - gir_sources = sources + headers + gir_sources = sources + headers + enum_sources gir_incs = [ 'Gio-2.0', |