[polari] main: Update runtime checks
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] main: Update runtime checks
- Date: Wed, 17 May 2017 19:41:55 +0000 (UTC)
commit 310d305686dd858636ce2f17b0f01e870cb53dc8
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Mar 10 11:52:10 2017 +0100
main: Update runtime checks
With the new requireSymbol() method in gjs' package module, we can
do better than checking for the presence of a particular typelib,
similar to the AX_CHECK_GIR_SYMBOLS_GJS autoconf macro.
src/main.js | 16 ++++++++++++----
1 files changed, 12 insertions(+), 4 deletions(-)
---
diff --git a/src/main.js b/src/main.js
index 99d0adf..ed32a44 100755
--- a/src/main.js
+++ b/src/main.js
@@ -2,10 +2,18 @@ pkg.initFormat();
pkg.initGettext();
window.ngettext = imports.gettext.ngettext;
-pkg.require({ 'Gio': '2.0',
- 'GLib': '2.0',
- 'Gtk': '3.0',
- 'TelepathyGLib': '0.12' });
+pkg.require({ 'GdkPixbuf': '2.0',
+ 'GObject': '2.0',
+ 'Pango': '1.0',
+ 'PangoCairo': '1.0',
+ 'Secret': '1',
+ 'Soup': '2.4',
+ 'TelepathyGLib': '0.12',
+ 'TelepathyLogger': '0.2' });
+pkg.requireSymbol('Gio', '2.0', 'Application.send_notification');
+pkg.requireSymbol('GLib', '2.0', 'log_variant');
+pkg.requireSymbol('Gspell', '1', 'Entry');
+pkg.requireSymbol('Gtk', '3.0', 'ScrolledWindow.propagate_natural_width');
const Application = imports.application;
const GLib = imports.gi.GLib;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]