db0c2b5959
ShellTheme replaces both NbtkStyle and ccss_stylesheet_t. The interface NbtkStylable is replaced by usage of ShellThemeNode. A concrete node class allows some significant optimizations of property inheritance that would have been much more difficult to achieve with the highly abstract pair of NbtkStylable and ccss_node_t. Some operations that were previously on NbtkStylable (like the ::style-changed signal) are directly on NtkWidget. Custom properties are no longer registered as param-specs; instead you call directly into shell theme node to look up a length or color: shell_theme_node_get_length (theme_node, "border-spacing", FALSE, &spacing); The dependency on libccss is dropped, while preserving all existing functionality and adding proper parsing and inheritance of font properties and proper inheritance for the 'color' property. Some more javascript tests for CSS functionality are added; workarounds for a CSS bug where *.some-class was needed instead of .some-class are removed.
22 lines
577 B
Makefile
22 lines
577 B
Makefile
noinst_SCRIPTS = run-test.sh
|
|
EXTRA_DIST = run-test.sh.in
|
|
|
|
TEST_JS = \
|
|
testcommon/ui.js \
|
|
interactive/box-layout.js
|
|
EXTRA_DIST += $(TEST_JS)
|
|
|
|
TEST_MISC = \
|
|
testcommon/test.css
|
|
EXTRA_DIST += $(TEST_MISC)
|
|
|
|
# We substitute in bindir so it works as an autostart
|
|
# file when built in a non-system prefix
|
|
run-test.sh: run-test.sh.in
|
|
$(AM_V_GEN) sed \
|
|
-e "s|@GJS_JS_DIR[@]|$(GJS_JS_DIR)|" \
|
|
-e "s|@GJS_JS_NATIVE_DIR[@]|$(GJS_JS_NATIVE_DIR)|" \
|
|
-e "s|@MUTTER_LIB_DIR[@]|$(MUTTER_LIB_DIR)|" \
|
|
-e "s|@srcdir[@]|$(srcdir)|" \
|
|
$< > $@ && chmod a+x $@
|