From f29de85048b7e7d21eb03117e513a84d41a186aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Rochet?= Date: Sat, 10 Sep 2016 17:15:25 +0200 Subject: [PATCH] Add version info in prefs dialog --- prefs.js | 3 +++ prefs.xml | 22 +++++++++++++++++----- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/prefs.js b/prefs.js index 8f56c99..c340dd0 100644 --- a/prefs.js +++ b/prefs.js @@ -41,6 +41,9 @@ function buildPrefsWidget(){ buildable.add_from_file( Me.dir.get_path() + '/prefs.xml' ); let box = buildable.get_object('scrolled_window_built'); + let version_label = buildable.get_object('version_info'); + version_label.set_text('[Arch-update v' + Me.metadata.version.toString() + ']'); + // Bind fields to settings settings.bind('boot-wait' , buildable.get_object('field_wait') , 'value' , Gio.SettingsBindFlags.DEFAULT); settings.bind('check-interval' , buildable.get_object('field_interval') , 'value' , Gio.SettingsBindFlags.DEFAULT); diff --git a/prefs.xml b/prefs.xml index 95e6fe6..6131b04 100644 --- a/prefs.xml +++ b/prefs.xml @@ -48,11 +48,23 @@ vertical - - <b>Checking for updates</b> - true - true - 1 + + 5 + + + <b>Checking for updates</b> + true + true + 1 + + + + + Version info placeholder + false + 1 + +