![Florian Müllner](/assets/img/avatar_default.png)
Port the 'General' preferences tab of the panel's clock applet to javascript and add it to the build system. https://bugzilla.gnome.org/show_bug.cgi?id=600276
19 lines
408 B
Bash
19 lines
408 B
Bash
#!/bin/sh
|
|
|
|
if [ -f "$0.in" ]
|
|
then
|
|
scriptDir="`dirname $0`"
|
|
uiDir="$scriptDir/../data"
|
|
jsDir="$scriptDir/../js"
|
|
else
|
|
uiDir="@pkgdatadir@"
|
|
jsDir="@pkgdatadir@/js"
|
|
fi
|
|
|
|
progName="`basename $0`"
|
|
uiFile="$uiDir/clock-preferences.ui"
|
|
export GJS_PATH="$jsDir"
|
|
|
|
@GJS_CONSOLE@ -c "const ClockPreferences = imports.prefs.clockPreferences;
|
|
ClockPreferences.main({ progName: '$progName', uiFile: '$uiFile' });"
|