[polari] Use pkg module for version requirements
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] Use pkg module for version requirements
- Date: Mon, 23 Feb 2015 05:14:39 +0000 (UTC)
commit 55f72d666f641baf72080d30b951f361fc3d97f7
Author: Florian Müllner <fmuellner gnome org>
Date: Mon Feb 23 00:22:09 2015 +0100
Use pkg module for version requirements
src/application.js | 5 -----
src/main.js | 5 +++++
2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index f87724d..1aec919 100644
--- a/src/application.js
+++ b/src/application.js
@@ -1,8 +1,3 @@
-imports.gi.versions.Gio = '2.0';
-imports.gi.versions.GLib = '2.0';
-imports.gi.versions.Gtk = '3.0';
-imports.gi.versions.TelepathyGLib = '0.12';
-
const Gio = imports.gi.Gio;
const GLib = imports.gi.GLib;
const Gtk = imports.gi.Gtk;
diff --git a/src/main.js b/src/main.js
index 06f707d..877cf9a 100644
--- a/src/main.js
+++ b/src/main.js
@@ -2,6 +2,11 @@ pkg.initFormat();
pkg.initGettext();
window.ngettext = imports.gettext.ngettext;
+pkg.require({ 'Gio': '2.0',
+ 'GLib': '2.0',
+ 'Gtk': '3.0',
+ 'TelepathyGLib': '0.12' });
+
const Application = imports.application;
const GLib = imports.gi.GLib;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]