gnome-shell/src/gnome-shell-clock-preferences.in
Florian Müllner 266a0fb7d6 Add a simple preference dialog for the clock
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
2010-05-09 01:07:47 +02:00

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' });"