mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-14 00:04:17 +09:00
Settings.ui: - Move thickness, length, and anchor from Style tab to Position tab. Group together with position in the same frame. schema: - Remove unpublished panel-length and panel-anchor settings, replacing them with panel-lengths and panel-anchors JSON objects (like panel-positions). - Remove unpublished anchor enum, since panel-anchors is being managed by the extension in JSON, not typed by the schema. - Deprecate panel-size in favour of new panel-sizes JSON, storing per-monitor panel sizes. - Mention that panel-position is deprecated. Introduce panelSettings.js: - Functions to fetch or set panel settings that are stored as JSON. Grown from now-removed getSettingsPositions() in panelPositions.js. prefs.js: - Group together the different UI widget label and value refreshing into method _updateWidgetSettingsForMonitor(). - Change multi-panel behaviour of _setAnchorLabels(). Previously, all panels shared the same anchor setting, and so setAnchorLabels considered all monitors. Now, panels are configured either independently, or sometimes all together; set labels according to orientation(s) of panel(s) being configured. - Omitting preventTop handling in refactored _setPanelPosition() method. Previously, it was written to set the first monitor's panel to Pos.BOTTOM if the user clicked the Top position radio button, if stockgs-keep-top-panel was also set. But the user can't activate the Top button anyway if stockgs is set (likely implemented later). panelManager.js: - Removing panelPositions, as it is not needed any more.
101 lines
3.1 KiB
Makefile
101 lines
3.1 KiB
Makefile
# Basic Makefile
|
|
|
|
UUID = dash-to-panel@jderose9.github.com
|
|
BASE_MODULES = extension.js stylesheet.css metadata.json COPYING README.md
|
|
EXTRA_MODULES = appIcons.js convenience.js panel.js panelManager.js proximity.js intellihide.js progress.js panelPositions.js panelSettings.js panelStyle.js overview.js taskbar.js transparency.js windowPreview.js prefs.js update.js utils.js Settings.ui
|
|
EXTRA_IMAGES = highlight_stacked_bg.svg highlight_stacked_bg_2.svg highlight_stacked_bg_3.svg
|
|
|
|
TOLOCALIZE = prefs.js appIcons.js update.js
|
|
MSGSRC = $(wildcard po/*.po)
|
|
ifeq ($(strip $(DESTDIR)),)
|
|
INSTALLBASE = $(HOME)/.local/share/gnome-shell/extensions
|
|
else
|
|
INSTALLBASE = $(DESTDIR)/usr/share/gnome-shell/extensions
|
|
endif
|
|
INSTALLNAME = dash-to-panel@jderose9.github.com
|
|
|
|
# The command line passed variable VERSION is used to set the version string
|
|
# in the metadata and in the generated zip-file. If no VERSION is passed, the
|
|
# version is pulled from the latest git tag and the current commit SHA1 is
|
|
# added to the metadata
|
|
ifdef VERSION
|
|
ifdef TARGET
|
|
FILESUFFIX = _v$(VERSION)_$(TARGET)
|
|
else
|
|
FILESUFFIX = _v$(VERSION)
|
|
endif
|
|
else
|
|
LATEST_TAG = $(shell git describe --match "v[0-9]*" --abbrev=0 --tags HEAD)
|
|
VERSION = $(LATEST_TAG:v%=%)
|
|
COMMIT = $(shell git rev-parse HEAD)
|
|
FILESUFFIX =
|
|
endif
|
|
|
|
all: extension
|
|
|
|
clean:
|
|
rm -f ./schemas/gschemas.compiled
|
|
|
|
extension: ./schemas/gschemas.compiled $(MSGSRC:.po=.mo)
|
|
|
|
./schemas/gschemas.compiled: ./schemas/org.gnome.shell.extensions.dash-to-panel.gschema.xml
|
|
glib-compile-schemas ./schemas/
|
|
|
|
potfile: ./po/dash-to-panel.pot
|
|
|
|
mergepo: potfile
|
|
for l in $(MSGSRC); do \
|
|
msgmerge -U $$l ./po/dash-to-panel.pot; \
|
|
done;
|
|
|
|
./po/dash-to-panel.pot: $(TOLOCALIZE) Settings.ui
|
|
mkdir -p po
|
|
xgettext -k_ -kN_ -o po/dash-to-panel.pot --package-name "Dash To Panel" $(TOLOCALIZE)
|
|
intltool-extract --type=gettext/glade Settings.ui
|
|
xgettext -k_ -kN_ --join-existing -o po/dash-to-panel.pot Settings.ui.h
|
|
|
|
./po/%.mo: ./po/%.po
|
|
msgfmt -c $< -o $@
|
|
|
|
install: install-local
|
|
|
|
install-local: _build
|
|
rm -rf $(INSTALLBASE)/$(INSTALLNAME)
|
|
mkdir -p $(INSTALLBASE)/$(INSTALLNAME)
|
|
cp -r ./_build/* $(INSTALLBASE)/$(INSTALLNAME)/
|
|
-rm -fR _build
|
|
echo done
|
|
|
|
zip-file: _build
|
|
cd _build ; \
|
|
zip -qr "$(UUID)$(FILESUFFIX).zip" .
|
|
mv _build/$(UUID)$(FILESUFFIX).zip ./
|
|
-rm -fR _build
|
|
|
|
_build: all
|
|
-rm -fR ./_build
|
|
mkdir -p _build
|
|
cp $(BASE_MODULES) $(EXTRA_MODULES) _build
|
|
|
|
ifeq ($(TARGET),ego)
|
|
find _build -name '*.js' -exec sed -i '/\/\/!start-update/,/\/\/!end-update/d' {} +
|
|
endif
|
|
|
|
mkdir -p _build/img
|
|
cd img ; cp $(EXTRA_IMAGES) ../_build/img/
|
|
mkdir -p _build/schemas
|
|
cp schemas/*.xml _build/schemas/
|
|
cp schemas/gschemas.compiled _build/schemas/
|
|
mkdir -p _build/locale
|
|
for l in $(MSGSRC:.po=.mo) ; do \
|
|
lf=_build/locale/`basename $$l .mo`; \
|
|
mkdir -p $$lf; \
|
|
mkdir -p $$lf/LC_MESSAGES; \
|
|
cp $$l $$lf/LC_MESSAGES/dash-to-panel.mo; \
|
|
done;
|
|
ifneq ($(and $(COMMIT),$(VERSION)),)
|
|
sed -i 's/"version": [[:digit:]][[:digit:]]*/"version": $(VERSION),\n"commit": "$(COMMIT)"/' _build/metadata.json;
|
|
else ifneq ($(VERSION),)
|
|
sed -i 's/"version": [[:digit:]][[:digit:]]*/"version": $(VERSION)/' _build/metadata.json;
|
|
endif
|